Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- if attacker is a player:
- message "<light green>+3point"
- add 3 to {point.%attacker%}
- on rightclick with nether star:
- execute console command "/buymenu %player%"
- command /buymenu <player>:
- trigger:
- open chest with 6 row named "<green>購入メニュー" to arg
- wait 1 tick
- format slot 0 of arg with stone sword named "<green>石の剣 [3]" to close then run [make player execute command "/buy stone_sword"]
- format slot 8 of arg with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 53 of arg with barrier named "<magenta>キャンセル" to close
- command /pbuy <item> <number>:
- triger:
- if {point.%player%} is {arg 2}:
- remove {arg 2} from {%player%.point}
- command "/give %player% {arg 1} 1 0"
- message "<yellow>購入成功!"
- if {point.%player%} > {arg 2}:
- remove {arg 2} from {%player%.point}
- command "/give %player% {arg 1} 1 0"
- message "<yellow>購入成功!"
- else:
- message "<red>購入条件を満たしていません!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement