how do i make a potion immune to milk

Started by thecatlover on Mon, 01/04/2021 - 21:21

Topic category: Help with modding (Java Edition)

Last seen on 21:59, 14. May 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how do i make a potion immune to milk
Mon, 01/04/2021 - 21:21

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)

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.

Last seen on 21:59, 14. May 2022
Joined Jun 2020
Points:

User statistics:

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

where is the curable items list?

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.