るび
るび
PDCPlayerRealms developerS Community
Created by るび on 12/29/2023 in #help-forum
プレイヤーの体の向きを取得したい
LivingEntity クラスに yBodyRot なんちゃらがあるとかを見つけたんですけど、よくわかりません。。。 どなたか教えて下さい!
11 replies
PDCPlayerRealms developerS Community
Created by るび on 12/27/2023 in #help-forum
当たり判定を作りたい
この画像の、黒線で囲った部分にいるエンティティを検知する方法を教えてほしいです。
28 replies
PDCPlayerRealms developerS Community
Created by るび on 12/26/2023 in #help-forum
アマスタの向きを取得
画像の状態のアーマースタンドの向きを取得する方法はありますか?
15 replies
PDCPlayerRealms developerS Community
Created by るび on 12/24/2023 in #help-forum
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
6 replies
PDCPlayerRealms developerS Community
Created by るび on 12/15/2023 in #help-forum
Use 'attacker' and/or 'victim' in damage/death events
on damage:
victim is player
attacker is not player
send "hehehe" to victim
on damage:
victim is player
attacker is not player
send "hehehe" to victim
で実行すると Use 'attacker' and/or 'victim' in damage/death events というエラーが出ます。。。 解決方法ありますか...
27 replies
PDCPlayerRealms developerS Community
Created by るび on 12/6/2023 in #help-forum
last shot entity がバグってる
on leftclick holding bow:
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 {arrow::%last shot entity's uuid%} to 300

on damage:
attacker is player
victim is not player
projectile is set

set damage to {arrow::%projectile's uuid%}
on leftclick holding bow:
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 {arrow::%last shot entity's uuid%} to 300

on damage:
attacker is player
victim is not player
projectile is set

set damage to {arrow::%projectile's uuid%}
とすると、矢が当たった敵に300ダメージが入らないです。 broadcast でprojectileとlast shot entityのuuidをみたらどっちも違うuuidでした。
11 replies
PDCPlayerRealms developerS Community
Created by るび on 12/4/2023 in #help-forum
コマンドの実行結果を取得
バニラコマンドの実行結果を取得することは可能ですか?
12 replies
PDCPlayerRealms developerS Community
Created by るび on 12/3/2023 in #help-forum
プレイヤーの防御力を取得
プレイヤーの防御力を取得する方法はありますか?
6 replies
PDCPlayerRealms developerS Community
Created by るび on 12/1/2023 in #help-forum
TPがされない
set {_lore::*} to lore of event-slot
set {_split::*} to {_lore::1} split at " "
execute console command "execute as %player% run tp %{_split::2}% %{_split::3}% %{_split::4}%"
set {_lore::*} to lore of event-slot
set {_split::*} to {_lore::1} split at " "
execute console command "execute as %player% run tp %{_split::2}% %{_split::3}% %{_split::4}%"
%{_split::2}% %{_split::3}% %{_split::4}% はしっかり値が入っているのに動きません
13 replies
PDCPlayerRealms developerS Community
Created by るび on 11/20/2023 in #help-forum
アイテムのnbtの配列を取得したい
アイテムのnbtの、[1,2,3] をリスト変数として変数に入れる方法はありますか?
18 replies
PDCPlayerRealms developerS Community
Created by るび on 11/19/2023 in #help-forum
leftclick で、溜め攻撃を検知したい
No description
16 replies
PDCPlayerRealms developerS Community
Created by るび on 11/18/2023 in #help-forum
event-slot is egg ができない
卵をクリックしたこと検知しようとするとエラー出ます...
6 replies
PDCPlayerRealms developerS Community
Created by るび on 11/16/2023 in #help-forum
棒の持ち方を変える
No description
5 replies
PDCPlayerRealms developerS Community
Created by るび on 11/15/2023 in #help-forum
アイテムのnbtから数値を取って書き込んだら<none>になる
set {_material} to nbt compound of player's tool
set {_value} to tag "value" of {_material}
set {_value} to {_value} parsed as number
set {_material} to nbt compound of player's tool
set {_value} to tag "value" of {_material}
set {_value} to {_value} parsed as number
これだと {_value} が <none> になります
20 replies
PDCPlayerRealms developerS Community
Created by るび on 11/13/2023 in #help-forum
変数が消えない
on damage:
set {attacker.%victim's uuid%.%attacker%} to true

on death:
loop all players:
{attacker.%victim's uuid%.%attacker%} is true
delete {attacker.%victim's uuid%.%attacker%}
on damage:
set {attacker.%victim's uuid%.%attacker%} to true

on death:
loop all players:
{attacker.%victim's uuid%.%attacker%} is true
delete {attacker.%victim's uuid%.%attacker%}
上のコードを使うと、variable.csv にattackerの変数が入ったままになります。
29 replies
PDCPlayerRealms developerS Community
Created by るび on 11/7/2023 in #help-forum
skriptでwebsocketは使えるか
skriptで、websocketは使えますか? もし使えたら、ドキュメントなどのURLが欲しいです
6 replies
PDCPlayerRealms developerS Community
Created by るび on 11/2/2023 in #help-forum
コンソールコマンド
execute console command " " で、コンソールに実行したことを表示しないってことはできますか?
79 replies