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}
- 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> <text>:
- trigger:
- add arg-1 to {%arg-2%.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"]
- format slot 12 of player with gold ingot named "&a金を買う 960DG" to run [make player execute command "buy gold"]
- format slot 13 of player with emerald named "&aエメラルドを買う 14400DG" to run [make player execute command "buy emerald"]
- format slot 14 of player with nether star named "&aネザースターを買う 216000DG" to run [make player execute command "buy nether"]
- format slot 15 of player with 406 named "&aクオーツを買う 3240000DG" to run [make player execute command "buy quartz"]
- format slot 28 of player with diamond named "&aダイヤモンドを売る 1DG" to run [make player execute command "sell diamond"]
- format slot 29 of player with iron ingot named "&a鉄を売る 64DG" to run [make player execute command "sell iron"]
- format slot 30 of player with gold ingot named "&a金を売る 960DG" to run [make player execute command "sell gold"]
- format slot 31 of player with emerald named "&aエメラルドを売る 14400DG" to run [make player execute command "sell emerald"]
- format slot 32 of player with nether star named "&aネザースターを売る 216000DG" to run [make player execute command "sell nether"]
- format slot 33 of player with 406 named "&aクオーツを売る 3240000DG" to run [make player execute command "sell quartz"]
- format slot 46 of player with diamon block named "&bダイヤモンドを10個売る 10DG" to run [make player execute command "sell diamond10"]
- format slot 47 of player with diamon block named "&bダイヤモンドを100個売る 100DG" to run [make player execute command "sell diamond100"]
- format slot 48 of player with diamon block named "&bダイヤモンドを1000個売る 1000DG" to run [make player execute command "sell diamond1000"]
- 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}
- if argument is "gold":
- if {%player%.diamondgold} is greater than or equal to 960:
- execute console command "give %player% minecraft:gold_ingot"
- remove 960 from {%player%.diamondgold}
- if argument is "emerald":
- if {%player%.diamondgold} is greater than or equal to 14400:
- execute console command "give %player% minecraft:emerald"
- remove 14400 from {%player%.diamondgold}
- if argument is "nether":
- if {%player%.diamondgold} is greater than or equal to 216000:
- execute console command "give %player% minecraft:nether_star"
- remove 216000 from {%player%.diamondgold}
- if argument is "quartz":
- if {%player%.diamondgold} is greater than or equal to 3240000:
- execute console command "give %player% minecraft:quartz"
- remove 3240000 from {%player%.diamondgold}
- command /sell <text>:
- trigger:
- if argument is "diamond":
- if player have 1 diamonds:
- remove 1 diamond from the player
- add 1 to {%player%.diamondgold}
- if argument is "iron":
- if player have 1 iron ingots:
- remove 1 iron ingot from the player
- add 64 to {%player%.diamondgold}
- if argument is "gold":
- if player have 1 gold ingots:
- remove 1 gold ingot from the player
- add 960 to {%player%.diamondgold}
- if argument is "emerald":
- if player have 1 emeralds:
- remove 1 emerald from the player
- add 14400 to {%player%.diamondgold}
- if argument is "nether":
- if player have 1 nether stars:
- remove 1 nether star from the player
- add 216000 to {%player%.diamondgold}
- if argument is "quartz":
- if player have 1 406:
- remove 1 406 from the player
- add 3240000 to {%player%.diamondgold}
- if argument is "diamond10":
- if player have 10 diamonds:
- remove 10 diamond from the player
- add 10 to {%player%.diamondgold}
- if argument is "diamond100":
- if player have 100 diamonds:
- remove 100 diamond from the player
- add 100 to {%player%.diamondgold}
- if argument is "diamond1000":
- if player have 1000 diamonds:
- remove 1000 diamond from the player
- add 1000 to {%player%.diamondgold}
- command /setspawn:
- permission: admin.spawn
- trigger:
- message "&6スポーンをあなたのいるところに指定しました!"
- set {spawn} to location of player
- command /spawn:
- trigger:
- message "&6スポーンへ移動しました!"
- teleport player to {spawn}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement