-
Notifications
You must be signed in to change notification settings - Fork 2
Dual Handed Recipes

{
"type": "mowlib:dualhandedcrafting",
"blockTarget": {
"item": "modid:block"
},
"mainhandTool": {
"item": "modid:item"
},
"consumeMainhandItem": false,
"offhandTool": {
"tag": "modid:tag"
},
"consumeOffhandItem": true,
"result": {
"item": "modid:item"
}
}blockTarget : Cannot be null/left blank. Needs to be the name for the item in game (Also works with tags), this also has to be a block that can be placed in world, as it gets clicked on.
mainHandTool / offHandTool : Cannot be null/left blank. Any Item (or tagged item) can be used, the player holds these in their hands.
consumeMainHand / consumeOffHand : True or False only, tools will take durability and items will be consumed (1) depending on what is set, if left out of the recipe, it defaults to true.
result : can be defined like any normal recipe result (no tags allowed).
If item's are defined, the block clicked on will be removed and items will spawn.
Otherwise if a block is defined, the block clicked on will be replaced with the new block.
If the new block is a colorable block (using the MowLib coloring system) and one of the hand items is the Color Applicator the resulting block will be colored similarly. Also if the input block is colored, in v1.19 - 0.1.18 the output block will get that color if neither hand has a colorable item in it.