Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- #草 1.草 2.土
- set {slotmachine.grass.1} to green wool
- set {slotmachine.grass.2} to dirt
- set {slotmachine.grass.name.1} to "草"
- set {slotmachine.grass.name.2} to "土"
- set {slotmachine.grass.reward.1} to 30
- set {slotmachine.grass.reward.2} to 50
- set {slotmachine.grass.price} to 10
- #鉱石 1.石炭 2.鉄 3.金
- set {slotmachine.ore.1} to coal ore
- set {slotmachine.ore.2} to iron ore
- set {slotmachine.ore.3} to gold ore
- set {slotmachine.ore.name.1} to "石炭"
- set {slotmachine.ore.name.2} to "鉄"
- set {slotmachine.ore.name.3} to "金"
- set {slotmachine.ore.reward.1} to 600
- set {slotmachine.ore.reward.2} to 800
- set {slotmachine.ore.reward.3} to 1000
- set {slotmachine.ore.price} to 100
- #鉱石 1エメラルド 2.金 3.レッド 4.ラピス 5.ダイヤ
- set {slotmachine.gatya.1} to diamond block
- set {slotmachine.gatya.2} to gold block
- set {slotmachine.gatya.3} to redstone block
- set {slotmachine.gatya.4} to emerald block
- set {slotmachine.gatya.5} to lapis block
- set {slotmachine.gatya.6} to iron block
- set {slotmachine.gatya.7} to coal block
- set {slotmachine.ore.price} to 100
- if {legend.slot.jackpot} is not set:
- set {legend.slot.jackpot} to 1000
- on join:
- if {cooltime.%player%} is set:
- clear {cooltime.%player%}
- on rightclick:
- if event-block is diamond block:
- if {money::%player%} >= 100:
- {cooltime.%player%} is not set
- set {cooltime.%player%} to true
- remove 100 from {money::%player%}
- add 10 to {legend.slot.jackpot}
- set {_slotblocknum} to 7
- block under the event-block is bedrock
- set {_x.cord} to the event-block's x-coordinate
- set {_y.cord} to the event-block's y-coordinate
- set {_z.cord} to the event-block's z-coordinate
- set {_block1} to location at {_x.cord}+10, {_y.cord}+2, {_z.cord}-7
- set {_block1.1} to location at {_x.cord}+10, {_y.cord}, {_z.cord}-5
- set {_block2} to location at {_x.cord}+10, {_y.cord}+2, {_z.cord}-3
- set {_block2.1} to location at {_x.cord}+10, {_y.cord}, {_z.cord}-1
- set {_block3} to location at {_x.cord}+10, {_y.cord}+2, {_z.cord}+1
- set {_block3.1} to location at {_x.cord}+10, {_y.cord}, {_z.cord}+3
- set {_block4} to location at {_x.cord}+10, {_y.cord}+2, {_z.cord}+5
- set {_block4.1} to location at {_x.cord}+10, {_y.cord}, {_z.cord}+7
- set {_slot.num1} to a random integer between 1 and {_slotblocknum}
- set {_slot.num2} to a random integer between 1 and {_slotblocknum}
- set {_slot.num3} to a random integer between 1 and {_slotblocknum}
- set {_slot.num4} to a random integer between 1 and {_slotblocknum}
- set {_num} to 0
- set {_num1} to 0
- set {_num2} to 0
- set {_num3} to 0
- loop 4 times:
- add 1 to {_num3}
- loop blocks within {_block%{_num3}%} and {_block%{_num3}%.1}:
- set block at loop-block to black wool
- loop 4 times:
- add 1 to {_num}
- loop blocks within {_block%{_num}%} and {_block%{_num}%.1}:
- set block at loop-block to {slotmachine.gatya.%{_slot.num%{_num}%}%}
- add 1 to {_num2}
- if {_num2} is 9 or 18 or 27 or 36:
- play sound "block.wood.break" with volume 2 and pitch 1 at player
- wait 3 ticks
- loop 4 times:
- add 1 to {_num1}
- if {_slot.num1} != {_slot.num%{_num1}%}:
- clear {cooltime.%player%}
- play sound "block.glass.break" with volume 1.5 and pitch 2 at player
- wait 5 tick
- stop
- loop all players:
- play sound "ui.toast.challenge_complete" with volume 0.8 and pitch 1 to the loop-player
- broadcast "&c[Slot]&d%player%さん&eが&bレジェンドスロット&eを当てました!&aレジェンドチケット&eと&dジャックポット%{legend.slot.jackpot}%ペル&eをゲットです!"
- add {legend.slot.jackpot} to {money::%player%}
- set {legend.slot.jackpot} to 1000
- give paper named "&d&lレジェンドチケット" with lore "&eスロット限定武器等に交換できる" and "&eとても貴重なチケット" to player
- wait 8 seconds
- clear {cooltime.%player%}
- else:
- play sound "block.lava.pop" with volume 0.8 and pitch 1 at player
- command /getslotticket:
- permission: admin
- trigger:
- give paper named "&d&lレジェンドチケット" with lore "&eスロット限定武器等に交換できる" and "&eとても貴重なチケット" to player
- on rightclick:
- if event-block is grass:
- set {_slottype} to "grass"
- set {_slotblocknum} to 2
- else if event-block is gold block:
- set {_slottype} to "ore"
- set {_slotblocknum} to 3
- else:
- stop
- block under the event-block is bedrock
- if {money::%player%} >= {slotmachine.%{_slottype}%.price}:
- {cooltime.%player%} is not set
- set {cooltime.%player%} to true
- remove {slotmachine.%{_slottype}%.price} from {money::%player%}
- set {_x.cord} to the event-block's x-coordinate
- set {_y.cord} to the event-block's y-coordinate
- set {_z.cord} to the event-block's z-coordinate
- set {_block1} to location at {_x.cord}+1, {_y.cord}+1, {_z.cord}-2
- set {_block2} to location at {_x.cord}+1, {_y.cord}+1, {_z.cord}
- set {_block3} to location at {_x.cord}+1, {_y.cord}+1, {_z.cord}+2
- set {_slot.num1} to a random integer between 1 and {_slotblocknum}
- set {_slot.num2} to a random integer between 1 and {_slotblocknum}
- set {_slot.num3} to a random integer between 1 and {_slotblocknum}
- set {_slotloop} to 0
- loop 3 time:
- add 1 to {_slotloop}
- set block at {_block%{_slotloop}%} to black wool
- set {_slotloop} to 0
- loop 3 time:
- add 1 to {_slotloop}
- wait 7 ticks
- play 10 CLOUD with offset of 0.15, 0.15, 0.15 and speed 0 at {_block%{_slotloop}%}'s location
- play sound "entity.blaze.hurt" with volume 0.8 and pitch 1 at player
- set block at {_block%{_slotloop}%} to {slotmachine.%{_slottype}%.%{_slot.num%{_slotloop}%}%}
- clear {cooltime.%player%}
- set {_num} to 0
- loop 3 times:
- add 1 to {_num}
- if {_slot.num1} != {_slot.num%{_num}%}:
- stop
- send "&b[Slot]&e当たり!&d(%{slotmachine.%{_slottype}%.name.%{_slot.num1}%}%:&c%{slotmachine.%{_slottype}%.reward.%{_slot.num1}%}%ペル&d)"
- add {slotmachine.%{_slottype}%.reward.%{_slot.num1}%} to {money::%player%}
- play sound "entity.experience_orb.pickup" with volume 0.8 and pitch 1 at player
- else:
- play sound "block.lava.pop" with volume 0.8 and pitch 1 at player
- every 120 seconds:
- set {_kabu} to a random integer between 1 and 13
- if {_kabu} >= 6:
- loop all players:
- play sound "entity.player.levelup" with volume 0.8 and pitch 0.1 to the loop-players
- else:
- loop all players:
- play sound "entity.player.levelup" with volume 0.8 and pitch 0.5 to the loop-players
- if {_kabu} = 1:
- kabuka(100,false)
- if {_kabu} = 2:
- kabuka(80,false)
- if {_kabu} = 3:
- kabuka(50,false)
- if {_kabu} = 4:
- kabuka(5,false)
- if {_kabu} = 5:
- kabuka(2,false)
- if {_kabu} = 6:
- kabuka(-100,false)
- if {_kabu} = 7:
- kabuka(-100,false)
- if {_kabu} = 8:
- kabuka(-80,false)
- if {_kabu} = 9:
- kabuka(-50,false)
- if {_kabu} = 10:
- kabuka(-50,false)
- if {_kabu} = 11:
- kabuka(-5,false)
- if {_kabu} = 12:
- kabuka(-2,false)
- if {_kabu} = 13:
- kabuka(0,true)
- function kabuka(n:number, b:boolean):
- if {_b} is true:
- broadcast "&d[株]&e倒産しました...全員の株が没収されます"
- loop {kabu::*}:
- set {kabu::%loop-index%} to 0
- set {kabuka} to 100
- stop
- if {_n} >= 0:
- broadcast "&d[株]&e株価が%{_n}%ペル上昇しました!&c(%{kabuka}%→%{kabuka} + {_n}%)"
- else:
- broadcast "&b[株]&e株価が%{_n}%ペル下落しました・・・&c(%{kabuka}%→%{kabuka} + {_n}%)"
- set {kabuka} to {kabuka} + {_n}
- set {kabu} to {_n}
- if {kabuka} <= 10:
- broadcast "&d[株]&e倒産しました...全員の株が没収されます"
- loop {kabu::*}:
- set {kabu::%loop-index%} to 0
- set {kabuka} to 100
- on sign change:
- if line 1 is "kabu kau1":
- set line 1 to "&d==============="
- set line 2 to "&c&l株を一株買う"
- set line 3 to "&d==============="
- if line 1 is "kabu kau10":
- set line 1 to "&d==============="
- set line 2 to "&c&l株を十株買う"
- set line 3 to "&d==============="
- if line 1 is "kabu uru1":
- set line 1 to "&d==============="
- set line 2 to "&b&l株を一株売る"
- set line 3 to "&d==============="
- if line 1 is "kabu uru10":
- set line 1 to "&d==============="
- set line 2 to "&b&l株を十株売る"
- set line 3 to "&d==============="
- on rightclick:
- if block is sign:
- if line 2 is "&c&l株を一株買う":
- {money::%player%} >= {kabuka}
- add 1 to {kabu::%player%}
- remove {kabuka} from {money::%player%}
- play sound "block.note.chime" with volume 0.8 and pitch 1 to the player
- else if line 2 is "&c&l株を十株買う":
- {money::%player%} >= {kabuka} * 10
- add 10 to {kabu::%player%}
- remove {kabuka} * 10 from {money::%player%}
- play sound "block.note.chime" with volume 0.8 and pitch 1 to the player
- else if line 2 is "&b&l株を一株売る":
- {kabu::%player%} >= 1
- remove 1 from {kabu::%player%}
- add {kabuka} to {money::%player%}
- play sound "block.note.guitar" with volume 0.8 and pitch 1 to the player
- else if line 2 is "&b&l株を十株売る":
- {kabu::%player%} >= 10
- remove 10 from {kabu::%player%}
- add {kabuka} * 10 to {money::%player%}
- play sound "block.note.guitar" with volume 0.8 and pitch 1 to the player
- every 5 seconds:
- delete holo object "LegendSlot"
- create holo object "ItemStack:Diamond Block;&dレジェンドガチャ;&b料金:一回100ペル;&e現在のジャックポット:%{legend.slot.jackpot}%ペル;&cスロット限定武器の入手に必要な;&cレジェンドチケットを入手できる" with id "LegendSlot" at {LegendSlot.loc}
- command /legendloc:
- permission: admin
- trigger:
- set {LegendSlot.loc} to player's location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement