Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {G2} = 100
- on rightclick holding a cyan shulker box:
- chance of 1/{G2}:
- execute console command "/menu grab %player% a-bow"
- set {G2} to 100
- broadcast "&8[&cGatya&8] &e%player%&cが&9&lX-Bow&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- else:
- broadcast "&8[&cGatya&8] &e%player%が&9X-Bow&eガチャを引きました、只今の当選確率は 1/%{G2}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G2}
- remove 1 of player's held item from the player's inventory
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- variables:
- {G3} = 200
- on rightclick holding a lime shulker box:
- chance of 1/{G3}:
- execute console command "/menu grab %player% suisyou"
- set {G3} to 200
- broadcast "&8[&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- else:
- broadcast "&8[&cGatya&8] &e%player%が&a翠水晶&eガチャを引きました、只今の当選確率は 1/%{G3}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G3}
- remove 1 of player's held item from the player's inventory
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- variables:
- {G4} = 100
- on rightclick holding a orange shulker box:
- chance of 1/{G4}:
- execute console command "/menu grab %player% a-rpg"
- set {G4} to 100
- broadcast "&8[&cGatya&8] &e%player%&cが&6&lRPG-7&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- else:
- broadcast "&8[&cGatya&8] &e%player%が&6RPG-7&eガチャを引きました、只今の当選確率は 1/%{G4}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G4}
- remove 1 of player's held item from the player's inventory
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- variables:
- {G5} = 100
- on rightclick holding a gray shulker box:
- chance of 1/{G5}:
- execute console command "/menu grab %player% a-barret"
- set {G5} to 100
- broadcast "&8[&cGatya&8] &e%player%&cが&8&lBarret-M82&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- else:
- broadcast "&8[&cGatya&8] &e%player%が&8Barret-M82&eガチャを引きました、只今の当選確率は 1/%{G5}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G5}
- remove 1 of player's held item from the player's inventory
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- variables:
- {G6} = 100
- on rightclick holding a white shulker box:
- chance of 1/{G6}:
- execute console command "/menu grab %player% a-ex"
- set {G6} to 100
- broadcast "&8[&cGatya&8] &e%player%&cが&7&lExcutionner&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- else:
- broadcast "&8[&cGatya&8] &e%player%が&7Excutionner&eガチャを引きました、只今の当選確率は 1/%{G6}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G6}
- remove 1 of player's held item from the player's inventory
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- on right click:
- if name of held item contains "&c弾ガチャ":
- 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残念、ハズレです..."
- command /k1:
- trigger:
- set {_location} to location of player
- play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
- send "&8[&c確率&8] &e只今の当選確率は 1/%{G2}% です。 "
- command /k2:
- trigger:
- set {_location} to location of player
- play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
- send "&8[&c確率&8] &e只今の当選確率は 1/%{G3}% です。 "
- command /k3:
- trigger:
- set {_location} to location of player
- play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
- send "&8[&c確率&8] &e只今の当選確率は 1/%{G4}% です。 "
- command /k4:
- trigger:
- set {_location} to location of player
- play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
- send "&8[&c確率&8] &e只今の当選確率は 1/%{G5}% です。 "
- command /k5:
- trigger:
- set {_location} to location of player
- play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
- send "&8[&c確率&8] &e只今の当選確率は 1/%{G6}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement