Started by
ChickenSpeed12
on
Topic category: Help with modding (Java Edition)
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?
Topic category: Help with modding (Java Edition)
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?
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?
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
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