アマスタの向きを取得

画像の状態のアーマースタンドの向きを取得する方法はありますか?
6 Replies
月猫ch
月猫ch12mo ago
アマスタが変数にちゃんと入ってるなら
set {_armorstand} to アマスタ~
set {_yaw} to yaw of {_armorstand}
set {_armorstand} to アマスタ~
set {_yaw} to yaw of {_armorstand}
とかで取れそうなもんだけど とれなかった?
るび
るびOP12mo ago
取れないです。。。
月猫ch
月猫ch12mo ago
yawをpitchとかにしてもダメでした? あと、そのアマスタの向きって playerと全く同じ方向向きます? 例えば左に振り向いたら それに追従するというか (あと、頭に載せたりとか、そこら辺のコードも見たいかも)
るび
るびOP12mo ago
command /rid:
trigger:
spawn armor stand at player's location
make last spawned entity ride player
set {armor_stand::%player's uuid%} to last spawned entity
command /rid:
trigger:
spawn armor stand at player's location
make last spawned entity ride player
set {armor_stand::%player's uuid%} to last spawned entity
月猫ch
月猫ch12mo ago
あ~…なるほど
command /rid:
trigger:
spawn armor stand at player's location
set {_stand} to last spawned entity
set {armor_stand::%player's uuid%} to {_stand}
make {_stand} ride player
send "&e%location at {_stand}% | &7%yaw of {_stand}, pitch of {_stand}%"
command /rid:
trigger:
spawn armor stand at player's location
set {_stand} to last spawned entity
set {armor_stand::%player's uuid%} to {_stand}
make {_stand} ride player
send "&e%location at {_stand}% | &7%yaw of {_stand}, pitch of {_stand}%"
これで、locationとかyawとか諸々表示されるかやってみてほしい
るび
るびOP12mo ago
every 2 ticks:
loop {armor_stand::*}:
broadcast loop-value's pitch
every 2 ticks:
loop {armor_stand::*}:
broadcast loop-value's pitch
で確認したらスポーンした時とpitch同じになってました 無理っぽいので諦めます!
Want results from more Discord servers?
Add your server