Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 ticks:
- loop all players:
- send action bar "&6&l所持金:&e&l%{money.%loop-player%}% §b§lジンバブエドル" to loop-player
- on first join:
- set {money.%player%} to 5000
- on right click on wood button:
- if block under the event-block is iron block:
- message "§6§l現在の賞金100000+%{slot1.stock}%ストック"
- on right click on stone button:
- if block under the event-block is iron block:
- if player is riding entity:
- {money.%player%} is greater than or equal to 1000
- set block to air
- add -1000 to {money.%player%}
- add 500 to {slot1.stock}
- set {slot1percent1.%player%} to random integer between 1 and 5
- set {slot1percent2.%player%} to random integer between 1 and 5
- set {slot1percent3.%player%} to random integer between 1 and 5
- set {slot1percent4.%player%} to random integer between 1 and 5
- wait 6 ticks
- play sound "block.note.pling" with pitch 0.7 at player
- if {slot1percent1.%player%} is 1:
- execute console command "/fill 11 16 90 7 12 90 minecraft:wool 1"
- if {slot1percent1.%player%} is 2:
- execute console command "/fill 11 16 90 7 12 90 minecraft:wool 3"
- if {slot1percent1.%player%} is 3:
- execute console command "/fill 11 16 90 7 12 90 minecraft:wool 4"
- if {slot1percent1.%player%} is 4:
- execute console command "/fill 11 16 90 7 12 90 minecraft:wool 5"
- if {slot1percent1.%player%} is 5:
- execute console command "/fill 11 16 90 7 12 90 minecraft:wool 6"
- wait 6 ticks
- play sound "block.note.pling" with pitch 0.7 at player
- if {slot1percent2.%player%} is 1:
- execute console command "/fill 5 16 90 1 12 90 minecraft:wool 1"
- if {slot1percent2.%player%} is 2:
- execute console command "/fill 5 16 90 1 12 90 minecraft:wool 3"
- if {slot1percent2.%player%} is 3:
- execute console command "/fill 5 16 90 1 12 90 minecraft:wool 4"
- if {slot1percent2.%player%} is 4:
- execute console command "/fill 5 16 90 1 12 90 minecraft:wool 5"
- if {slot1percent2.%player%} is 5:
- execute console command "/fill 5 16 90 1 12 90 minecraft:wool 6"
- wait 6 ticks
- play sound "block.note.pling" with pitch 0.7 at player
- if {slot1percent3.%player%} is 1:
- execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 1"
- if {slot1percent3.%player%} is 2:
- execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 3"
- if {slot1percent3.%player%} is 3:
- execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 4"
- if {slot1percent3.%player%} is 4:
- execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 5"
- if {slot1percent3.%player%} is 5:
- execute console command "/fill -1 16 90 -5 12 90 minecraft:wool 6"
- wait 6 ticks
- play sound "block.note.pling" with pitch 0.7 at player
- if {slot1percent4.%player%} is 1:
- execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 1"
- if {slot1percent4.%player%} is 2:
- execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 3"
- if {slot1percent4.%player%} is 3:
- execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 4"
- if {slot1percent4.%player%} is 4:
- execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 5"
- if {slot1percent4.%player%} is 5:
- execute console command "/fill -7 16 90 -11 12 90 minecraft:wool 6"
- if {slot1percent1.%player%} is {slot1percent2.%player%}:
- if {slot1percent2.%player%} is {slot1percent3.%player%}:
- if {slot1percent3.%player%} is {slot1percent4.%player%}:
- set {slot1percent5.%player%} to random integer between 1 and 5
- if {slot1percent5.%player%} is between 1 and 4:
- add 100000 to {money.%player%}
- add {slot1.stock} to {money.%player%}
- broadcast "§6%player%さん§eが§3スロット大(仮)§eを当てました!"
- set {slot1.stocks} to 100000+{slot1.stock}
- broadcast "§6§l賞金 %{slot1.stocks}% (100000+%{slot1.stock}%)"
- play sound "entity.enderdragon.ambient" at all players
- set {slot1.stock} to 0
- if {slot1percent5.%player%} is 5:
- broadcast "§6%player%さん§eが§3スロット大(仮)§eを当てました!"
- play sound "entity.enderdragon.ambient" at all players
- message "§c§l--------<ダブルアップチャンス>--------"
- set {slot1.doubleup.%player%} to 100000
- add {slot1.stock} to {slot1.doubleup.%player%}
- set {slot1.stock} to 0
- message "§6§lダブルアップを行いますか?"
- set {_msg} to "§c§lはい||cmd:/slot1accept"
- set {_to} to "%player%"
- json({_to}, {_msg})
- set {_msg} to "§a§lいいえ||cmd:/slot1cancel"
- set {_to} to "%player%"
- json({_to}, {_msg})
- message "§6§l20秒以内に選択してください"
- message "§6無回答の場合いいえとみなします"
- message "§c§l--------------------------------------"
- set {slotac.%player%} to 1
- wait 20 seconds
- if {slotac.%player%} is 1:
- message "§e無回答のためいいえが選択されました"
- add {slot1.doubleup.%player%} to {money.%player%}
- set {slot1.doubleup.%player%} to 0
- wait 10 ticks
- execute console command "/fill 11 16 90 7 12 90 minecraft:air"
- execute console command "/fill 5 16 90 1 12 90 minecraft:air"
- execute console command "/fill -1 16 90 -5 12 90 minecraft:air"
- execute console command "/fill -7 16 90 -11 12 90 minecraft:air"
- set block to stone button
- command /slot1accept:
- trigger:
- if {slot1.doubleup.%player%} is greater than 0:
- message "§a§lダブルアップを開始しました"
- play sound "ui.button.click" at player
- set {slotac.%player%} to 0
- wait 5 ticks
- play sound "block.note.pling" with pitch 0.7 at player
- wait 5 ticks
- play sound "block.note.pling" with pitch 0.9 at player
- wait 5 ticks
- play sound "block.note.pling" with pitch 1.1 at player
- set {slot1.doubleup.percent.%player%} to random integer between 1 and 2
- if {slot1.doubleup.percent.%player%} is 1:
- message "§b§l---失敗-賞金がすべて消えました---"
- broadcast "§b%player%さんが§3スロット大(仮)§bのダブルアップに挑戦して失敗しました"
- set {slot1.doubleup.%player%} to 0
- play sound "entity.wither.death" with pitch 1.5 at player
- if {slot1.doubleup.percent.%player%} is 2:
- message "§6§l---成功-賞金が倍になりました!---"
- play sound "entity.enderdragon.death" at all players
- set {slot1.doubleup.%player%} to {slot1.doubleup.%player%}*2
- broadcast "§c§l%player%さんが§3スロット大(仮)§c§lのダブルアップに成功しました!"
- broadcast "§6§l賞金 %{slot1.doubleup.%player%}%"
- add {slot1.doubleup.%player%} to {money.%player%}
- set {slot1.doubleup.%player%} to 0
- command /slot1cancel:
- trigger:
- if {slot1.doubleup.%player%} is greater than 0:
- set {slotac.%player%} to 0
- message "§3§lダブルアップをキャンセルしました"
- add {slot1.doubleup.%player%} to {money.%player%}
- set {slot1.doubleup.%player%} to 0
- command /addmoney <player> <number>:
- permission: skript.admin
- trigger:
- add arg 2 to {money.%arg 1%}
- #command /trademoney <player> <number>:
- # trigger:
- # if
- # add arg 2 to {trademoney.%arg1%}
- # add -arg 2 to {money}
- on break:
- player do not have permission "skript.builder"
- cancel event
- on place:
- player do not have permission "skript.builder"
- cancel event
- on craft:
- cancel event
- on spread:
- cancel event
- on burn:
- cancel event
- on explosion prime:
- cancel event
- command /c:
- description: コマンドブロックを入手する
- usage: /c
- permission: skript.admin
- executable by: player
- trigger:
- give command block to player
- give redstone block to player
- command /en:
- description: エンダーチェストを開く
- usage: /en
- executable by: player
- trigger:
- open the player's ender chest to the player
- command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
- on command "/pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/plugins":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/help":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on join:
- set the join message to "&e%player%さんがサーバーに参加しました。"
- on quit:
- set the quit message to ""
- on rightclick on entity:
- name of the event-entity is "stairs":
- if player is not sneaking:
- if clicked entity is not riding entity:
- make player ride event-entity
- on sneak toggle:
- if player is riding entity:
- eject any passenger of entity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement