プレイヤーの体の向きを取得したい

LivingEntity クラスに yBodyRot なんちゃらがあるとかを見つけたんですけど、よくわかりません。。。 どなたか教えて下さい!
6 Replies
ねんねこ
ねんねこ6mo ago
skUnity Forums
Solved - Direction based on player's direction
I custom coded a custom enchant plugin and I have an enchantment that will dig in a 3x3 area where the player does. What I cannot figure out, however, is how I can test for which direction a player is facing in when they mine a block, then set the blocks in a 3x3 plane around that block to air...
ねんねこ
ねんねこ6mo ago
体の向きじゃないかもしれん
るび
るび6mo ago
体の向きじゃないっぽいですね
ねんねこ
ねんねこ6mo ago
yBodyRotはfloatっぽいですよ。 俺もよくわかりません
何か
何か6mo ago
顔の向きじゃなくて体の向きならクライアントサイドの処理なのでとれません どうしても体の向きが欲しいならforgeのコードを読んでまったく同じように処理を書けば取れます ただ同期がとれているかどうかの保証はないので とっても意味ないです
るび
るび6mo ago
なるほどです。ありがとうございます
Want results from more Discord servers?
Add your server
More Posts
リスト変数がループできないリスト変数に%player%を追加して、loopさせようとしたら画像のようなエラーが出てloopできなかったです。 解決方法はありますか。。。? ``` loop {collect::%the plプレイヤーを国に入れる事ができない``` else if event-item's name contain "承認待ちプレイヤーのリスト": close player's inventory 範囲内のプレイヤーに1秒に1回チャットを5秒間送る``` loop all players in radius 4 around player: loop 5 times: send "test" topushで平行移動``` push player backwards at speed 0.2 ``` で平行移動したいです当たり判定を作りたいこの画像の、黒線で囲った部分にいるエンティティを検知する方法を教えてほしいです。アマスタの向きを取得画像の状態のアーマースタンドの向きを取得する方法はありますか?add {_pointsToAdd} to the {_t}'s account以上のコードが動作しません。{_t}は```set {_t} to victim's target entity```で入れています。一度loop entityで試したら動いたので{_t}が問題点だとshoot で矢を打つと2個発射されるタイトルの通りです。 ```set {_x} to x-coordinate of player set {_y} to y-coordinate of player + 1.6 set {_z} t条件をつけると機能しない``` on join: set {centhe2.skill.%player%} to 1 on damage: if 0 < {centhe2.skill.%attacker%}スキンが変更されない``` command /skin [<offline player>]: trigger: if arg-1 is set: send request