Eating while having an effect does something

Started by LukeyDukey on

Topic category: Help with modding (Java Edition)

Last seen on 03:14, 22. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Eating while having an effect does something
Mon, 05/27/2024 - 01:32 (edited)

I'm making a mod about cheese and I added a potion effect called lactose intolerant. I was wandering if I could make it so that when you have the effect, if you eat cheese (custom element) or drink milk, the player would explode or an item would drop or something. I just need to make it detect that you ate either of the items while the effect is on. I'm new to mcreator so if this is something obvious, my bad.

Edited by LukeyDukey on Mon, 05/27/2024 - 01:32
Last seen on 06:49, 22. Jun 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In this procedure, if the…
Sun, 05/26/2024 - 19:37

In this procedure, if the player eats cooked chicken and has the night vision effect, a stone block will spawn under his feet

Last seen on 03:14, 22. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did it correctly and I'm…
Mon, 05/27/2024 - 02:07

I did it correctly and I'm not sure what I did wrong, but it doesn't work

 

 

 

Last seen on 06:49, 22. Jun 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give a screenshot?
Mon, 05/27/2024 - 07:26

Can you give a screenshot?

Last seen on 03:14, 22. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 05/27/2024 - 14:19

Last seen on 18:02, 21. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also need help with the…
Mon, 05/27/2024 - 15:20

I also need help with the whole "provided itemstack" thing. I can't seem to get it to work to set item nbt's, I hope we can find solutions.