Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- player's tool is emerald named "&aShop &7(Right Click)"
- open chest with 5 row named "&aShop" to player
- set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
- set slot 11 of player's current inventory to bow named "&aKit & Parks"
- set slot 15 of player's current inventory to slimeball named "&aCostume"
- set slot 31 of player's current inventory to barrier named "&cClosed"
- on right click:
- player's tool is player's skull named "&aProfile &7(Right Click)"
- open chest with 5 row named "&aProfile" to player
- set slot 31 of player's current inventory to barrier named "&cClosed"
- on right click:
- player's tool is nether star named "&aGame Join &7(Right Click)"
- open chest with 5 row named "&aCheck" to player
- set slot 13 of player's current inventory to ender pearl named "&aJoin game!"
- set slot 31 of player's current inventory to barrier named "&cClosed"
- if {white::%player%} is set:
- send "&cすでにゲームに参加しています。"
- close player's inventory
- on inventory click:
- if name of player's current inventory contain "&aShop":
- cancel event
- if name of player's current inventory contain "&aCheck":
- cancel event
- if name of player's current inventory contain "&aProfile":
- cancel event
- if name of player's current inventory contain "&aCostume":
- cancel event
- if name of player's current inventory contain "&aKit & Parks":
- cancel event
- if name of player's current inventory contain "&aKill Effect":
- cancel event
- if name of player's current inventory contain "&aDeath Sound":
- cancel event
- if name of player's current inventory contain "&aVictory Dance":
- cancel event
- if clicked item is leather armour:
- cancel event
- if name of clicked item is "&cClosed":
- close player's inventory
- if name of clicked item is "&aJoin game!":
- if {team} is false:
- set {red::*} to player
- set {white::%player%} to player
- add 1 to {redteam}
- add 1 to {gameplayer}
- set {team} to true
- command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
- broadcast "&7%player% &eがゲームに参加しました! &b%{gameplayer}%&e人"
- send "&c赤チームに参加しました!"
- close player's inventory
- stop
- if {team} is true:
- set {blue::%player%} to player
- set {white::%player%} to player
- add 1 to {blueteam}
- add 1 to {gameplayer}
- set {team} to false
- command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
- broadcast "&7%player% &eがゲームに参加しました! &b%{gameplayer}%&e人"
- send "&9青チームに参加しました!"
- close player's inventory
- stop
- if name of clicked item is "&cCancel":
- close player's inventory
- if name of clicked item is "&aCostume":
- open chest with 5 row named "&aCostume" to player
- set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
- set slot 11 of player's current inventory to slimeball named "&aKill Effect"
- set slot 13 of player's current inventory to jukebox named "&aDeath Sound"
- set slot 15 of player's current inventory to dragon egg named "&aVictory Dance"
- set slot 31 of player's current inventory to barrier named "&cClosed"
- if name of clicked item is "&aKit & Parks":
- open chest with 5 row named "&aKit & Parks" to player
- set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
- set slot 31 of player's current inventory to barrier named "&cClosed"
- if name of clicked item is "&aKill Effect":
- open chest with 5 row named "&aKill Effect" to player
- set slot 31 of player's current inventory to barrier named "&cClosed"
- set slot 0 of player's current inventory to nether star named "&aStatus" with lore "&1" and "&fYour Coins: &6%{coins.%player%}%" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
- set slot 10 of player's current inventory to barrier named "&aNone"
- set slot 11 of player's current inventory to glass named "&cLIGHTNING BOLT" with lore "&1" and "&7Price: &e800" and "&2" and "&cLOCKED" and "&3" and "&8Click to buy!"
- set slot 12 of player's current inventory to tnt named "&cEXPLOSION" with lore "&1" and "&7Price: &e800" and "&2" and "&cLOCKED" and "&3" and "&8Click to buy!"
- if {kf.lightningbolt.%player%} is set:
- set slot 11 of player's current inventory to glass named "&aLIGHTNING BOLT's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
- if {kf.explosion.%player%} is set:
- set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
- if name of clicked item is "&cLIGHTNING BOLT":
- if {cash.%player%} >= 800:
- set {kf.lightningbolt.%player%} to player
- set slot 11 of player's current inventory to glass named "&aLIGHTNING BOLT's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
- remove 800 from {cash.%player%}
- send "&aYou purchased &6LIGHTNING BOLT"
- execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
- stop
- else:
- send "&cYou don't have enough cash!"
- execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
- if name of clicked item is "&aLIGHTNING BOLT's":
- set {kf.lightningbolts.%player%} to player
- delete {kf.explosions.%player%}
- execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
- send "&6LIGHTNING BOLT &ais set!"
- if name of clicked item is "&cEXPLOSION":
- if {cash.%player%} >= 800:
- set {kf.explosion.%player%} to player
- set slot 12 of player's current inventory to tnt named "&aEXPLOSION's" with lore "&1" and "&aUNLOCKED" and "&2" and "&8Click to selected!"
- remove 800 from {cash.%player%}
- send "&aYou purchased &6EXPLOSION"
- execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
- stop
- else:
- send "&cYou don't have enough cash!"
- execute console command "/playsound entity.endermen.teleport master %player% ~ ~ ~ 2 0.5 1"
- if name of clicked item is "&aEXPLOSION's":
- set {kf.explosions.%player%} to player
- delete {kf.lightningbolts.%player%}
- execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
- send "&6EXPLOSION &ais set!"
- if name of clicked item is "&aNone":
- delete {kf.explosions.%player%}
- delete {kf.lightningbolts.%player%}
- execute console command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
- send "&6None &ais set!"
- on death of player:
- if {kf.lightningbolts.%player%} is set:
- strike lightning effect at the victim
- if {kf.explosions.%player%} is set:
- create a fake explosion at the victim
- command /deletekf <player>:
- permission: skript.admin
- trigger:
- send "&a%arg-1% DELETE ALL EFFECTS"
- delete {kf.explosions.%arg-1%}
- delete {kf.lightningbolts.%arg-1%}
- delete {kf.explosion.%arg-1%}
- delete {kf.lightningbolt.%arg-1%}
- command /jointeam <player> <text>:
- permission: skript.admin
- trigger:
- if {lobby} is true:
- if arg-2 is "red":
- set {red::*} to arg-1
- delete {blue::%arg-1%}
- send "&7%arg-1% &aを &c赤 &aチームに参加させました!" to player
- send "&c%player% &aにより &c&l赤 &aチームに強制的に参加しました!"
- if arg-2 is "blue":
- set {blue::*} to arg-1
- delete {red::%arg-1%}
- send "&7%arg-1% &aを &9青 &aチームに参加させました!" to player
- send "&c%player% &aにより &9&l青 &aチームに強制的に参加しました!"
- stop
- else:
- send "&cUsage: /jointeam <player> <red / blue>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement