本篇基于14w32a的entitydata指令
展示:
首先生物站在高处或者悬空处
当他坠落的时候头朝下,也就是坠落倒立
坠落到地上又会还原姿势
原理:
倒立基于给怪物名称"Dinnerbone"或者"Grumm"(小彩蛋:新版本里凋灵名字若是Grumm,则会出现小凋零"Baby Wither")
首先基于一个计分板:
- /scoreboard objectives add down dummy
坠落区:
黄:
- /execute @e[type=!Player] ~ ~-1 ~ detect ~ ~ ~ air 0 scoreboard players set @e[name=!Grumm] down 1
红:
- /entitydata @e[score_down_min=1,score_down=1] {CustomName:"Grumm"}
还原区:
棕:
- /scoreboard players set @e down 0 {OnGround:1b}
绿:
- /entitydata @e[score_down_min=0,score_down=0] {CustomName:" "}
[groupid=546]Command Block Logic[/groupid]