How to make edible sugar/items in Minecraft(JAVA)
Today i will show you how to make anything edible in Minecraft. you can use this for any item.
Commands:
summon armourstand:/summon minecraft:armor_stand ~ ~ ~ {Invisible:1b,ShowArms:1b,CustomName:'{"text":"Sugar_Holder"}'}
tp armour stand infront of player:
/execute at @a[nbt={SelectedItem:{id:"minecraft:sugar"}}] run tp @e[type=minecraft:armor_stand,name=Sugar_Holder] ^ ^ ^2.7
tp armour stand when not in use:
/execute unless entity @a[nbt={SelectedItem:{id:"minecraft:sugar"}}] run tp @e[type=minecraft:armor_stand,name=Sugar_Holder] Your coords
replace holding armourstand item with air:
/execute at @e[type=minecraft:armor_stand,nbt={HandItems:[{id:"minecraft:sugar"},{}]}] run item replace entity @e[type=minecraft:armor_stand,name=Sugar_Holder] weapon.mainhand with air
give player food from eatiing:
/effect give @a minecraft:saturation 1 1
Other Videos By shadowwalker
Other Statistics
Minecraft Statistics For shadowwalker
shadowwalker presently has 93,965 views for Minecraft across 80 videos, with his channel uploading 6 hours worth of Minecraft videos. This makes up 27.34% of the content that shadowwalker has uploaded to YouTube.