Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- if name of held item contains "&d弾ガチャ":
- remove 1 of player's held item from the player's inventory
- set {_random} to a random integer between 1 and 100
- if {_random} equals 1:
- execute console command "scoreboard players add %player% bullet 10"
- message "&1>>> &e弾の数が10増えた!"
- else if {_random} is between 2 and 4:
- execute console command "scoreboard players add %player% bullet 5"
- message "&1>>> &e弾の数が5増えた!"
- else if {_random} is between 5 and 9:
- execute console command "scoreboard players add %player% bullet 3"
- message "&1>>> &e弾の数が3増えた!"
- else if {_random} is between 10 and 19:
- execute console command "scoreboard players add %player% bullet 1"
- message "&1>>> &e弾の数が1増えた!"
- else:
- message "&1>>> &eハズレ..."
Advertisement
Add Comment
Please, Sign In to add comment