I need help Coding my custom food mod

Started by ProPixel on

Topic category: Help with modding (Java Edition)

Last seen on 10:27, 5. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help Coding my custom food mod

I made custom food, where when you eat it it will tell you the nearest village using "/locate village" but When I eat the custom food it doesn't do anything,  is there a say command that will /say the coords to @a?? 

Last seen on 17:02, 25. Jun 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trigger "when food is eat"…
Mon, 05/02/2022 - 15:26

Trigger "when food is eat"

run the command /locate village to the name of event/target entity

If it's that you have said I don't understand why it's doesn't work.