- summon armor_stand 0.0 0.0 0.0 {Tags:["track_work"],Rotation:[0.0f,0.0f],NoGravity:true,Invisible:true,Marker:true}
- execute as @p anchored eyes at @p run summon arrow ^ ^ ^ {Motion:[0.0,0.0,0.0],NoGravity:true,pickup:false,Silent:true,damage:-1.0,Tags:["track_sel"]}
- execute as @e[tag=track_work] at @s rotated as @p anchored feet run tp ^ ^ ^10
- execute as @e[tag=track_sel] store result entity @s Motion[0] double 1 run data get entity @e[tag=track_work,limit=1] Pos[0]
- execute as @e[tag=track_sel] store result entity @s Motion[1] double 1 run data get entity @e[tag=track_work,limit=1] Pos[1]
- execute as @e[tag=track_sel] store result entity @s Motion[2] double 1 run data get entity @e[tag=track_work,limit=1] Pos[2]
- tellraw @a {"entity":"@e[tag=track_sel]","nbt":"Motion[0]"}
- kill @e[tag=track_work]
照理来说本function生成的箭即是十字准星指向的位置
但是总有误差,不知道怎么分析误差来源(经测试,那个盔甲架y小于0照样工作!?,反正就是朝向地面也可以)
(已经看过https://www.mcbbs.net/thread-919112-1-1.html和https://www.mcbbs.net/thread-917613-1-1.html)
只是想要更简单的解决方案