Started by
MitamaKirai
on
Topic category: Help with Minecraft modding (Java Edition)
this is currently what ive tried to no avail anyone know how i can make mcreator specify a water bottle and not just any potion? im currently on version 2023.3 of mcreator if that helps.
...I'm not 100% sure. Normally you would lock the mod element and manually add the NBT tag for the potion, but I'm not sure if water bottles have a custom NBT tag. You could try checking the registry name instead of the display name to avoid problems with localization or custom named items? Maybe?
hi ty for the reply sorry im late in replying i myself dont know much about nbt tags yet but i did try to use the registry tag idea and did this unfortunately it did not work wanted to ask if you had any other ideas on how to make this work or if i should just try to use nbt bc i have no clue how to use it ty in advance.
I don't know how to assign potion effects to code, but I know how to assign them to loot tables. You could make a loot table that gives a water bottle, (or potion with a specific effect), and then use a /loot give command to apply that loot table to a container or inventory.
To apply a potion effect to a potion item in a loot table, lock the mod element and replace the potion entry with this. You can find the specific registry names on the wiki.