How to make player carnivorous

Started by ChickenSpeed12 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make player carnivorous

Its what it says on the title. On certain conditions, I want it so the player can only eat meat. How do I do this?

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've partailly done it by…
Wed, 07/12/2023 - 09:56

I've partailly done it by giving the player hunger if they dont eat the specified food, but completely cancelling it would be better. is there a way to cancel item use?

 

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yea, i made something like…
Sat, 07/15/2023 - 09:26

yea, i made something like this. is a procedure with event trigger "player right clicks with item"; then "if" block which checks "is item in off-hand or item in main hand of event/target entity food" and if true-"Cancel event that triggered flobal trigger (is a block from Advanced page) i don't know how to send screenshots so you have to use search for finding this blocks

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can't undo the use of an…
Sat, 07/15/2023 - 09:27

you can't undo the use of an item, but you can disable it, you should also add a check to see if the item is meat