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 11 of player's current inventory to red wool named "&cJoin Red Team"
- set slot 15 of player's current inventory to blue wool named "&9Join Blue Team"
- set slot 31 of player's current inventory to barrier named "&cClosed"
- if {red::*} is set:
- send "&cすでにゲームに参加しています。"
- close player's inventory
- if {blue::*} 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 name of clicked item is "&cClosed":
- close player's inventory
- if name of clicked item is "&cJoin Red Team":
- set {red::%player%} to player
- add 1 to {redteam}
- add 1 to {gameplayer}
- command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
- broadcast "&7%player% &eは &f&kaaa &eチームに参加しました!"
- close player's inventory
- if name of clicked item is "&9Join Blue Team":
- set {blue::%player%} to player
- add 1 to {blueteam}
- add 1 to {gameplayer}
- command "/playsound block.note.hat master %player% ~ ~ ~ 2 2 1"
- broadcast "&7%player% &eは &f&kaaa &eチームに参加しました!"
- close player's inventory
- 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
- set death message to "&7%victim% &ewas killed by &7%attacker%"
- force respawn player
- 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%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement