Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.diamondpoint} = 0
- {%player%.diamondpointmax} = 10
- {%player%.diamondlevel} = 1
- {%player%.diamondgold} = 0
- {diamondamout} = 1
- #ダイヤ鉱石破壊時のイベント
- On break of diamond ore:
- add 1 to {%player%.diamondpoint}
- add 1 to {%player%.diamondgold}
- every 5 tick in "world":
- loop all players:
- #アクションバー設定
- send action bar from "&b現在のDG &n%{%loop-player%.diamondgold}%&r&b 現在のDP &n%{%loop-player%.diamondpoint}%&r&b 現在のDLevel &n%{%loop-player%.diamondlevel}%&r&b 次のDLevelまで &n%{%loop-player%.diamondpointmax}%&r" to loop-player
- if {%loop-player%.diamondpoint} is greater than or equal to {%loop-player%.diamondpointmax}:
- remove {%loop-player%.diamondpointmax} from {%loop-player%.diamondpoint}
- add 1 to {%loop-player%.diamondlevel}
- add {%loop-player%.diamondpointmax} to {%loop-player%.diamondpointmax}
- send "&a&lレベルアップ! ダイヤレベルが %{%loop-player%.diamondlevel}% になりました!" to loop-player
- command /dmenu:
- trigger:
- open chest with 1 rows named "&b&lDiamond Flat Main Menu" to player
- wait 1 tick
- format slot 0 of player with 278 named "&a&l%player%のステータス" with lore "&b現在のダイヤポイント %{%player%.diamondpoint}% DP||&b現在のダイヤゴールド %{%player%.diamondgold}% DG||&b現在のダイヤレベル Level %{%player%.diamondlevel}%||&b次のレベルまで %{%player%.diamondpointmax}% DP" to run [make player execute command "dmenu"]
- format slot 1 of player with 56 named "&adiazonにアクセスする" with lore "&bダイヤゴールドで様々なものを購入できます。||&aショートカットコマンド /diazon" to run [make player execute command "diazon"]
- command /ddebug:
- trigger:
- set {%player%.diamondpoint} to 0
- set {%player%.diamondlevel} to 1
- set {%player%.diamondpointmax} to 10
- set {%player%.diamondgold} to 0
- command /dgget <number>:
- trigger:
- add arg-1 to {%player%.diamondgold}
- command /diazon:
- trigger:
- open chest with 6 rows named "&a&lDiazon" to player
- wait 1 tick
- format slot 53 of player with barrier named "&aメインメニューに戻る" to run [make player execute command "dmenu"]
- format slot 0 of player with gold nugget named "&6現在のDG %{%player%.diamondgold}% DG" to run [make player execute command "diazon"]
- format slot 10 of player with diamond named "&aダイヤモンドを買う 1DG" to run [make player execute command "buy diamond"]
- format slot 11 of player with iron ingot named "&a鉄を買う 64DG" to run [make player execute command "buy iron"]
- command /buy <text>:
- trigger:
- if argument is "diamond":
- if {%player%.diamondgold} is greater than or equal to 1:
- execute console command "give %player% minecraft:diamond"
- remove 1 from {%player%.diamondgold}
- if argument is "iron":
- if {%player%.diamondgold} is greater than or equal to 64:
- execute console command "give %player% minecraft:iron_ingot"
- remove 64 from {%player%.diamondgold}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement