专为地图制作者设计的数据包。
该数据包允许你:
- 启用盔甲架的移动动画。
- 强制盔甲架移动。
- 赋予盔甲架跳跃能力。
- 使盔甲架跟随玩家。
- 旋转盔甲架。
若要为一个盔甲架添加标签,请输入以下命令:
/tag @e[type=armor_stand] add [TAG]
标签列表:
move - 激活移动动画
walk - 盔甲架以 0.1 的速度移动
walk13 - 盔甲架以 0.13 的速度移动
walk2 - 盔甲架以 0.2 的速度移动
walk05 - 盔甲架以 0.05 的速度移动
left - 向左旋转 45°
left2 - 向左旋转 90°
right - 向右旋转 45°
right2 - 向右旋转 90°
180 - 旋转 180°
lookatplayer - 使盔甲架面向玩家。
canjump - 盔甲架将跳跃至前方的方块上。
eye - 当玩家注视盔甲架时,停止其所有移动和动画
break - 破坏其前方的方块(不掉落战利品)
breakdrop - 破坏其前方的方块(方块及战利品掉落)
breakup - 破坏其前方上方的方块(不掉落战利品)
breakdropup - 破坏其前方上方的方块(方块及战利品掉落)
breakd - 破坏其前方下方的方块(不掉落战利品)
breakdropd - 破坏其前方下方的方块(方块及战利品掉落)
place - 在其脚下放置石头方块
[如果你想要更多动画或功能,请在评论中留言!]
移除标签
/tag @e[type=armor_stand] remove [TAG]
如果你的世界中有很多盔甲架,很难确定你想使用哪一个。
为了解决这个问题,你可以在召唤盔甲架时预先注册额外的标签。
输入你的盔甲架 ID 并通过该 ID 进行目标选择。
/summon minecraft:armor_stand ~ ~ ~ {Tags:["id0"]}
此类应用的一个示例:
/tag @e[tag=id0] add walk
或者
/execute as @e[tag=id0] at @s run tag @s add walk
- 带有标签 id0 的实体将被赋予 "walk" 标签
Datapack specifically for map makers.
Datapack allows you to:
- Enable armor stand movement animation.
- Force the armor stand to move.
- give armor stand Ability to jump
- Make the armor stand follow the player.
- Turn armor stand
To tag an armor stand type this command:
/tag @e[type=armor_stand] add [TAG]
TAG LIST:
move - Activate move animation
walk - armor stand moves at a speed of 0.1
walk13 - armor stand moves at a speed of 0.13
walk2 - armor stand moves at a speed of 0.2
walk05 - armor stand moves at a speed of 0.05
left - turn Left on 45*
left2 - turn Left on 90*
right - turn right on 45*
right2 - turn right on 90*
180 - turn 180*
lookatplayer - make the armor stand face the player.
canjump - The armor stand will jump to get on the block in front of it.
eye - armor stand stops doing any movement and animation when the player looks at it
break - breaks blocks in front of him (loot does not drop)
breakdrop - breaks blocks in front of him (Blocks and loot drop out)
breakup - breaks blocks in front up of him (loot does not drop)
breakdropup - breaks blocks in front up of him (Blocks and loot drop out)
breakd - breaks blocks in front down of him (loot does not drop)
breakdropd - breaks blocks in front down of him (Blocks and loot drop out)
place - puts stone blocks underneath
[If you want more animations or functional, write in the comments!]
Remove tag
/tag @e[type=armor_stand] remove [TAG]
If there are a lot of armor stands in your world, it is difficult to understand which one you want to use.
To fix this problem, you can pre-register additional tags when summoning an armor stand.
Type your armorstand id and target by these id.
/summon minecraft:armor_stand ~ ~ ~ {Tags:["id0"]}
an example of such an application:
/tag @e[tag=id0] add walk
or
/execute as @e[tag=id0] at @s run tag @s add walk
-entities with tag id0 will be given a tag "walk"
评论 0
登录后参与评分
还没有评论,来抢沙发吧