KabiPan
KabiPan
PDCPlayerRealms developerS Community
Created by るーい on 2/2/2025 in #help-forum
「プレイヤーがブロックの採掘動作をしている最中かどうか」 の条件を書きたい。
要mundosk
6 replies
PDCPlayerRealms developerS Community
Created by るーい on 2/2/2025 in #help-forum
「プレイヤーがブロックの採掘動作をしている最中かどうか」 の条件を書きたい。
on packet event play_client_block_dig:
set {_a} to "PlayerDigTypes" pinfo 0 of event-packet
set {_b} to Location pinfo 0 of event-packet
set {_block} to block at location at {_b}
#限定したいブロックを変えたい場合はこの下のdirt blockという所を任意のブロックに書き換える
if {_block} is dirt block:
if "%{_a}%" is "START_DESTROY_BLOCK":
set {digging.%event-player's uuid%} to true
else if "%{_a}%" is "STOP_DESTROY_BLOCK" or "ABORT_DESTROY_BLOCK":
set {digging.%event-player's uuid%} to false

every tick:
loop all players:
if {digging.%loop-player's uuid%} is true:
broadcast "%loop-player% is digging!"
on packet event play_client_block_dig:
set {_a} to "PlayerDigTypes" pinfo 0 of event-packet
set {_b} to Location pinfo 0 of event-packet
set {_block} to block at location at {_b}
#限定したいブロックを変えたい場合はこの下のdirt blockという所を任意のブロックに書き換える
if {_block} is dirt block:
if "%{_a}%" is "START_DESTROY_BLOCK":
set {digging.%event-player's uuid%} to true
else if "%{_a}%" is "STOP_DESTROY_BLOCK" or "ABORT_DESTROY_BLOCK":
set {digging.%event-player's uuid%} to false

every tick:
loop all players:
if {digging.%loop-player's uuid%} is true:
broadcast "%loop-player% is digging!"
6 replies
PDCPlayerRealms developerS Community
Created by mu_chan._. on 7/1/2024 in #help-forum
スライム,マグマキューブの大きさを変えたい
使えるかどうか試してナイ
7 replies
PDCPlayerRealms developerS Community
Created by mu_chan._. on 7/1/2024 in #help-forum
スライム,マグマキューブの大きさを変えたい
Skellettの構文にあるっちゃあるけど
7 replies
PDCPlayerRealms developerS Community
Created by mu_chan._. on 7/1/2024 in #help-forum
スライム,マグマキューブの大きさを変えたい
7 replies
PDCPlayerRealms developerS Community
Created by ねんねこ on 6/29/2024 in #help-forum
pushで空中に浮かせたくない
🤖<現在のvectorか視点のvectorを取得して、yを0にして正規化したvectorを作ればいいのに......
34 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
arrowとitemの除外部分はいらなくなる
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
自分を除外するのはそのままでいいけど
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
あとは自分を除外するようにすれば思った通りの動きするかと
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
アイテムはループされないの確認したから
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
自鯖1.12.2の環境で試したら
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
そうじゃないなら別の方法考える
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
なんとなく自分の周りのmobとかプレイヤーを発火させたいんじゃないかって予想
23 replies
PDCPlayerRealms developerS Community
Created by Takatobi on 6/24/2024 in #help-forum
アイテムを除外する方法を教えてください
loop 「living」 entities in radius 5 around the player:
23 replies
PDCPlayerRealms developerS Community
Created by §l§aKovachi on 5/3/2024 in #help-forum
どこのサイトを見てコードを覚えましたか
ネル
691 replies
PDCPlayerRealms developerS Community
Created by §l§aKovachi on 5/3/2024 in #help-forum
どこのサイトを見てコードを覚えましたか
ネムイ
691 replies
PDCPlayerRealms developerS Community
Created by §l§aKovachi on 5/3/2024 in #help-forum
どこのサイトを見てコードを覚えましたか
691 replies
PDCPlayerRealms developerS Community
Created by §l§aKovachi on 5/3/2024 in #help-forum
どこのサイトを見てコードを覚えましたか
691 replies
PDCPlayerRealms developerS Community
Created by 月猫ch on 3/26/2024 in #help-forum
Bossbarを使いたい
いいんじゃないかな🤔
29 replies
PDCPlayerRealms developerS Community
Created by 月猫ch on 3/26/2024 in #help-forum
Bossbarを使いたい
ローカル変数ではなくグローバル変数にして管理すれば
29 replies