Guest User

the skript

a guest
Oct 16th, 2023
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. options:
  2. prefix: &7[&cServer&7]
  3.  
  4. on respawn:
  5. if player's world is "world":
  6. randomKit(player)
  7. on spawn:
  8. if player's world is "world":
  9. randomKit(player)
  10.  
  11. function randomKit(p: player):
  12. set {_random} to a random integer between 1 and 10
  13. if {_random} = 1:
  14. give {_p} 1 diamond helmet of protection 1
  15. give {_p} 1 netherite chestplate of protection 1
  16. give {_p} 1 iron leggings of protection 1
  17. give {_p} 1 diamond boots of protection 1
  18. give {_p} 1 iron sword of sharpness 1
  19. give {_p} 16 bread
  20. give {_p} 1 shield
  21. give {_p} 1 iron pickaxe of efficiency 1
  22. give {_p} 1 bow of power 2
  23. give {_p} 16 arrow
  24. give {_p} 1 water bucket
  25. give {_p} 32 oak planks
  26. give {_p} 1 lava bucket
  27. if {_random} = 2:
  28. give {_p} 1 diamond helmet of protection 1
  29. give {_p} 1 iron chestplate of protection 1
  30. give {_p} 1 iron leggings of protection 1
  31. give {_p} 1 netherite boots of protection 1
  32. give {_p} 1 diamond sword of sharpness 1
  33. give {_p} 16 golden carrots
  34. give {_p} 1 totem of undying
  35. give {_p} 1 water bucket
  36. give {_p} 32 oak planks
  37. give {_p} 1 lava bucket
  38. if {_random} = 3:
  39. give {_p} 1 iron helmet of protection 1
  40. give {_p} 1 diamond chestplate of protection 1
  41. give {_p} 1 iron leggings of protection 1
  42. give {_p} 1 iron boots of protection 1
  43. give {_p} 16 bread
  44. give {_p} 1 netherite sword of sharpness 1
  45. give {_p} 1 shield
  46. give {_p} 1 bow of power 1
  47. give {_p} 1 fire charge named "&cFireball &7&o(Right-Click)"
  48. give {_p} 16 arrow
  49. give {_p} 32 oak planks
  50. give {_p} 1 lava bucket
  51. if {_random} = 4:
  52. give {_p} 1 iron helmet of protection 1
  53. give {_p} 1 iron chestplate of protection 1
  54. give {_p} 1 diamond leggings of protection 1
  55. give {_p} 1 diamond boots of protection 1
  56. give {_p} 1 shield
  57. give {_p} 1 iron sword of sharpness 2
  58. give {_p} 16 bread
  59. give {_p} iron pickaxe of efficiency 2
  60. give {_p} 1 water bucket
  61. give {_p} 32 cobblestone
  62. give {_p} 1 lava bucket
  63. if {_random} = 5:
  64. give {_p} 1 diamond helmet of protection 1
  65. give {_p} 1 diamond chestplate of protection 1
  66. give {_p} 1 iron leggings of protection 1
  67. give {_p} 1 diamond boots of protection 1
  68. give {_p} 16 bread
  69. give {_p} 1 shield
  70. give {_p} 1 diamond sword of sharpness 1
  71. give {_p} bow of power 2
  72. give {_p} 16 arrow
  73. give {_p} 32 oak planks
  74. if {_random} = 6:
  75. give {_p} 1 iron helmet of protection 1
  76. give {_p} 1 diamond chestplate of protection 2
  77. give {_p} 1 netherite leggings of protection 1
  78. give {_p} 1 iron boots of protection 2
  79. give {_p} 1 netherite sword of sharpness 1
  80. give {_p} 1 crossbow of quick charge 2
  81. give {_p} 16 arrows
  82. give {_p} 16 golden carrots
  83. give {_p} 1 totem of undying
  84. give {_p} 1 water bucket
  85. give {_p} 32 oak planks
  86. if {_random} = 7:
  87. give {_p} 1 diamond helmet of protection 1
  88. give {_p} 1 netherite chestplate of protection 1
  89. give {_p} 1 iron leggings of protection 1
  90. give {_p} 1 iron boots of protection 2
  91. give {_p} 1 iron sword of sharpness 2
  92. give {_p} 16 bread
  93. give {_p} 1 shield
  94. give {_p} 32 oak planks
  95. give {_p} 1 lava bucket
  96. if {_random} = 8:
  97. give {_p} 1 diamond helmet of protection 1
  98. give {_p} 1 netherite chestplate of protection 1
  99. give {_p} 1 iron leggings of protection 1
  100. give {_p} 1 diamond boots of protection 1
  101. give {_p} 1 netherite pickaxe of sharpness 2
  102. give {_p} 16 bread
  103. give {_p} 1 water bucket
  104. give {_p} 32 cobblestone
  105. give {_p} 1 lava bucket
  106. if {_random} = 9:
  107. give {_p} 1 diamond helmet of protection 1
  108. give {_p} 1 iron chestplate of protection 2
  109. give {_p} 1 netherite leggings of protection 1
  110. give {_p} 1 diamond boots of protection 1
  111. give {_p} 16 bread
  112. give {_p} 1 netherite axe of sharpness 1
  113. give {_p} 1 bow of power 2
  114. give {_p} 16 arrows
  115. give {_p} 1 water bucket
  116. give {_p} 32 oak planks
  117. if {_random} = 10:
  118. give {_p} 1 netherite helmet of protection 1
  119. give {_p} 1 netherite chestplate of protection 1
  120. give {_p} 1 diamond leggings of protection 1
  121. give {_p} 1 iron boots of protection 1
  122. give {_p} 1 diamond sword of sharpness 1
  123. give {_p} 1 diamond pickaxe of efficiency 2
  124. give {_p} 16 bread
  125. give {_p} 32 cobblestone
  126. give {_p} 1 lava bucket
  127.  
  128. on first join:
  129. if player's world is "world":
  130. randomKit(player)
  131.  
  132. command /randomkit [<player>]:
  133. cooldown: 3 minutes
  134. cooldown message: {@prefix} &fThe cooldown for this command is &c3 &fminutes!
  135. trigger:
  136. if arg is not set:
  137. send "{@prefix} &fRecieved your kit!"
  138. randomKit(player)
  139. else:
  140. if player does not have permission "kit.others":
  141. send "{@prefix} &fYou are lackng the permission &eKit.others&f!"
  142. else:
  143. randomKit(arg-1)
  144. send "{@prefix} &fGave %arg-1% a random kit!"
  145. send "{@prefix} &f%player% gave you a kit!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment