ArtzifyHD

Kitpvp skript

Jul 21st, 2017
2,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.12 KB | None | 0 0
  1. #Verion 3 Add's
  2. # Custom Mob Only one for the moment , easy to edit if you need any help msg me on Spigot
  3. #
  4. #
  5. #
  6. #
  7. #
  8.  
  9.  
  10.  
  11.  
  12. #========================[ Kit Selector ]=========================#
  13.  
  14. on player respawn:
  15. wait 1 second
  16. execute console command "/give %player% 399 1 lore:&7Right_Click:&b_To_Select_Kit name:&b&lKit Selector"
  17.  
  18. on rightclick holding a nether star:
  19. cancel the event
  20. open chest with 3 rows named "&6Kit's" to player
  21. wait 5 ticks
  22. format slot 0 of player with diamond sword named "&bSamurai" with lore " || &7&lDonor KIt" to run "sudo %player% JKitSamurai"
  23. format slot 2 of player with iron sword named "&bPyro" with lore " || &7&lDonor KIt" to run "sudo %player% JKitpyro"
  24. format slot 4 of player with iron axe named "&bAxeMen" with lore " || &7&lDonor KIt" to run "sudo %player% JKitaxemen"
  25. format slot 6 of player with cactus named "&bSpikeMan" with lore " || &7&lDonor KIt" to run "sudo %player% Jkitspikeman"
  26. format slot 8 of player with sugar named "&bSpeedi" with lore " || &7&lDonor KIt" to run "sudo %player% JKitspeedie"
  27. format slot 10 of player with bow named "&bArcher" with lore " || &7&lUse A bow To End Lifes" to run "sudo %player% JKitArcher"
  28. format slot 12 of player with diamond chestplate named "&bTank" with lore " || &7&lUse Your Armour To Live!" to run "sudo %player% JKitTank"
  29. format slot 14 of player with iron chestplate named "&bWarrior" with lore " || &7&lYour Sword Will Kill Many" to run "sudo %player% JKitWarrior"
  30. format slot 16 of player with iron sword named "&bKnocker" with lore " || &7&lKonckback Sword So Troll" to run "sudo %player% JKitknocker"
  31.  
  32.  
  33. #========================[ Warp Selector ]=========================#
  34.  
  35. on player respawn:
  36. wait 1 second
  37. execute console command "/give %player% enderchest 1 lore:&7Right_Click:&b_To_Select_A_Warp name:&6&lWarp's"
  38.  
  39. on rightclick holding a ender chest:
  40. cancel the event
  41. open chest with 3 rows named "&6&lWarps" to player
  42. wait 5 ticks
  43. format slot 0 of player with compass named "&bArea1" with lore " || &7&lTeleport To Area 1" to run "sudo %player% warp warp1"
  44. format slot 2 of player with compass named "&bArea2" with lore " || &7&lTeleport To Area 2" to run "sudo %player% warp warp2"
  45. format slot 4 of player with compass named "&bArea3" with lore " || &7&lTeleport To Area 3" to run "sudo %player% warp warp3"
  46. format slot 6 of player with compass named "&bArea4" with lore " || &7&lTeleport To Area 4" to run "sudo %player% warp warp4"
  47. format slot 8 of player with compass named "&bArea5" with lore " || &7&lTeleport To Area 5" to run "sudo %player% warp warp5"
  48. format slot 10 of player with compass named "&bArea6" with lore " || &7&lTeleport To Area 6" to run "sudo %player% warp warp6"
  49. format slot 12 of player with compass named "&bArea7" with lore " || &7&lTeleport To Area 7" to run "sudo %player% warp warp7"
  50. format slot 14 of player with compass named "&bArea8" with lore " || &7&lTeleport To Area 8" to run "sudo %player% warp warp8"
  51. format slot 16 of player with compass named "&bArea9" with lore " || &7&lTeleport To Area 8" to run "sudo %player% warp warp9"
  52.  
  53. #========================[ Archer Kit ]=========================#
  54.  
  55. command /JKitArcher:
  56. trigger:
  57. execute console command "/clearinventory %player%"
  58. execute console command "/give %player% 298 1 name:&bArcher's_Cap"
  59. execute console command "/give %player% 299 1 name:&bArcher's_ChestPlate"
  60. execute console command "/give %player% 300 1 name:&bArcher's_Chap's"
  61. execute console command "/give %player% 301 1 name:&bArcher's_Boots"
  62. execute console command "/give %player% bow 1 name:&bRecurve_Bow"
  63. execute console command "effect %player% clear"
  64. execute console command "/give %player% enderchest 1 name:&cWarps"
  65.  
  66. #========================[ Tank Kit ]=========================#
  67.  
  68. command /JKitTank:
  69. trigger:
  70. execute console command "/clearinventory %player%"
  71. execute console command "/give %player% 310 1 name:&bTank_Helm"
  72. execute console command "/give %player% 311 1 name:&bTank_ChestPlate"
  73. execute console command "/give %player% 312 1 name:&bTank_Helm"
  74. execute console command "/give %player% 313 1 name:&bTank_Boots"
  75. execute console command "/give %player% bow 1 name:&bIron_blade"
  76. execute console command "effect %player% clear"
  77. execute console command "/give %player% enderchest 1 name:&cWarps"
  78.  
  79. #========================[ Warrior Kit ]=========================#
  80.  
  81. command /JKitWarrior:
  82. trigger:
  83. execute console command "/clearinventory %player%"
  84. execute console command "/give %player% 306 1 name:&bwarrior_Helm"
  85. execute console command "/give %player% 307 1 name:&bwarrior_ChestPlate"
  86. execute console command "/give %player% 308 1 name:&bwarrior_Helm"
  87. execute console command "/give %player% 309 1 name:&bwarrior_Boots"
  88. execute console command "/give %player% 276 1 name:&bHardned_Blade"
  89. execute console command "effect %player% clear"
  90. execute console command "/give %player% enderchest 1 name:&cWarps"
  91.  
  92. #========================[ Knocker Kit ]=========================#
  93.  
  94. command /JKitknocker:
  95. trigger:
  96. execute console command "/clearinventory %player%"
  97. execute console command "/give %player% 306 1 name:&bKnocker_Helm"
  98. execute console command "/give %player% 307 1 name:&bKnocker_ChestPlate"
  99. execute console command "/give %player% 308 1 name:&bKnocker_Helm"
  100. execute console command "/give %player% 309 1 name:&bKnocker_Boots"
  101. give a diamond sword of knockback 2 named "&bRhino Horn" to the player
  102. execute console command "effect %player% clear"
  103. execute console command "/give %player% enderchest 1 name:&cWarps"
  104.  
  105. #========================[ Samurai Kit ]=========================#
  106.  
  107. command /JKitsamuari:
  108. permission: juppi.donor
  109. trigger:
  110. execute console command "/clearinventory %player%"
  111. execute console command "effect %player% clear"
  112. execute console command "/give %player% 306 1 name:&bKabuto"
  113. give a diamond sword of sharpness 3 named "&bKatana" to the player
  114. execute console command "effect %player% 1 9999"
  115. execute console command "/give %player% enderchest 1 name:&cWarps"
  116.  
  117. #========================[ Pyro Kit ]=========================#
  118.  
  119. command /JKitpyro:
  120. permission: juppi.donor
  121. trigger:
  122. execute console command "/clearinventory %player%"
  123. execute console command "effect %player% clear"
  124. execute console command "/give %player% 310 1 name:&bPyro_Mask"
  125. execute console command "/give %player% 311 1 name:&bPyro_Chest"
  126. execute console command "/give %player% 312 1 name:&bPyro_Legs"
  127. execute console command "/give %player% 313 1 name:&bPyro_Boots"
  128. give a stone sword of fire aspect 1 named "&bFlame Sword" to the player
  129. execute console command "effect %player% 12 9999"
  130. execute console command "/give %player% enderchest 1 name:&cWarps"
  131.  
  132. #========================[ Axe-Men Kit ]=========================#
  133.  
  134. command /JKitaxemen:
  135. permission: juppi.donor
  136. trigger:
  137. execute console command "/clearinventory %player%"
  138. execute console command "effect %player% clear"
  139. execute console command "/give %player% 302 1 name:&bPyro_Mask"
  140. execute console command "/give %player% 303 1 name:&bPyro_Chest"
  141. execute console command "/give %player% 304 1 name:&bPyro_Legs"
  142. execute console command "/give %player% 305 1 name:&bPyro_Boots"
  143. give a iron axe of sharpness 2 named "&bChipped Axe" to the player
  144. execute console command "effect %player% 12 9999"
  145. execute console command "/give %player% enderchest 1 name:&cWarps"
  146.  
  147. #========================[ Spike Kit ]=========================#
  148.  
  149. command /JKitspikeman:
  150. permission: juppi.donor
  151. trigger:
  152. execute console command "/clearinventory %player%"
  153. execute console command "effect %player% clear"
  154. give a chain helmet of thorns 2 and unbreaking 5 named "&bSpiked Helm" to the player
  155. give a chain chestplate of thorns 2 and unbreaking 5 named "&bSpiked Chest" to the player
  156. give a chain leggings of thorns 2 and unbreaking 5 named "&bSpiked Legs" to the player
  157. give a chain boots of thorns 2 and unbreaking 5 named "&bSpiked Boots" to the player
  158. give a iron sword named "&bSpiked Man's Sword" to the player
  159. execute console command "/give %player% enderchest 1 name:&cWarps"
  160. message "&2&l&m-------------------------"
  161. message " &f&lSpike"
  162. message " &7Spikeman Kit"
  163. message ""
  164. message " &6&lAbilities"
  165. message " &ePoke your Foe When they hit you"
  166. message "&2&l&m-------------------------"
  167.  
  168. #========================[ Speedie Kit ]=========================#
  169.  
  170. command /JKitspeedie:
  171. permission: juppi.donor
  172. trigger:
  173. execute console command "/clearinventory %player%"
  174. execute console command "effect %player% clear"
  175. give a iron helmet named "&bSpeedie Helmet" to the player
  176. give a iron chestplate named "&bSpeedie Chest" to the player
  177. give a iron leggings named "&bSpeedie Legs" to the player
  178. give a iron boots named "&bSpeedie Boots" to the player
  179. give a iron sword named "&bFlash Sword" to the player
  180. execute console command "effect %player% 1 9999"
  181. execute console command "/give %player% ender chest 1 name:&cWarps"
  182.  
  183. #========================[ BroadCaster ]=========================#
  184.  
  185. #If you want to add more Msg's Just Follow These Steps
  186. #Enter Underneath the Second: the next number Third: > Forth: so on
  187. #After you added the new messages Third: &6&l MSG
  188. #Go to where "every {@Interval} real {@Time}:"
  189. #Copy the "chance of {@PercentChance}: broadcast "{@First} stop" How it is with the tabbing
  190. #Paste under the second stop and change the "{@Second}" to the new line you added Ie Third , Forth so on
  191.  
  192. options:
  193. Interval: 1
  194. Time: minute
  195. PercentChance: 50%
  196.  
  197. First: &6&lSERVERNAME &b&l♥ &fINSTERT LE MSG HERE &b&l♥
  198. Second: &6&lSERVERNAME &b&l♥ &fINSTERT LE MSG HERE &b&l♥
  199.  
  200. every {@Interval} real {@Time}:
  201. chance of {@PercentChance}:
  202. broadcast "{@First}"
  203. stop
  204. chance of {@PercentChance}:
  205. broadcast "{@Second}"
  206. stop
  207.  
  208. #========================[ Event / Broadcast say ]=========================#
  209.  
  210. command /event [<text>]:
  211. permission: event.admin
  212. trigger:
  213. broadcast "&b&l‡ %arg 1% &b&l‡"
  214.  
  215. #========================[ Command {Help} ]=========================#
  216.  
  217. command /JKitpvp [<text>]:
  218. description: Main command for the script.
  219. usage: /JKitpvp [<text>]
  220. executable by: players
  221. trigger:
  222. if arg 1 is "help":
  223. message "&6 Use The Kit Selecter To Select Your Kit "
  224. message "&6 Use Your Warps Tell To Select A Place To Teleport"
  225. message "&6 The Current Build Is V.1"
  226. message ""
  227. message "&8&n---------------------------------------------------"
  228. else:
  229. message "&c&lERROR &r&7» &fPlease use the commands below."
  230. wait 1 second
  231. message "&8&n---------------------------------------------------"
  232. message ""
  233. message "&b&l/Jkitpvp Help"
  234. message ""
  235. message "&8&n---------------------------------------------------"
  236.  
  237. #========================[ Command {Reload} ]=========================#
  238.  
  239. command /Jkitpvpreload:
  240. description: Main command for the script.
  241. usage: /Jkitpvpreload
  242. permission: jkit.admin
  243. permission message: &4&lERROR &b&lNo Permission To Run This Command.
  244. executable by: players
  245. trigger:
  246. make player execute command "/sk reload KitPvp"
  247. message "&a&lRELOADED &0&l<> &fYou have successfully reloaded Kitpvp"
  248.  
  249. #========================[ ChatClear ]=========================#
  250.  
  251. command /clearchat:
  252. description: clear chat for all players!
  253. usage: /clearchat
  254. permission: juppi.chat
  255. permission message: &cYou don't have permission for that!
  256. aliases: /cc
  257. trigger:
  258. loop 100 times:
  259. broadcast " "
  260. broadcast "&0&l▲ &f&lChat has been cleared from &3&l%player% &0&l▲"
  261. stop
  262.  
  263. #========================[ Name Tags ]=========================#
  264.  
  265. command /item-nametag:
  266. permission: juppi.tags
  267. trigger:
  268. give player name tag named "itemtag"
  269. message "&bYou Have Received Your Item NameTag." to sender
  270.  
  271. every tick:
  272. loop all players:
  273. loop all items in loop-player's inventory:
  274. loop-item is a name tag:
  275. name of loop-item is "itemtag":
  276. set the name of loop-item to "&eItem NameTag"
  277. set the 1st line of lore of loop-item to "&c&lRight Click: Activate Item Name Changing"
  278. set the 2nd line of lore of loop-item to "&bWrite cancel to cancel the name change!"
  279.  
  280.  
  281. on right click with a name tag:
  282. cancel event
  283. if name of player's held item contains "Item NameTag":
  284. subtract 1 name tag from player's inventory
  285. set {naming.%player%} to true
  286. message "&6Hold an Armor Piece or a Weapon and write a name to rename it, or write &r&c&nCancel&r &6To cancel the name change" to player
  287. message "&cYOU CAN ONLY RENAME ARMOR AND WEAPONS" to player
  288.  
  289.  
  290. on chat:
  291. if {naming.%player%} is true:
  292. cancel event
  293. if message is "cancel":
  294. set {naming.%player%} to false
  295. give player a name tag named "itemtag"
  296. message "&cYou have cancelled the name change"
  297. stop
  298. if message does not contain "[" or "]":
  299. if player is holding a sword:
  300. if name of player's tool does not contain "[+":
  301. set the name of player's tool to "&6%message% "
  302. set {naming.%player%} to false
  303. message "&eYour tool has been named to &r&c%message%"
  304.  
  305. if player is holding a helmet:
  306. if name of player's tool does not contain "[+":
  307. set the name of player's tool to "&6%message% "
  308. set {naming.%player%} to false
  309. message "&eYour tool has been named to &r&c%message%"
  310.  
  311. if player is holding a chestplate:
  312. if name of player's tool does not contain "[+":
  313. set the name of player's tool to "&6%message% "
  314. set {naming.%player%} to false
  315. message "&eYour tool has been named to &r&c%message%"
  316.  
  317. if player is holding leggings:
  318. if name of player's tool does not contain "[+":
  319. set the name of player's tool to "&6%message% "
  320. set {naming.%player%} to false
  321. message "&eYour tool has been named to &r&c%message%"
  322.  
  323. if player is holding boots:
  324. if name of player's tool does not contain "[+":
  325. set the name of player's tool to "&6%message% "
  326. set {naming.%player%} to false
  327. message "&eYour tool has been named to &r&c%message%"
  328.  
  329. if player is holding an axe:
  330. if name of player's tool does not contain "[+":
  331. set the name of player's tool to "&6%message% "
  332. set {naming.%player%} to false
  333. message "&eYour tool has been named to &r&c%message%"
  334.  
  335. #========================[ Bank's ]=========================#
  336.  
  337. on right click:
  338. clicked block is ender chest:
  339. cancel event
  340. play chest open at player's location with pitch 1
  341. {rows.%player%} is not set:
  342. set {rows.%player%} to 1
  343.  
  344.  
  345. open chest with {rows.%player%} rows named "&6&lBank" to player
  346.  
  347. wait 1 tick
  348. set {bankloc.%player%} to location at block
  349. loop {rows.%player%}*9 times:
  350. set {_slot} to (loop-num)-1
  351. set slot {_slot} of player's current inventory to {bankslot.%player%::%{_slot}%}
  352. set {bankstate.%player%} to true
  353.  
  354. command /viewbank <player>:
  355. permission: bank.admin
  356. trigger:
  357. play chest open at player's location with pitch 1
  358. {rows.%arg-player%} is not set:
  359. set {rows.%arg-player%} to 1
  360.  
  361. open chest with {rows.%arg-player%} rows named "&6&lBank" to player
  362.  
  363. wait 1 tick
  364. set {bankloc.%arg-player%} to player's location
  365. loop {rows.%arg-player%}*9 times:
  366. set {_slot} to (loop-num)-1
  367. set slot {_slot} of player's current inventory to {bankslot.%arg-player%::%{_slot}%}
  368. set {bankstate.%arg-player%} to true
  369. set {bankplayer.%player%} to arg-player
  370.  
  371. on inventory close:
  372. if {bankplayer.%player%} is not "none":
  373. {bankstate.%player%} is true:
  374. set {bankstate.%player%} to false
  375. loop {rows.%{bankplayer.%player%}%}*9 times:
  376. set {_slot} to (loop-num)-1
  377. set {bankslot.%{bankplayer.%player%}%::%{_slot}%} to slot {_slot} of player's current inventory
  378. set {bankplayer.%player%} to "none"
  379. stop
  380. {bankstate.%player%} is true:
  381. set {bankstate.%player%} to false
  382. loop {rows.%player%}*9 times:
  383. set {_slot} to (loop-num)-1
  384. set {bankslot.%player%::%{_slot}%} to slot {_slot} of player's current inventory
  385.  
  386. #========================[ Mute ]=========================#
  387.  
  388. command /jmute <text> <player>:
  389. usage: /jmute [time/forever/off] [player]
  390. permission: juppi.mute
  391. trigger:
  392. if arg-2 is set:
  393. if arg 1 is a integer:
  394. send "&cYou have been muted for ☒ %arg-1% minutes ☒" to arg-player
  395. send "&cThis timer will ONLY go down if you are online." to arg-player
  396. set {muted.%arg-player%} to true
  397. set {mutetimer.%arg-player%} to arg-1
  398. if arg 1 is "forever":
  399. send "&cYou have been muted for %arg-1%" to arg-player
  400. set {muted.%arg-player%} to true
  401. if arg 1 is "off":
  402. send "&cYour mute has been lifted!" to arg-player
  403. set {muted.%arg-player%} to false
  404. if {mutetimer.%arg-player%} is less than 1:
  405. set {mutetimer.%arg-player%} to 0
  406.  
  407. every minute:
  408. loop all players:
  409. if {muted.%loop-player%} is true:
  410. if {mutetimer.%loop-player%} is greater than 0:
  411. subtract 1 from {mutetimer.%loop-player%}
  412.  
  413. variables:
  414. {muted.%player%} = false
  415. {mutetimer.%player%} = 0
  416.  
  417. #========================[ Party's ]=========================#
  418.  
  419. command /partycreate:
  420. trigger:
  421. if {party.%player%} is not set:
  422. set {party.%player%} to player's display name
  423. set {partyboard.%player%} to 1
  424. set {partyleader.%{party.%player%}%} to player's display name
  425. add player's display name to {partymem.%{party.%player%}%::*}
  426. send "&dYou have created a party." to player
  427. stop
  428. send "&cYou are already in a party!" to player
  429. stop
  430.  
  431. command /partyinvite <player>:
  432. permission: command.use
  433. trigger:
  434. if {party.%player%} is set:
  435. if arg-player is a player:
  436. send "&dYou have gotten a party invite from %player%!%nl%&dUse /paccept to join the player's party!" to arg-player
  437. send "&dParty invite successfully sent." to player
  438. set {hasinvite.%arg-player%} to true
  439. set {invited.%arg-player%} to {party.%player%}
  440. set {invitetimeout.%arg-player%} to 30
  441. stop
  442. send "&c%arg-player% is offline." to player
  443. stop
  444. send "&cYou are not in a party!" to player
  445. stop
  446.  
  447. command /partyaccept:
  448. permission: command.use
  449. trigger:
  450. if {party.%player%} is not set:
  451. if {hasinvite.%player%} is true:
  452. set {partyboard.%player%} to 1
  453. set {party.%player%} to {invited.%player%}
  454. add player to {partymem.%{party.%{invited.%player%}%}%::*}
  455. send "&dYou have joined %{invited.%player%}%'s party." to player
  456. send "&d%player% has joined the party." to {invited.%player%}
  457. clear {hasinvite.%player%}
  458. clear {invited.%player%}
  459. clear {invitetimeout.%player%}
  460. stop
  461. send "&cYou have not been invited to any parties."
  462. stop
  463. send "&cYou are already in a party!" to player
  464. stop
  465.  
  466. command /partyquit:
  467. trigger:
  468. if {party.%player%} is set:
  469. send "&dYou have left the party."
  470. clear {invited.%player%}
  471. clear {hasinvite.%player%}
  472. clear {invitetimeout.%player%}
  473. clear {party.%player%}
  474. set {partyboard.%player%} to 2
  475. if {partyleader.%{party.%player%}%} is player's display name:
  476. clear {partyleader.%{party.%player%}%}
  477. clear {partymem.%{party.%player%}%::*}
  478.  
  479. every second:
  480. loop all players:
  481. if {invitetimeout.%loop-player%} is set:
  482. subtract 1 from {invitetimeout.%loop-player%}
  483. if {invitetimeout.%loop-player%} is less than 1:
  484. send "&dInvite to %{invited.%loop-player%}%'s Party has timed out." to loop-player
  485. send "&d%loop-player% has timed out from your party request. Resend it if you wish." to {invited.%loop-player%}
  486. clear {invited.%loop-player%}
  487. clear {hasinvite.%loop-player%}
  488. clear {invitetimeout.%loop-player%}
  489.  
  490. on disconnect:
  491. if {invited.%player%} is set:
  492. send "&dInvite to %{invited.%player%}%'s Party has timed out." to player
  493. send "&d%player% has timed out from your party request. Resend it if you wish." to {invited.%player%}
  494. clear {invited.%player%}
  495. clear {hasinvite.%player%}
  496. clear {invitetimeout.%player%}
  497. if {party.%player%} is set:
  498. clear {invited.%player%}
  499. clear {hasinvite.%player%}
  500. clear {invitetimeout.%player%}
  501. clear {party.%player%}
  502. set {partyboard.%player%} to 2
  503. if {partyleader.%{party.%player%}%} is player's display name:
  504. clear {partyleader.%{party.%player%}%}
  505. loop 8 times:
  506. send "&dThe party has been disbanded." to {partymem.%{party.%player%}%::%loop-number%}
  507. clear {partymem.%{party.%player%}%::*}
  508.  
  509.  
  510. command /partydebug <text>:
  511. permission: party.debug
  512. trigger:
  513. if arg-1 is "Member's":
  514. loop 8 times:
  515. send "%{partymem.%{party.%player%}%::%loop-number%}%" to player
  516. if arg-1 is "clearmem":
  517. clear {partymem.%{party.%player%}%::*}
  518. if arg-1 is "add":
  519. add player's display name to {partymem.%{party.%player%}%::*}
  520.  
  521. every tick:
  522. loop all players:
  523. if {partyboard.%loop-player%} is 1:
  524. display board named " &c&lParty" to loop-player
  525. move display of loop-player to sidebar
  526. set {partyboard.%loop-player%} to 0
  527. make score "&f%loop-player%" in scoreboard of loop-player to {hp.%loop-player%}
  528.  
  529. #========================[ Point Pvp]=========================#
  530.  
  531. options:
  532. prefix: &8[&3PvPPoint&8]
  533. defaultpoints: 100 #Amount of points when they first join the server
  534. tabpoints: true #Change it to 'false' if you don't want the points shown on tab
  535. givepoints: true #Change it to 'false' if you don't want to give points every 30 minutes
  536. time: 30 minutes #If you have 'givepoints' true, set time for giving points
  537. amountofpoints: 50 #Amount of points to give every 30 minutes
  538.  
  539.  
  540. on first join:
  541. add {@defaultpoints} to {point::%player%}
  542. stop
  543.  
  544. on join:
  545. if {point::%player%} is not set:
  546. add {@defaultpoints} to {point::%player%}
  547.  
  548.  
  549. on death:
  550. if attacker is a player:
  551. if victim is a player:
  552. set {p1} to rounded {point::%victim%}/15
  553. add {p1} to {point::%attacker%}
  554. message "{@prefix} &fYou've earned &l%{p1}% &fpoints for killing &9%victim%&f!" to attacker
  555. remove {p1} from {point::%victim%}
  556. message "{@prefix} &fYou've lost &l%{p1}% &fpoints for dying!" to victim
  557.  
  558. every 200 ticks:
  559. if {tabpoints} is {@tabpoints}:
  560. loop all players:
  561. set tab score of loop-player to {point::%loop-player%} for loop-player
  562.  
  563.  
  564. on death of player:
  565. if {point::%victim%} is less than 0:
  566. set {point::%victim%} to 0
  567.  
  568.  
  569. every {@time}:
  570. if {givepoints} is {@givepoints}:
  571. loop all players:
  572. message "{@prefix} &fYou have received {@amountofpoints} &fpoints for remaining on the server for another {@time}&f." to loop-player
  573. add {@amountofpoints} to {point::%loop-player%}
  574.  
  575.  
  576. #==============================Mobs==========================#
  577.  
  578. #-- If you need help pm me on Spigot ill reply with-in a day#
  579.  
  580.  
  581. command /giveegg1:
  582. trigger:
  583. execute console command "/give %player% pumpkin 1 name:&bMob1"
  584.  
  585. on right click holding a pumpkin:
  586. name of player's tool is "&bMob1":
  587. cancel event
  588. if block above event-block is air:
  589. set {_block.check} to location of block above event-block
  590. if block above {_block.check} is air:
  591. spawn a wither skeleton above event-block
  592. set the max health of spawned entity to a random integer between 100 and 450
  593.  
  594. equip spawned entity with a leather helmet
  595. equip spawned entity with a leather leggings
  596. equip spawned entity with a leather chestplate
  597. equip spawned entity with a leather boots
  598.  
  599. dye spawned entity's helmet purple
  600. dye spawned entity's chestplate purple
  601. dye spawned entity's leggings purple
  602. dye spawned entity's boots purple
  603.  
  604. set the spawned entity's held item to a iron sword
  605. heal the spawned entity
  606. set the display name of spawned entity to "&d&lMob1 &a[&c%rounded health of spawned entity * 2% &a&l/&r&c %max health of spawned entity * 2%&a]"
  607. remove 1 of player's tool from player's inventory
  608.  
  609. on death:
  610. name of victim contains "Mob1":
  611. strike lightning effect at the victim
  612. attacker is a player:
  613. broadcast "&b&l%name of attacker% killed Mob1"
  614. clear drops
  615. wait 1 tick
  616. if {bossbuff} is true:
  617. chance of 13%:
  618. drop leather helmet named "bossdrop" at victim's location
  619. chance of 13%:
  620. drop leather leggings named "bossdrop" at victim's location
  621. chance of 13%:
  622. drop leather chestplate named "bossdrop" at victim's location
  623. chance of 13%:
  624. drop leather boots named "bossdrop" at victim's location
  625. else:
  626. chance of 55%:
  627. drop a iron helmet of protection 4 and unbreaking 3 named "&cBoss Gear" at victim
  628. chance of 30%:
  629. drop a iron leggings of protection 4 and unbreaking 3 named "&cBoss Gear" at victim
  630. chance of 30%:
  631. drop a iron chestplate of protection 4 and unbreaking 3 named "&cBoss Gear" at victim
  632. chance of 55%:
  633. drop a iron boots of protection 4 and unbreaking 3 named "&cBoss Gear" at victim
  634. chance of 30%:
  635. drop a iron sword of sharpness 4 and unbreaking 3 named "&cBoss Gear" at victim
  636.  
  637. #--------------Do Not Edit This Command-------------------- $
  638.  
  639. command /JKitinfo:
  640. trigger:
  641. message "&b&l&m-------------------------------------------"
  642. message "&c&lJuppi KitPvp"
  643. message ""
  644. message "&b&lMade By Juppi"
  645. message ""
  646. message "&cVersion: 2"
  647. message "&b&l&m-------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment