版本1.13+知道用execute store,但是还是不会qwq
你可以使用:/execute as @e[type=armor_stand,tag=test] at @s rotated as @p run tp @s ~ ~ ~ ~ ~
例如:
execute if entity @p[y_rotation=165..179] run function sokocraft:move/north
execute if entity @p[y_rotation=-179..-165] run function sokocraft:move/north
如果不清楚如何使用execute指令,还是视频教学最容易学会
这里有Youtube中文execute 坐标矫正教学:
https://www.youtube.com/watch?v=bKtn4VWRJbU
B站的execute教学:
https://www.bilibili.com/video/av65697593/
另外1.13有datapack可以自定义盔甲架
原作者链接:https://www.planetminecraft.com/ ... 3-28-777-600-poses/
例如:
execute if entity @p[y_rotation=165..179] run function sokocraft:move/north
execute if entity @p[y_rotation=-179..-165] run function sokocraft:move/north
如果不清楚如何使用execute指令,还是视频教学最容易学会
这里有Youtube中文execute 坐标矫正教学:
https://www.youtube.com/watch?v=bKtn4VWRJbU
B站的execute教学:
https://www.bilibili.com/video/av65697593/
另外1.13有datapack可以自定义盔甲架
原作者链接:https://www.planetminecraft.com/ ... 3-28-777-600-poses/
本帖最后由 Chelover_C60 于 2020-5-15 09:01 编辑
execute rotated as @e[type=armor_stand,limit=1] run tp @s ~ ~ ~
不需要execute store
而且你想用也用不了,execute store不能修改玩家nbt(1.13~1.14可以修改背包nbt)
execute rotated as @e[type=armor_stand,limit=1] run tp @s ~ ~ ~
不需要execute store
而且你想用也用不了,execute store不能修改玩家nbt(1.13~1.14可以修改背包nbt)
本帖最后由 晴路卡 于 2020-5-15 09:42 编辑
水平朝向设置Rotation
竖直朝向设置Pose的Head
复制代码另外,国外的盔甲架编辑器,不好用!中国的盔甲架编辑器,好用!
https://www.mcbbs.net/thread-965816-1-1.html
水平朝向设置Rotation
竖直朝向设置Pose的Head
- /data modify entity @e[type=minecraft:armor_stand,limit=1,sort=nearest] Rotation[0] set from entity @p Rotation[0]
- /data modify entity @e[type=minecraft:armor_stand,limit=1,sort=nearest] Pose.Head[0] set from entity @p Rotation[1]
https://www.mcbbs.net/thread-965816-1-1.html
学到了 随便回复下做任务
晴路卡 发表于 2020-5-15 09:40
水平朝向设置Rotation
竖直朝向设置Pose的Head
另外,国外的盔甲架编辑器,不好用!中国的盔甲架编辑器,好 ...
如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后刀刃位置是朝向自己的,如何让刀刃位置是朝向看的位置,头部肯定要有所偏移吧,怎么搞
Ghost/残念 发表于 2020-5-15 13:30
如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后 ...
你为什么不改资源包呢
本帖最后由 晴路卡 于 2020-5-15 17:03 编辑
如果需要朝向正前方的话
先搞个记分板复制代码
然后就是要把玩家的朝向放进记分板
并对横向的朝向值180度,竖直的朝向值曲负复制代码
首先这肯定是改个资源包更方便
其次你问问题能不能告诉我这个盔甲架的特征是什么
tag也好nbt也好,这样我扣字也省力阿
Ghost/残念 发表于 2020-5-15 13:30
如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后 ...
如果需要朝向正前方的话
先搞个记分板
- scoreboard objectives add nmsl dummy
- scoreboard players set #neg nmsl -1
然后就是要把玩家的朝向放进记分板
并对横向的朝向值180度,竖直的朝向值曲负
- 高频执行下面这些命令:
- execute as @a store result score @s nmsl run data get entity @s Rotation[0] 1000
- scoreboard players add @a nmsl 180000
- execute as @e[type=armor_stand,tag=!done] at @s store result entity @s Rotation[0] float 0.001 run scoreboard players get @a[limit=1,sort=nearest] nmsl
- execute as @a store result score @s nmsl run data get entity @s Rotation[1] 1000
- scoreboard players operation @a nmsl *= #neg nmsl
- execute as @e[type=armor_stand,tag=!done] at @s store result entity @s Pose.Head[0] float 0.001 run scoreboard players get @a[limit=1,sort=nearest] nmsl
首先这肯定是改个资源包更方便
其次你问问题能不能告诉我这个盔甲架的特征是什么
tag也好nbt也好,这样我扣字也省力阿
晴路卡 发表于 2020-5-15 16:58
如果需要朝向正前方的话
先搞个记分板
然后就是要把玩家的朝向放进记分板
tag为loop,loop1,dioknife,你就可以用diokinfe就行了,loop是射线的tag