Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &7[&cServer&7]
- on respawn:
- if player's world is "world":
- randomKit(player)
- on spawn:
- if player's world is "world":
- randomKit(player)
- function randomKit(p: player):
- set {_random} to a random integer between 1 and 10
- if {_random} = 1:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 netherite chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 diamond boots of protection 1
- give {_p} 1 iron sword of sharpness 1
- give {_p} 16 bread
- give {_p} 1 shield
- give {_p} 1 iron pickaxe of efficiency 1
- give {_p} 1 bow of power 2
- give {_p} 16 arrow
- give {_p} 1 water bucket
- give {_p} 32 oak planks
- give {_p} 1 lava bucket
- if {_random} = 2:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 iron chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 netherite boots of protection 1
- give {_p} 1 diamond sword of sharpness 1
- give {_p} 16 golden carrots
- give {_p} 1 totem of undying
- give {_p} 1 water bucket
- give {_p} 32 oak planks
- give {_p} 1 lava bucket
- if {_random} = 3:
- give {_p} 1 iron helmet of protection 1
- give {_p} 1 diamond chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 iron boots of protection 1
- give {_p} 16 bread
- give {_p} 1 netherite sword of sharpness 1
- give {_p} 1 shield
- give {_p} 1 bow of power 1
- give {_p} 1 fire charge named "&cFireball &7&o(Right-Click)"
- give {_p} 16 arrow
- give {_p} 32 oak planks
- give {_p} 1 lava bucket
- if {_random} = 4:
- give {_p} 1 iron helmet of protection 1
- give {_p} 1 iron chestplate of protection 1
- give {_p} 1 diamond leggings of protection 1
- give {_p} 1 diamond boots of protection 1
- give {_p} 1 shield
- give {_p} 1 iron sword of sharpness 2
- give {_p} 16 bread
- give {_p} iron pickaxe of efficiency 2
- give {_p} 1 water bucket
- give {_p} 32 cobblestone
- give {_p} 1 lava bucket
- if {_random} = 5:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 diamond chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 diamond boots of protection 1
- give {_p} 16 bread
- give {_p} 1 shield
- give {_p} 1 diamond sword of sharpness 1
- give {_p} bow of power 2
- give {_p} 16 arrow
- give {_p} 32 oak planks
- if {_random} = 6:
- give {_p} 1 iron helmet of protection 1
- give {_p} 1 diamond chestplate of protection 2
- give {_p} 1 netherite leggings of protection 1
- give {_p} 1 iron boots of protection 2
- give {_p} 1 netherite sword of sharpness 1
- give {_p} 1 crossbow of quick charge 2
- give {_p} 16 arrows
- give {_p} 16 golden carrots
- give {_p} 1 totem of undying
- give {_p} 1 water bucket
- give {_p} 32 oak planks
- if {_random} = 7:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 netherite chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 iron boots of protection 2
- give {_p} 1 iron sword of sharpness 2
- give {_p} 16 bread
- give {_p} 1 shield
- give {_p} 32 oak planks
- give {_p} 1 lava bucket
- if {_random} = 8:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 netherite chestplate of protection 1
- give {_p} 1 iron leggings of protection 1
- give {_p} 1 diamond boots of protection 1
- give {_p} 1 netherite pickaxe of sharpness 2
- give {_p} 16 bread
- give {_p} 1 water bucket
- give {_p} 32 cobblestone
- give {_p} 1 lava bucket
- if {_random} = 9:
- give {_p} 1 diamond helmet of protection 1
- give {_p} 1 iron chestplate of protection 2
- give {_p} 1 netherite leggings of protection 1
- give {_p} 1 diamond boots of protection 1
- give {_p} 16 bread
- give {_p} 1 netherite axe of sharpness 1
- give {_p} 1 bow of power 2
- give {_p} 16 arrows
- give {_p} 1 water bucket
- give {_p} 32 oak planks
- if {_random} = 10:
- give {_p} 1 netherite helmet of protection 1
- give {_p} 1 netherite chestplate of protection 1
- give {_p} 1 diamond leggings of protection 1
- give {_p} 1 iron boots of protection 1
- give {_p} 1 diamond sword of sharpness 1
- give {_p} 1 diamond pickaxe of efficiency 2
- give {_p} 16 bread
- give {_p} 32 cobblestone
- give {_p} 1 lava bucket
- on first join:
- if player's world is "world":
- randomKit(player)
- command /randomkit [<player>]:
- cooldown: 3 minutes
- cooldown message: {@prefix} &fThe cooldown for this command is &c3 &fminutes!
- trigger:
- if arg is not set:
- send "{@prefix} &fRecieved your kit!"
- randomKit(player)
- else:
- if player does not have permission "kit.others":
- send "{@prefix} &fYou are lackng the permission &eKit.others&f!"
- else:
- randomKit(arg-1)
- send "{@prefix} &fGave %arg-1% a random kit!"
- send "{@prefix} &f%player% gave you a kit!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment