syu
syu
PDCPlayerRealms developerS Community
Created by syu on 11/18/2023 in #help-forum
ストレージがなぜが消えてしまう
command /storage [<integer>]:
aliases: st
trigger:
set {_n} to arg 1
if arg 1 is not set:
set {_n} to 0
close player's inventory
open chest with 6 rows named "&lStorage No.%{_n}%" to player
set {_slot} to 0
loop {%uuid of player%::storage::%{_n}%::*}:
set slot {_slot} of player's current inventory to loop-value
add 1 to {_slot}

on inventory close:
inventory name of event-inventory contain "&lStorage No."
set {_n} to "%inventory name of event-inventory%"
replace "&lStorage No." with "" in {_n}
set {_n} to {_n} parsed as number
delete {%uuid of player%::storage::%{_n}%::*}
set {_slot} to 0
wait a ticks
loop 54 times:
add slot {_slot} of event-inventory to {%uuid of player%::storage::%{_n}%::*}
add 1 to {_slot}
command /storage [<integer>]:
aliases: st
trigger:
set {_n} to arg 1
if arg 1 is not set:
set {_n} to 0
close player's inventory
open chest with 6 rows named "&lStorage No.%{_n}%" to player
set {_slot} to 0
loop {%uuid of player%::storage::%{_n}%::*}:
set slot {_slot} of player's current inventory to loop-value
add 1 to {_slot}

on inventory close:
inventory name of event-inventory contain "&lStorage No."
set {_n} to "%inventory name of event-inventory%"
replace "&lStorage No." with "" in {_n}
set {_n} to {_n} parsed as number
delete {%uuid of player%::storage::%{_n}%::*}
set {_slot} to 0
wait a ticks
loop 54 times:
add slot {_slot} of event-inventory to {%uuid of player%::storage::%{_n}%::*}
add 1 to {_slot}
このコードでストレージを作っているのですが エラーも起きず普通に動くのですがたまに一つのstorageが全部消えます 条件もわからず急に消えてしまいます わかるかたいますか
8 replies
PDCPlayerRealms developerS Community
Created by syu on 7/11/2023 in #help-forum
SkrayfallとかSkellett入れた状態でのチーム
Skrayfallのfastscoreboadみたいなのはオフにしたんですけど それでもチームの色とか当たり判定、ネームタグの設定とかが使えないです たすけて
3 replies
PDCPlayerRealms developerS Community
Created by syu on 12/29/2022 in #help-forum
二つの点がどれくらい離れてるかわかる方法ありますか
たすけて
3 replies
PDCPlayerRealms developerS Community
Created by syu on 12/29/2022 in #help-forum
クリエ飛行を利用した二段ジャンプの不具合
on flight toggle:
if player's gamemode is not creative:
if player's flight mode is true:
set player's flight mode to false
set velocity of player to new Vector 0, 0, 0
push player forward at speed 0.9
push player up at speed 1.1



every a ticks:
loop all players:
if loop-player is on ground:
set {W.jump.%loop-player%} to true
set loop-player's flight mode to true
on flight toggle:
if player's gamemode is not creative:
if player's flight mode is true:
set player's flight mode to false
set velocity of player to new Vector 0, 0, 0
push player forward at speed 0.9
push player up at speed 1.1



every a ticks:
loop all players:
if loop-player is on ground:
set {W.jump.%loop-player%} to true
set loop-player's flight mode to true
このようなコードを書いたのですが 着地時にも発動してしまいます たすけて
4 replies
PDCPlayerRealms developerS Community
Created by syu on 12/11/2022 in #help-forum
スニーク速度を変更したい
set the player's walk speed でどんな数値に設定してもスニーク時の速度が一定以上早くなりません... スニーク時の速度を上げる方法って何かありません?か?
36 replies