How can i make mcreator specify a water bottle and not a potion?

Started by MitamaKirai on

Topic category: Help with modding (Java Edition)

Last seen on 11:02, 26. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make mcreator specify a water bottle and not a potion?

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.

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...I'm not 100% sure…
Mon, 02/12/2024 - 12:46

...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?

Last seen on 11:02, 26. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi ty for the reply sorry im…
Wed, 02/14/2024 - 19:33

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.

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how to assign…
Thu, 02/15/2024 - 20:56

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.

{
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 1,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            },
            {
              "function": "set_nbt",
              "tag": "{Potion:\"minecraft:regeneration\"}"
            }
          ]
        },