how to add food that give you effect when you eat it? (1.18)

Started by DJ3107 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jun 2022
Points:
459

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
how to add food that give you effect when you eat it? (1.18)

help pls (sorry for my english)

Active 3 years ago
Joined Jun 2022
Points:
493

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 36
Create an item trigger …
Mon, 06/06/2022 - 13:59

Create an item trigger "player finishes using item"

and enter procedure execute command "effect give @p [effect name] [time [level]

Active 3 years ago
Joined Jun 2022
Points:
459

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
thank! :)
Mon, 06/06/2022 - 14:25

thank! :)

Active 2 months ago
Joined Dec 2024
Points:
64

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
You can also use "add potion…
Sat, 12/14/2024 - 11:54

You can also use "add potion" procedure.
Add more of the "add potion" if you want multiple effects.