Started by
Sbot50
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, i wanted to make a armor repairing potion. When i saw it said required dependencies i knew a potion wouldnt provide me with those. is there any other way i can make this potion? thx in advanced!
In your procedure it says: ...Get Item in slot 0... and right after you use "deal damage to provided item". Provided item here doesn't point to the item in slot 0, it will point to your potion.
To provide the item stack dependency. you need something like a tool. You could create a potion effect and make the potion simply set an NBT tag to true. Then go to your tools, check if the condition is true and heal your item based on that. Some logic is required but for the most part, that's should be it.
thx! ill try that then, thank you so much!
i sortoff gave up because i didnt really know how to test if a item has nbt tag but i came up with this:
image doesnt work...
here: https://ibb.co/yXw26vF
sorry that i did this in 3 posts but there is no edit button, if there is i cant find it. but this should work right if i set the damage to -1 it will repair 1.
well it didnt work, then i tested with just 1 dmg and that also didnt work :( it worked with spawn gem tho so idk
ik why now the thing i used is for blocks