Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- if name of held item contains "&c弾ガチャ":
- execute console command "scoreboard players tag %player% add gatya"
- remove 1 of player's held item from the player's inventory
- set {_r} to a random integer between 1 and 100
- if {_r} is less than or equal to 1:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "scoreboard players add %player% bullet 10"
- broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
- send "&8[&cGatya&8] &e弾の数が10増えた!"
- else if {_r} is between 2 and 4:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
- execute console command "scoreboard players add %player% bullet 5"
- send "&8[&cGatya&8] &e弾の数が5増えた!"
- else if {_r} is between 5 and 9:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
- execute console command "scoreboard players add %player% bullet 3"
- send "&8[&cGatya&8] &e弾の数が3増えた!"
- else if {_r} is between 10 and 19:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
- execute console command "scoreboard players add %player% bullet 1"
- send "&8[&cGatya&8] &e弾の数が1増えた!"
- else:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- send "&8[&cGatya&8] &e残念、ハズレです..."
- {level.%player%}
Advertisement
Add Comment
Please, Sign In to add comment