how do i make a potion immune to milk

Started by thecatlover on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 months ago
Joined Jun 2020
Points:
797

User statistics:

  • Modifications: 2
  • Forum topics: 28
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 59
how do i make a potion immune to milk

self explanitory but how do i make it so when a player gets the "undead" potion effect, they cant get rid of it with milk? (im making a mod that allows you to turn undead along with some zombie apocalypse stuff)

Active 2 years ago
Joined Nov 2018
Points:
972

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 572
If you remove the milk from…
Mon, 01/04/2021 - 21:37

If you remove the milk from the curable items list milk can't cure it.

Active 4 months ago
Joined Jun 2020
Points:
797

User statistics:

  • Modifications: 2
  • Forum topics: 28
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 59
where is the curable items…
Mon, 01/04/2021 - 23:03

where is the curable items list?

Active 2 years ago
Joined Nov 2018
Points:
972

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 572
I think they removed it…
Fri, 01/08/2021 - 16:59

I think they removed it actually. I don't know why.

When you get the effect give the entity and nbt variable. Make the entity get the potion effect each tick if it has this variable.

That way milk can't cure it.

Active 1 year ago
Joined Nov 2023
Points:
456

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 343
DiamondGamin great idea bro!…
Wed, 12/20/2023 - 04:45

DiamondGamin great idea bro! i fixed my medicine stuff with that hhaha thanks, i posted this on other milk stoppers topics too :)

Active 1 year ago
Joined Nov 2023
Points:
456

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 343
i used a text NBT, works…
Wed, 12/20/2023 - 04:46

i used a text NBT, works great