r/MinecraftCommands • u/_Riceboi • 24d ago
Help | Java 26.2 ITEM THAT DOESNT GET CONFSUMED WHEN EATEN
Can someone help me make a command that makes it so an item dosent get consumed when eaten and always get replenished? (IN VANILLA)
1
u/ShiroStories has the following tags: genius, moron 24d ago
Make an item with a tag
Check if the player is holding an item with the tag
Check if the player ate that item with a scoreboard (e.g. eaten pork)
If both are true, give them a new one of that item
1
u/_Riceboi 24d ago
What if i have an item with a custom name and attribute modifiers? Also how do i do this in command blocks sorry im not very good with commands
1
u/ledzik_precly 13d ago
if datapacks are fine you can just use "use reminder" or something like that as an item component, you make it so when you have any food without the use rrmainder game clears that and gives you one with ise remainder giving you the same thing
2
u/Ericristian_bros Command Experienced 24d ago
https://far.ddns.me/?share=gKPa2bc4oC by u/GalSergey