らふ/laf
らふ/laf
PDCPlayerRealms developerS Community
Created by らふ/laf on 1/30/2025 in #help-forum
CitizensでConsoleから特定のプレイヤーにコマンド実行させたい
arufoさんありがとう
6 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 1/30/2025 in #help-forum
CitizensでConsoleから特定のプレイヤーにコマンド実行させたい
上記の方法で解決しました
6 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 1/30/2025 in #help-forum
CitizensでConsoleから特定のプレイヤーにコマンド実行させたい
on right click on player:
send "1" to player
if clicked player is not online:
send "2" to player
if name of clicked player is "&eMenu":
send "3" to player
on right click on player:
send "1" to player
if clicked player is not online:
send "2" to player
if name of clicked player is "&eMenu":
send "3" to player
6 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
すみませんありがとうございます
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
一応全文です
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
on break:
if player's gamemode is not creative:
if event-block is stone or coal ore or iron ore or gold ore or diamond ore:
if {money::%player%} is not set:
set {money::%player%} to 0
cancel event
set {_lore::*} to lore of player's tool
if {_lore::2} is set:
set {_sl} to {_lore::2}
replace all "&7" and "採掘取得量 : " and " " in {_sl} with ""
set {_x} to random number between -1 and 1
set {_z} to random number between -1 and 1
bind hologram "&a⛏ +%{_sl}%" to player for 1 second offset by {_x}, 2.3, {_z}
send "%{_sl}%" to player
set {money::%player%} to {money::%player%} + {_sl}
send "%{money::%player%}%" to player
else:
cancel event
on break:
if player's gamemode is not creative:
if event-block is stone or coal ore or iron ore or gold ore or diamond ore:
if {money::%player%} is not set:
set {money::%player%} to 0
cancel event
set {_lore::*} to lore of player's tool
if {_lore::2} is set:
set {_sl} to {_lore::2}
replace all "&7" and "採掘取得量 : " and " " in {_sl} with ""
set {_x} to random number between -1 and 1
set {_z} to random number between -1 and 1
bind hologram "&a⛏ +%{_sl}%" to player for 1 second offset by {_x}, 2.3, {_z}
send "%{_sl}%" to player
set {money::%player%} to {money::%player%} + {_sl}
send "%{money::%player%}%" to player
else:
cancel event
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
amountが4, moneyが4でした
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
デバッグしたとこ
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
してないです
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
加算する変数を数字に変えたらいけるようです(変数では不可)
14 replies
PDCPlayerRealms developerS Community
Created by らふ/laf on 12/1/2024 in #help-forum
変数に変数を追加したい
グローバル変数などでやっても無理でした set {~} to {~} + {~~}でもできませんでした
14 replies