Ghost_Last
版本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/

Chelover_C60
本帖最后由 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)

晴路卡
本帖最后由 晴路卡 于 2020-5-15 09:42 编辑

水平朝向设置Rotation
竖直朝向设置Pose的Head
  1. /data modify entity @e[type=minecraft:armor_stand,limit=1,sort=nearest] Rotation[0] set from entity @p Rotation[0]
  2. /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

Fei1524621294
学到了  随便回复下做任务

Ghost_Last
晴路卡 发表于 2020-5-15 09:40
水平朝向设置Rotation
竖直朝向设置Pose的Head
另外,国外的盔甲架编辑器,不好用!中国的盔甲架编辑器,好 ...

如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后刀刃位置是朝向自己的,如何让刀刃位置是朝向看的位置,头部肯定要有所偏移吧,怎么搞

晴路卡
Ghost/残念 发表于 2020-5-15 13:30
如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后 ...

你为什么不改资源包呢

晴路卡
本帖最后由 晴路卡 于 2020-5-15 17:03 编辑
Ghost/残念 发表于 2020-5-15 13:30
如果我summon了个盔甲架,盔甲架头上有模型,然后我将盔甲架旋转角度tp至自己,但是模型是飞刀那种,然后 ...

如果需要朝向正前方的话
先搞个记分板
  1. scoreboard objectives add nmsl dummy
  2. scoreboard players set #neg nmsl -1
复制代码

然后就是要把玩家的朝向放进记分板
并对横向的朝向值180度,竖直的朝向值曲负
  1. 高频执行下面这些命令:
  2. execute as @a store result score @s nmsl run data get entity @s Rotation[0] 1000
  3. scoreboard players add @a nmsl 180000
  4. 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
  5. execute as @a store result score @s nmsl run data get entity @s Rotation[1] 1000
  6. scoreboard players operation @a nmsl *= #neg nmsl
  7. 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也好,这样我扣字也省力阿







Ghost_Last
晴路卡 发表于 2020-5-15 16:58
如果需要朝向正前方的话
先搞个记分板
然后就是要把玩家的朝向放进记分板

tag为loop,loop1,dioknife,你就可以用diokinfe就行了,loop是射线的tag

第一页 上一页 下一页 最后一页