Started by
xotos750
on
Topic category: Help with Minecraft modding (Java Edition)
helo, im worck in a magic mod in 1.14.4 and i want to use a new worckbech call magic worckbench to recharge the stafe here is the code so you can help me
if
and get item from slot 0 of block at x:x y:y z;z if it has inventory =(with metadata) here i put my staf (<1.13)
get item from slot 1 of block at x:x y:y z;z if it has inventory =(with metadata) here i put my crystal (<1.13)
do remove 1 items frome slot 1 of block at x:x y:y z;z if it has inventory
deal -200 damage to item in slot 0 of inventory inventoryName
and after i atach it to a butun in my magic worckbench
You need to check if you have the item in the slot u want it in, and if the other items are in the correct slots, and if so, then u damage the tool and delete the other items. Then you create the final item in its slot.
it supose to worck but it do not want to repair the wand i don't no wy becos if you damge somting in negathive like -200 it subose to reapair the item no? here wat it supose to do :
you need to put the wand in the slot 0 after put the crystal in slot 1 and then press th butun in the gui and it will repair the wand by dealing a negative amout of damage and i check the nuber in the slot but it do not want te worck i don't no why
never mind i manage to make it work