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 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 "/pbuy 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> <player>:
- trigger:
- if {%arg 3%.point} is arg 2:
- remove arg 2 from {%arg 3%.point}
- give arg 1 to arg 3
- message "<yellow>購入成功!" to arg 3
- if {%arg 3%.point} > arg 2:
- remove arg 2 from {%arg 3%.point}
- give arg 1 to arg 3
- message "<yellow>購入成功!" to arg 3
- else:
- message "<red>購入条件を満たしていません!" to arg 3
- command /pp:
- trigger:
- add 1 to {%player%.point}
- command /myp <player>:
- trigger:
- message "&aあなたの所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement