Current Conditions handling doesn't allow multiple recipes with the same id:dur but different attributes.
haveric opened this issue · 4 comments
For example, two recipes that both should work, but the second one doesn't:
Note: These could be simplified, it's just the current test case I'm using.
craft Chain Mail 1
@ingredientcondition chainmail_chestplate | name §7[Common] §rGoblin Chain Mail | lore §f- §7Level: 3 | lore §f- §7Class: Warrior,Rogue,Ranger | lore §f- §7Armour: 7% | enchant DURABILITY 1500
chainmail_chestplate:0
= chainmail_chestplate:0:1
@enchant DURABILITY 1500
@name §7[Common] §rGoblin Chain Mail
@lore §f- §7Level: 3
@lore §f- §7Class: Warrior,Rogue,Ranger
@lore §f- §7Armour: 7%
craft Chain Mail 2
@ingredientcondition chainmail_chestplate | name §7[Common] §rGoblin Chain Mail2 | lore §f- §7Level: 3 | lore §f- §7Class: Warrior,Rogue,Ranger | lore §f- §7Armour: 7% | enchant DURABILITY 1500
chainmail_chestplate:0
= chainmail_chestplate:0:1
@enchant DURABILITY 1500
@name §7[Common] §rGoblin Chain Mail2
@lore §f- §7Level: 3
@lore §f- §7Class: Warrior,Rogue,Ranger
@lore §f- §7Armour: 7%
Another example:
iron_ingot + iron_ingot + iron_ingot
iron_ingot + iron_ingot + iron_ingot
iron_ingot + iron_ingot + iron_ingot
= iron_bars
@name Strong Iron Bars
@ingredientcondition iron_ingot | name &3Refined Iron | failmsg false
which conflicts with the default iron block recipe.
This may actually be fixed in the latest version, I need to do some testing to see if it works.
@xH3LLRAIZ3Rx While I haven't solved the original issue, I have figured out a way to make your recipe work:
craft
@OverRide
@displayresult first | silentfail
iron_ingot:0 + iron_ingot:0 + iron_ingot:0
iron_ingot:0 + iron_ingot:0 + iron_ingot:0
iron_ingot:0 + iron_ingot:0 + iron_ingot:0
= iron_block:0:1
@ingredientcondition iron_ingot | nometa | failmsg false
= iron_fence
@name Strong Iron Bars
@ingredientcondition iron_ingot | name &3Refined Iron | failmsg false