Skip to content

Commit

Permalink
Config, baristas respawn, soulfire in structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigereye504 committed Dec 9, 2021
1 parent 8dab254 commit 108af39
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.12.6

# Mod Properties
mod_version = 0.1.0-pre1
mod_version = 0.1.1
maven_group = net.tigereye.lava-java
archives_base_name = lava-java

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/tigereye/lavajava/config/LJConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class LJConfig implements ConfigData {

public int CAFE_REFRESH_PERIOD = 3200;
public int MAX_BARISTAS_PER_CAFE = 2;
public int CAFE_AVERAGE_DISTANCE_CHUNKS = 2;
public int CAFE_AVERAGE_DISTANCE_CHUNKS = 8;
public int CAFE_MINIMUM_DISTANCE_CHUNKS = 2;
public float DURATION_LOST_PER_STAGE = .2f;
}
Original file line number Diff line number Diff line change
Expand Up @@ -292,16 +292,16 @@ private static Int2ObjectMap<TradeOffers.Factory[]> copyToFastUtilMap(ImmutableM
static {
WITHER_BARISTA_TRADES = copyToFastUtilMap(ImmutableMap.of(
1, new TradeOffers.Factory[]{
new SellItemFactory(Items.COOKIE, 2, 1, 32, 1),
new SellItemFactory(Items.COOKIE, 2, 1, 8, 1),
new SellLavaJavaFactory(0)},
2, new TradeOffers.Factory[]{
new SellLavaJavaFactory(1),
new SellLavaJavaFactory(1)},
3, new TradeOffers.Factory[]{
new SellItemFactory(Items.PUMPKIN_PIE, 8, 1, 8, 4),
new SellItemFactory(Items.PUMPKIN_PIE, 8, 1, 3, 4),
new SellLavaJavaFactory(2)},
4, new TradeOffers.Factory[]{
new SellItemFactory(Blocks.CAKE, 16, 1, 2, 8),
new SellItemFactory(Blocks.CAKE, 16, 1, 1, 8),
new SellLavaJavaFactory(3)},
5, new TradeOffers.Factory[]{
new SellLavaJavaFactory(4),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class LJEntities {
public static final EntityType<WitherBaristaEntity> WITHER_BARISTA = Registry.register(
Registry.ENTITY_TYPE,
new Identifier("lavajava", "wither_barista"),
FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, WitherBaristaEntity::new).dimensions(EntityDimensions.fixed(WitherBaristaEntity.WIDTH, WitherBaristaEntity.HEIGHT)).build()
FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, WitherBaristaEntity::new).fireImmune().dimensions(EntityDimensions.fixed(WitherBaristaEntity.WIDTH, WitherBaristaEntity.HEIGHT)).build()
);

public static void register(){
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 7.0,
"max": 15.0
},
"bonus_rolls": 1.0,
"entries": [
{
"type": "minecraft:item",
"weight": 4,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 3.0
},
"add": false
}
],
"name": "minecraft:gold_ingot"
},
{
"type": "minecraft:item",
"weight": 40,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 2.0,
"max": 6.0
},
"add": false
}
],
"name": "minecraft:gold_nugget"
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:ghast_tear"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:sugar"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:melon_slice"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:magma_cream"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:blaze_powder"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:glowstone_dust"
},
{
"type": "minecraft:item",
"weight": 4,
"name": "minecraft:phantom_membrane"
},
{
"type": "minecraft:item",
"weight": 2,
"name": "minecraft:lava_bucket"
},
{
"type": "minecraft:item",
"weight": 2,
"name": "minecraft:lava_bucket"
},
{
"type": "minecraft:item",
"weight": 2,
"name": "minecraft:rabbit_foot"
}
]
}
]
}
Binary file modified src/main/resources/data/lavajava/structures/lava_java_cafe.nbt
Binary file not shown.

0 comments on commit 108af39

Please sign in to comment.