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:
- subtract 1 from {G2}
- broadcast "&8[&cGatya&8] &e%player%が&9X-Bow&eガチャを引きました、只今の当選確率は 1/%{G2}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- 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:
- subtract 1 from {G3}
- broadcast "&8[&cGatya&8] &e%player%が&a翠水晶&eガチャを引きました、只今の当選確率は 1/%{G3}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- 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:
- subtract 1 from {G4}
- broadcast "&8[&cGatya&8] &e%player%が&6RPG-7&eガチャを引きました、只今の当選確率は 1/%{G4}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- 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:
- subtract 1 from {G5}
- 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:
- subtract 1 from {G6}
- broadcast "&8[&cGatya&8] &e%player%が&7Excutionner&eガチャを引きました、只今の当選確率は 1/%{G6}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- 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 "&6&lFN Ballista &e&lガチャカプセル":
- remove 1 of player's held item from the player's inventory
- set {_r3} to a random integer between 1 and 100
- if {_r3} is between 1 to 5:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "/menu grab %player% a-ballista"
- broadcast "&8[&cGatya&8] &c%player%&cが&6&lFN Ballista&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- else if {_r3} is between 6 and 100:
- set {_location} to location of player
- execute console command "/menu grab %player% zannen"
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- send "&8[&eGatya&8] &6ガチャカプセル交換券x1&eに当選した!"
- on right click:
- if name of held item contains "&c&l火炎放射器 &e&lガチャカプセル":
- remove 1 of player's held item from the player's inventory
- set {_r4} to a random integer between 1 and 100
- if {_r4} is between 1 to 5:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "/menu grab %player% a-flame"
- broadcast "&8[&cGatya&8] &c%player%&cが&c&l火炎放射器&cに当選しました!"
- send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
- else if {_r4} is between 6 and 100:
- set {_location} to location of player
- execute console command "/menu grab %player% zannen"
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- send "&8[&eGatya&8] &6ガチャカプセル交換券x1&eに当選した!"
- variables:
- {G9} = 100
- on rightclick holding a blue shulker box:
- chance of 1/{G9}:
- execute console command "/menu grab %player% a-57"
- set {G9} to 100
- broadcast "&8[&cGatya&8] &e%player%&cが&9&lFive-seveN&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%が&9Five-seveN&eガチャを引きました、只今の当選確率は 1/%{G9}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G9}
- 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:
- {G10} = 300
- on rightclick holding a brown shulker box:
- chance of 1/{G10}:
- execute console command "/menu grab %player% a-kuuki"
- set {G10} to 300
- broadcast "&8[&cGatya&8] &e%player%&cが&6&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%が&6空気砲&eガチャを引きました、只今の当選確率は 1/%{G10}% です。"
- send "&8[&cGatya&8] &e残念、ハズレです..."
- subtract 1 from {G10}
- 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 "&6&lイベントガチャカプセル":
- remove 1 of player's held item from the player's inventory
- set {_r2} to a random integer between 1 and 2000
- if {_r2} 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}
- set {eiyuu.%player%} to 1
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l称号 &e英&6雄&cに当選しました!"
- send "&8[&eEvent&cGatya&8] &e&c&l称号 &e英&6雄に当選した!"
- else if {_r2} is equal to 2:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l50000円&cに当選しました!"
- add 50000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &a50000円&eに当選した!"
- else if {_r2} is equal to 3:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&6&lDesert Eagle Dual&cに当選しました!"
- execute console command "menu grab %player% a-desert2"
- send "&8[&eEvent&cGatya&8] &6Desert Eagle Dual&eに当選した!"
- else if {_r2} is equal to 4:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
- execute console command "menu grab %player% suisyou"
- send "&8[&eEvent&cGatya&8] &a翠水晶&eに当選した!"
- else if {_r2} is between 5 and 10:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 30000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e30000円に当選した!"
- else if {_r2} is between 11 and 30:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 10000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e10000円に当選した!"
- else if {_r2} is between 11 and 100:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 5000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e5000円に当選した!"
- else if {_r2} is between 101 and 200:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 3000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e3000円に当選した!"
- else if {_r2} is between 201 and 400:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 1000 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e1000円に当選した!"
- else if {_r2} is equal to 401:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l200Zpoint&cに当選しました!"
- add 200 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e200Zpointに当選した!"
- else if {_r2} is between 402 and 405:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l100Zpoint&cに当選しました!"
- add 100 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e100Zpointに当選した!"
- else if {_r2} is between 406 and 410:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 50 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e50Zpointに当選した!"
- else if {_r2} is between 406 and 410:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 30 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e30Zpointに当選した!"
- else if {_r2} is between 411 and 500:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 20 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e20Zpointに当選した!"
- else if {_r2} is between 501 and 600:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 10 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e10Zpointに当選した!"
- else if {_r2} is between 601 and 700:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 5 to {zpoint.%player%}
- send "&8[&eEvent&cGatya&8] &e5Zpointに当選した!"
- else if {_r2} is between 701 and 900:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 500 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e500円に当選した!"
- else if {_r2} is equal to 901:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket20"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x20&eに当選した!"
- else if {_r2} is between 902 and 910:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket15"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x15&eに当選した!"
- else if {_r2} is between 911 and 950:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket10"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x10&eに当選した!"
- else if {_r2} is between 951 and 1050:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket5"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x5&eに当選した!"
- else if {_r2} is between 1051 and 1150:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket3"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x3&eに当選した!"
- else if {_r2} is between 1151 and 1500:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 300 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e300円に当選した!"
- else if {_r2} is between 1501 and 1700:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- execute console command "menu grab %player% ticket2"
- send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x2&eに当選した!"
- else if {_r2} is between 1701 and 2000:
- set {_location} to location of player
- play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
- add 100 to {money.%player%}
- send "&8[&eEvent&cGatya&8] &e100円に当選した!"
- on right click:
- if name of held item contains "&c弾ガチャ":
- execute console command "scoreboard players tag %player% add gatya"
- set {_r} to a random integer between 1 and 200
- if {bullet.%player%} is less than {bullet2.%player%}:
- remove 1 of player's held item from the player's inventory
- 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}
- add 10 to {bullet.%player%}
- broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
- send "&8[&cGatya&8] &e弾の数が10増えた!"
- else if {_r} is between 2 and 6:
- 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に当選しました!"
- add 5 to {bullet.%player%}
- send "&8[&cGatya&8] &e弾の数が5増えた!"
- else if {_r} is between 5 and 14:
- 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に当選しました!"
- add 3 to {bullet.%player%}
- send "&8[&cGatya&8] &e弾の数が3増えた!"
- else if {_r} is between 10 and 40:
- 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に当選しました!"
- add 1 to {bullet.%player%}
- 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残念、ハズレです..."
- else:
- send "&9》 &c所持可能弾数が上限に達しています!"
- send "&9》 &cレベルを上げて上限を増やしましょう。"
- set {bullet.%player%} to {bullet2.%player%}
- 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}% です。 "
- command /k6:
- 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/%{G7}% です。 "
- command /k7:
- 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/%{G8}% です。 "
- command /k8:
- 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/%{G9}% です。 "
- command /k9:
- 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/%{G10}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement