Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.point} = 5
- on death of player:
- if attacker is a player:
- message "<light green>+3point"
- add 3 to {%attacker%.point}
- on rightclick with gold ingot:
- execute console command "/buymenu %player%"
- command /buymenu <player> <text>:
- trigger:
- if arg 2 is "menu":
- open chest with 6 row named "<green>購入メニュー" to arg 1 wait 1 tick
- format slot 1 of arg 1 with 260 named "&c食料購入メニュー" to close then run command "/buymenu %arg 1% food"
- format slot 2 of arg 1 with iron sword named "&c武器購入メニュー" to close then run command "/buymenu %arg 1% sword"
- format slot 3 of arg 1 with 307 named "&c防具購入メニュー" to close then run command "/buymenu %arg 1% armor"
- format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
- if arg 2 is "food":
- open chest with 6 row named "<green>食料購入メニュー" to arg 1 wait 1 tick
- format slot 2 of arg 1 with 357 named "&aクッキー [1]" to run command "/pbuy 357 1 %arg 1%"
- format slot 11 of arg 1 with 357 named "&aクッキー×10 &e[9]" to run command "/pbuyten 357 9 %arg 1%"
- format slot 3 of arg 1 with 260 named "&aりんご [3]" to run command "/pbuy 260 3 %arg 1%"
- format slot 12 of arg 1 with 260 named "&aりんご×10 &e[27]" to run command "/pbuyten 260 27 %arg 1%"
- format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
- if arg 2 is "sword":
- open chest with 6 row named "<green>武器購入メニュー" to arg 1 wait 1 tick
- format slot 13 of arg 1 with stone sword named "<green>石の剣 [4]" to run command "/pbuy 272 4 %arg 1%"
- format slot 22 of arg 1 with iron sword named "<green>鉄の剣 [30]" to run command "/pbuy 267 30 %arg 1%"
- format slot 31 of arg 1 with stone sword named "<green>ダイヤの剣 [400]" to run command "/pbuy 276 400 %arg 1%"
- format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
- if arg 2 is "armor":
- open chest with 6 row named "<green>防具購入メニュー" to arg 1
- wait 1 tick
- format slot 1 of arg 1 with 298 named "<green>革の帽子 [10]" to run command "/pbuy 298 10 %arg 1%"
- format slot 10 of arg 1 with 299 named "<green>革の上着 [30]" to run command "/pbuy 299 30 %arg 1%"
- format slot 19 of arg 1 with 300 named "<green>革のズボン [20]" to run command "/pbuy 300 20 %arg 1%"
- format slot 28 of arg 1 with 301 named "<green>革のブーツ [10]" to run command "/pbuy 301 10 %arg 1%"
- format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- command /pbuy <item> <number> <player>:
- trigger:
- if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
- remove arg 2 from {%arg 3%.point}
- give arg 1 to arg 3
- message "<yellow>購入成功!" to arg 3
- message "&a残りpoint &a&l%{%arg 1%.point}%&apoint" to arg 3
- else:
- message "<red>購入条件を満たしていません!" to arg 3
- message "&aあなたの所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 3
- command /pbuyten <item> <number> <player>:
- trigger:
- if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
- remove arg 2 from {%arg 3%.point}
- loop 10 times:
- give arg 1 to arg 3
- message "<yellow>購入成功!" to arg 3
- message "&a残りpoint &a&l%{%arg 1%.point}%&apoint" to arg 3
- else:
- message "<red>購入条件を満たしていません!" to arg 3
- message "&aあなたの所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 3
- command /pp <player> <number>:
- trigger:
- player has permission "pvp.admin"
- add arg 2 to {%arg 1%.point}
- command /myp <player>:
- trigger:
- message "&a%arg 1%の所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement