Treated Wood Ladder recipe now based on mod ingredients.

This commit is contained in:
stfwi 2020-11-15 13:37:35 +01:00
parent c7e4037989
commit d179a2c92a
3 changed files with 27 additions and 26 deletions

View file

@ -20,6 +20,7 @@ Mod sources for Minecraft version 1.16.x.
[A] Added Solar Panel power balancing. [A] Added Solar Panel power balancing.
[M] GUI Button tooltip delay reduced to 800ms. [M] GUI Button tooltip delay reduced to 800ms.
[M] Hopper and Placer: Added "Redstone ignored" mode, changed icons from signal-like to Redstone-Torch-like. [M] Hopper and Placer: Added "Redstone ignored" mode, changed icons from signal-like to Redstone-Torch-like.
[M] Treated Wood Ladder now crafted from Old Industrial Wood, as Treated Wood Sticks now count as normal Sticks.
- v1.1.4-b1 [U] Ported to 1.16.4. - v1.1.4-b1 [U] Ported to 1.16.4.

View file

@ -581,9 +581,9 @@ public class EdMilker
} }
} }
// Adjacent inventory update, only done just after milking to prevent waste of server cpu. // Adjacent inventory update, only done just after milking to prevent waste of server cpu.
if((!dirty) && (fluid_level() >= BUCKET_SIZE)) { if((!dirty) && (fluid_level() > 0)) {
log("Try item transfer"); log("Try item transfer");
if(fill_adjacent_tank() || fill_adjacent_inventory_item_containers(block_state.get(MilkerBlock.HORIZONTAL_FACING))) dirty = true; if(fill_adjacent_tank() || ((fluid_level() >= BUCKET_SIZE) && fill_adjacent_inventory_item_containers(block_state.get(MilkerBlock.HORIZONTAL_FACING)))) dirty = true;
} }
} }
// State update // State update

View file

@ -1,30 +1,6 @@
{ {
"type": "forge:conditional", "type": "forge:conditional",
"recipes": [ "recipes": [
{
"conditions": [
{
"type": "engineersdecor:optional",
"result": "engineersdecor:treated_wood_ladder",
"required": ["#forge:rods/treated_wood"]
}
],
"recipe": {
"type": "minecraft:crafting_shaped",
"pattern": [
"S S",
"SSS",
"S S"
],
"key": {
"S": { "tag": "forge:rods/treated_wood"}
},
"result": {
"item": "engineersdecor:treated_wood_ladder",
"count": 3
}
}
},
{ {
"conditions": [ "conditions": [
{ {
@ -48,6 +24,30 @@
"count": 6 "count": 6
} }
} }
},
{
"conditions": [
{
"type": "engineersdecor:optional",
"result": "engineersdecor:treated_wood_ladder",
"required": ["minecraft:ladder"]
}
],
"recipe": {
"type": "minecraft:crafting_shaped",
"pattern": [
"S S",
"SSS",
"S S"
],
"key": {
"S": { "item": "minecraft:ladder"}
},
"result": {
"item": "engineersdecor:treated_wood_ladder",
"count": 7
}
}
} }
] ]
} }