119
Today we briefly explore the data tag HurtTime.
Most Mobs have a HurtTime duration of 10 ticks, starting at "10" and ending at "0".
Commands:
/scoreboard objectives add Hit dummy
-------------------
/scoreboard players add @e[type=Skeleton] Hit 1 {HurtTime:10s}
/execute @e[type=Skeleton,score_Hit=1] ~ ~1 ~ /summon Item ~ ~ ~ {Item:{id:minecraft:bone}}
/scoreboard players reset * Hit
Most Mobs have a HurtTime duration of 10 ticks, starting at "10" and ending at "0".
Commands:
/scoreboard objectives add Hit dummy
-------------------
/scoreboard players add @e[type=Skeleton] Hit 1 {HurtTime:10s}
/execute @e[type=Skeleton,score_Hit=1] ~ ~1 ~ /summon Item ~ ~ ~ {Item:{id:minecraft:bone}}
/scoreboard players reset * Hit
Progress | 100% complete |
Tags |
tools/tracking
3015758
2
vanilla-commands---damaged-skeletons-drop-bones
Create an account or sign in to comment.