SHARE
TWEET

Untitled

a guest Sep 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Kits
  2.  
  3.  
  4.  
  5. on join:
  6.     if {xp.%player's uuid%} is not set:
  7.         set {xp.%player's uuid%} to 0
  8.     if {kills::%player's uuid%} is not set:
  9.         set {kills::%player's uuid%} to 0
  10.     if {deaths::%player's uuid%} is not set:
  11.         set {deaths::%player's uuid%} to 0
  12.     if {xpc.%player's uuid%} is not set:
  13.         set {xpc.%player's uuid%} to 200
  14. on death:
  15.     victim is player
  16.     set {kit.%victim's uuid%} to false
  17.     set {_victim} to victim
  18.     set {_uuid} to {_victim}'s uuid
  19.     set {_attacker} to {lastdamager::%victim%}
  20.     set {_auuid} to {_attacker}'s uuid
  21.     send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &c%{lastdamager::%victim%}%" for 20 ticks with 0 tick fade in and 3 tick fade out
  22.     add 1 to {TDeaths::%{_uuid}%}
  23.     add 1 to {Tkills::%{_auuid}%}
  24.     set {_rnd} to a random integer between 10 and 20
  25.     add {_rnd} to {xp.%{_auuid}%}
  26.     add 1 to {streak.%{lastdamager::%victim%}%}
  27.     if {ksr.%{lastdamager::%victim%}%} is not set:
  28.         set {ksr.%{lastdamager::%victim%}%} to 5
  29.     send "&cYou got %{_rnd}% xp" to attacker
  30.     set {streak.%victim%} to 0
  31.     delete {ksr.%victim%}
  32.     if {lastdamager::%victim%} is set:
  33.         if projectile is set:
  34.             set death message to "&c%{lastdamager::%victim%}% &7shot &c%victim%&7!"
  35.         else:
  36.             if attacker is not set:
  37.                 set death message to "&cunknown &7killed &c%victim%&7!"
  38.             else:
  39.                 set death message to "&c%{lastdamager::%victim%}% &7killed &c%victim%&7!"
  40.                 give attacker 1 golden apple
  41.         if {streak.%{lastdamager::%victim%}%} = {ksr.%{lastdamager::%victim%}%}:
  42.             loop all players:
  43.                 play sound "entity.ender_dragon.growl" at loop-player for loop-player
  44.             broadcast ""
  45.             broadcast "&c%{lastdamager::%victim%}% &7is on a streak of &c%{ksr.%{lastdamager::%victim%}%}%"
  46.             broadcast ""
  47.             set {ksr.%{lastdamager::%victim%}%} to {streak.%{lastdamager::%victim%}%} + 5
  48.     if attacker is not set:
  49.         send "&c%victim% &7fell into the void!" to all players
  50.         send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &cThe Void" for 20 ticks with 0 tick fade in and 3 tick fade out
  51.         add 1 to {Deaths::%victim's uuid%}
  52.         stop
  53.     wait 5 ticks
  54.     respawn victim
  55.     teleport victim to {spawn}
  56. on respawn:
  57.     wait 5 ticks
  58.     clear player's inventory
  59. on damage:
  60.     victim is player
  61.     attacker is player
  62.     set {lastdamager::%victim%} to attacker
  63.     set {lastdamageat::%victim%} to 5
  64. on quit:
  65.     if {combat.%player%} is true:
  66.         kill player
  67. every second:
  68.     loop all players:
  69.         if {lastdamageat::%loop-player%} is 0:
  70.             delete {lastdamager::%loop-player%}
  71.         if {lastdamageat::%loop-player%} is set:
  72.             remove 1 from {lastdamageat::%loop-player%}
  73. every 5 seconds:
  74.     loop all players:
  75.         set {_online} to number of all players
  76.         wipe loop-player's sidebar
  77.         set {diff.%loop-player's uuid%} to {xpc.%loop-player's uuid%} - {xp.%loop-player's uuid%}
  78.         set name of sidebar of loop-player to "&cSakuraKits &7&o(%{_online}% / 15)”
  79.         set score "&7" in sidebar of loop-player to 9
  80.         set score "&c&lStats" in sidebar of loop-player to 8
  81.         set score "&7&lLevel: &c%{level::%loop-player's uuid%}%" in sidebar of loop-player to 7
  82.         set score "&7&lXp: &c%{xp.%loop-player's uuid%}%" in sidebar of loop-player to 6
  83.         set score "&7&lXp Needed: &c%{diff.%loop-player's uuid%}%" in sidebar of loop-player to 5
  84.         set score "&7&lKills: &c%{Tkills::%loop-player's uuid%}%" in sidebar of loop-player to 4
  85.         set score "&7&lDeaths: &c%{TDeaths::%loop-player's uuid%}%" in sidebar of loop-player to 3
  86.         set score "&7&1" in sidebar of loop-player to 2
  87.         set score "&d&lSakuraKits.minehut.gg" in sidebar of loop-player to 1
  88.         if {xp.%loop-player's uuid%} >= {xpc.%loop-player's uuid%}:
  89.             add 1 to {level::%loop-player's uuid%}
  90.             send "&eYou leveled up!" to loop-player
  91.             add 200 to {xpc.%loop-player's uuid%}
  92. on join:
  93.     if {xp.%player's uuid%} is not set:
  94.         set {xp.%player's uuid%} to 0
  95.     if {kills::%player's uuid%} is not set:
  96.         set {kills::%player's uuid%} to 0
  97.     if {deaths::%player's uuid%} is not set:
  98.         set {deaths::%player's uuid%} to 0
  99.     if {xpc.%player's uuid%} is not set:
  100.         set {xpc.%player's uuid%} to 200
  101.     if {level::%player's uuid%} is not set:
  102.         set {level::%player's uuid%} to 1
  103. command /kit [<text>]:
  104.     trigger:
  105.         if arg-1 is not set:
  106.             wait 5 ticks
  107.             open chest with 6 rows named "&cKits" to player
  108.             format slot 10 of player with diamond sword named "&7Kit Fighter" with lore "&7Stone Sword" and "&7Fishing Rod” and " &76 Golden Apples" and "&7Chain Helmet" and "&7Iron Chestplate” and "&7Chain Leggings” and “&7Chain Boots” to close then run [Execute player command "/kit fighter"]
  109.             format slot 12 of player with bow named "&7Kit Archer" with lore "&7Wooden Sword" and "&72 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&71 Arrow" to close then run [Execute player command "/kit archer"]
  110.             if player has permission "VIP":
  111.                 format slot 16 of player with bow named "&7Kit VIP" with lore "&7Stone Sword" and "&7Bow" and "&71 Arrow" and "&716 Golden Apples" and "&7Chain Helmet" and "&7Iron Chestplate" and "&7Chain Leggings" and "&7Chain Boots" to close then run [Execute player command "/kit VIP"]
  112.             if {level::%player's uuid%} >= 5:
  113.                 format slot 14 of player with iron sword named "&7Kit Warrior" with lore "&7Iron Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" to close then run [Execute player command "/kit warrior"]
  114.             if {level::%player's uuid%} >= 10:
  115.                 format slot 28 of player with stone sword named "&7Kit Spammer" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow pow1, inf" and "&7A arrow" to close then run [Execute player command "/kit spammer"]
  116.         else:
  117.             if arg-1 is "fighter":
  118.                 if {kit.%Player's uuid%} is false:
  119.                     set player's helmet to chain helmet
  120.                     set player's chestplate to iron chestplate
  121.                     set player's leggings to chain leggings
  122.                     set player's boots to chain boots
  123.                     give player a stone sword
  124.                     give player fishing rod of unbreaking 3
  125.                     give player 6 golden apple
  126.                     send "&7Kit Fighter Recived!"
  127.                     set {kit.%player's uuid%} to true
  128.                 else:
  129.                     send "&cYou already have a kit!"
  130.             else:
  131.                 if arg-1 is "archer":
  132.                     if {kit.%Player's uuid%} is false:
  133.                         set player's helmet to chain helmet
  134.                         set player's chestplate to chain chestplate
  135.                         set player's leggings to chain leggings
  136.                         set player's boots to chain boots
  137.                         give player a wooden sword
  138.                         give player a bow of punch 1 and infinity 1
  139.                         give player 4 golden apple
  140.                         give player 1 arrow
  141.                         send "&7Kit Archer Recived!"
  142.                         set {kit.%player's uuid%} to true
  143.                     else:
  144.                         send "&cYou already have a kit!"
  145.                 else:
  146.                     if arg-1 is "warrior":
  147.                         if {kit.%Player's uuid%} is false:
  148.                             if {level::%player's uuid%} >= 5:
  149.                                 set player's helmet to chain helmet
  150.                                 set player's chestplate to chain chestplate
  151.                                 set player's leggings to chain leggings
  152.                                 set player's boots to chain boots
  153.                                 give player a iron sword
  154.                                 give player 8 golden apple
  155.                                 send "&7Kit Warrior Recived!"
  156.                                 set {kit.%player's uuid%} to true
  157.                             else:
  158.                                 send "&cYou must be at least level 5!"
  159.                         else:
  160.                             send "&cYou already have a kit!"
  161.                     else:
  162.                         if arg-1 is "VIP":
  163.                             if {kit.%Player's uuid%} is false:
  164.                                 if player has permission "VIP":
  165.                                     set player's helmet to chain helmet
  166.                                     set player's chestplate to iron chestplate of protection 1
  167.                                     set player's leggings to chain leggings
  168.                                     set player's boots to chain boots
  169.                                     give player a stone sword of unbreaking 3
  170.                                     give player a fishing rod of unbreaking 3
  171.                                     give player bow of punch 1 and infinity 1
  172.                                     give player 8 golden apple
  173.                                     give player 1 arrow
  174.                                     send "&7Kit VIP Recived!"
  175.                                     set {kit.%player's uuid%} to true
  176.                                 else:
  177.                                     send "&cYou must be a vip!"
  178.                             else:
  179.                                 send "&cYou already have a kit!"
  180.                         else:
  181.                             if arg-1 is "spammer":
  182.                                 if {kit.%Player's uuid%} is false:
  183.                                     if {level::%player's uuid%} >= 10:
  184.                                         set player's helmet to chain helmet
  185.                                         set player's chestplate to chain chestplate
  186.                                         set player's leggings to chain leggings
  187.                                         set player's boots to chain boots
  188.                                         give player a stone sword
  189.                                         give player a bow of punch 1 and infinity 1
  190.                                         give player a arrow
  191.                                         give player 8 golden apple
  192.                                         send "&7Kit Spammer Recived!"
  193.                                         set {kit.%player's uuid%} to true
  194.                                     else:
  195.                                         send "&cYou must be at least level 10!"
  196.                                 else:
  197.                                     send "&cYou already have a kit!"
  198.  
  199. on first join:
  200.     set {kit.%player's uuid%} to false
  201.     add 1 to {joins}
  202.     broadcast "&c%player% &7is new to &cSakuraKits&7! &c(##%{joins}%)"
  203. on join:
  204.     set join message to "&c%player% &7has joined"
  205. on quit:
  206.     set quit message to "&c%player% &7has left"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top