Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command used in the video:
- /scoreboard players tag @a add FoodHold {SelectedItem:{id:minecraft:emerald}}
- /scoreboard players tag @e[tag=FoodStand] add EatEmerald {HandItems:[{id:minecraft:emerald,Count:1b},{}]}
- /execute @e[tag=EatEmerald,type=ArmorStand] ~ ~ ~ /scoreboard players set @p FoodEat 30
- /execute @e[tag=EatEmerald,type=ArmorStand] ~ ~ ~ /scoreboard players tag @p add EatEmerald
- /effect @a[score_FoodEat_min=1,score_FoodEat=1,tag=EatEmerald] minecraft:saturation 1 7
- /effect @a[score_FoodEat_min=1,score_FoodEat=1,tag=EatEmerald] minecraft:regeneration 30 2
- /execute @a[tag=EatEmerald,score_FoodEat_min=1] ~ ~ ~ /particle iconcrack ~ ~1.5 ~ 0.1 0.1 0.1 0.01 1 normal @a 388
- /scoreboard players tag @a[score_FoodEat_min=1,score_FoodEat=1,tag=EatEmerald] remove EatEmerald
- Sounds:
- /stopsound @a[tag=EatEmerald] player minecraft:entity.generic.eat
- /execute @a[tag=EatEmerald,score_FoodSound_min=3] ~ ~ ~ /playsound minecraft:entity.slime.jump player @a
- /scoreboard players set @a[tag=EatEmerald] FoodSound 0
- /execute @a[tag=EatEmerald] ~ ~ ~ /playsound minecraft:entity.slime.jump player @a
- If you want to use skulls:
- /scoreboard players tag @a add FoodHold {SelectedItem:{id:minecraft:skull}}
- /scoreboard players tag @e[tag=FoodStand] add EatEmerald {ArmorItems:[{},{},{},{id:minecraft:skull,Count:1b}]}
Advertisement
Add Comment
Please, Sign In to add comment