shoot で矢を打つと2個発射される

タイトルの通りです。
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player + 1.6
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to player's yaw
set {_pitch} to player's pitch
shoot arrow from player and location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch}) at speed 2.8
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player + 1.6
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to player's yaw
set {_pitch} to player's pitch
shoot arrow from player and location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch}) at speed 2.8
3 Replies
Deer
Deer6mo ago
shoot an arrowとかにしても無理ですかね
Yeahn
Yeahn6mo ago
2個指定しているからではないのですかね? ~ from player and location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch}) ~ プレイヤーと この位置から って指定してるので2つ出ているのだと思われます
るび
るび6mo ago
あぁ~。。。 ありがとうございました
Want results from more Discord servers?
Add your server
More Posts
条件をつけると機能しない``` 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 requestplayer側だけ特定のアイテムを手に持っているように見えるパケットpacket typeやprotocolibのwikiとにらめっこした末でどうしてもわかりませんでした どなたか『このパケットでできるよ』とか教えていただけないでしょうか… ⇩skript info銃のリロードについて``` on drop: if event-item's name is "LT-AR00": cancel event if {pdata::%player'Skriptで視点を上げてCS銃の反動を作りたいtp <shooter> ~ ~ ~ ~ ~-1というコマンドを発射するとき実行するようにしてみたのですが、 反動自体は動作しても添付した動画の通り銃弾の向きが固定されてしまいます。 遅延があればどUse 'attacker' and/or 'victim' in damage/death events``` on damage: victim is player attacker is not player send "hehehe" to victim ``` で実行すると `Useプレイヤーに矢を刺さらないようにしたい矢のダメージは入るけど、刺さった矢を消したい[クソ長コード]コードの軽量化ymlを読み込み、内容を変数に保存していくコードなのですが 如何せん処理に時間がかかっていて… これを軽量化する方法はないでしょうかitemに個別のkeyとvalueを設定してあげたいentityなら `set metadata "test" of entity to 10` とかできるじゃないですか アイテムでも似たようなことがやりたいです ```applescript set ダイヤモンドを右クリックした後の15秒間、敵にダメージを与えると継続ダメージを与える``` on rightclick holding diamond: set {centhe2.skill.%player%} to 1 set {centhe2.click.%pla