command /kit [<text>]:
trigger:
arg 1 is not set:
open chest with 6 rows named "&2&lClases" to player
set {_c} to "&eClickea aquí para tomar este kit!"
wait a tick
set slot 10 of player's current inventory to coal block named "&fKit &8[USER]"
set slot 19 of player's current inventory to gray stained glass pane named "%{_c}%"
set slot 11 of player's current inventory to lapis block named "&fKit &7[Nov&8ato]"
set slot 20 of player's current inventory to blue stained glass pane named "%{_c}%"
set slot 12 of player's current inventory to redstone block named "&fKit &8[Profe&3sional]"
set slot 21 of player's current inventory to red stained glass pane named "%{_c}%"
set slot 13 of player's current inventory to iron block named "&fKit &6[Experto]"
set slot 22 of player's current inventory to white stained glass pane named "%{_c}%"
set slot 14 of player's current inventory to gold block named "&fKit &9[Ci&fvil]"
set slot 23 of player's current inventory to yellow stained glass pane named "%{_c}%"
arg 1 is "user":
if {kitcd.user.%player%} is true:
wait 3 ticks
add 1 leather helmet of protection 1 named "&8[USER]" to player
wait 3 ticks
add 1 leather chestplate of protection 1 named "&8[USER]" to player
wait 3 ticks
add 1 leather leggings of protection 1 named "&8[USER]" to player
wait 3 ticks
add 1 leather boots of protection 1 named "&8[USER]" to player
wait 3 ticks
add 1 wooden sword named "&8[USER]" to player
wait 3 ticks
add 1 stone pickaxe of efficiency 5, unbreaking 3 named "&8[USER]" to player
wait 3 ticks
add 1 stone axe of efficiency 5 named "&8[USER]" to player
wait 3 ticks
add 1 stone shovel of efficiency 5 named "&8[USER]" to player
wait 3 ticks
add 30 cooked porkchop named "&8[USER]" to player
wait 3 ticks
add 8 oak wood named "&8[USER]" to player
wait 3 ticks
send "&2&lWorldCraft &7Recibiste el kit &8[USER]"
set {kitcd.user.%player%} to false
wait 5 minutes
set {kitcd.user.%player%} to true
send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &8[USER]"
stop
else if {kitcd.user.%player%} is false:
send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 5 minutos desde su recogida."
stop
arg 1 is "novato":
if player has permission "world.kit.novato":
if {kitcd.novato.%player%} is true:
wait 3 ticks
add 1 leather helmet of protection 2 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 chain chestplate of protection 1 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 leather leggings of protection 2 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 chain boots of protection 1 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 stone sword of sharpness 1 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 iron pickaxe of efficiency 3, fortune 3, unbreaking 10 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 iron axe of efficiency 3 named "&7[Nov&8ato]" to player
wait 3 ticks
add 1 iron shovel of efficiency 3, unbreaking 3 named "&7[Nov&8ato]" to player
wait 3 ticks
add 30 cooked porkchop named "&7[Nov&8ato]" to player
wait 3 ticks
add 8 oak wood named "&7[Nov&8ato]" to player
wait 3 ticks
add 8 spruce wood named "&7[Nov&8ato]" to player
wait 3 ticks
send "&2&lWorldCraft&7 Recibiste el kit &7[Nov&8ato]"
set {kitcd.novato.%player%} to false
wait 10 minutes
set {kitcd.novato.%player%} to true
send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit &7[Nov&8ato]"
stop
else if {kitcd.novato.%player%} is false:
send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 10 minutos desde su recogida."
stop
else:
send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &7[Nov&8ato]"
stop
arg 1 is "profesional":
if player has permission "world.kit.profesional":
if {kitcd.profesional.%player%} is true:
set {_profesional} to "&8[Profe&3sional]"
wait 3 ticks
add 1 iron helmet of protection 1, unbreaking 1 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron chestplate of protection 1, unbreaking 1 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron leggings of protection 1, unbreaking 1 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron boots of protection 1, unbreaking 1 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron sword of sharpness 1, unbreaking 1, looting 2 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron pickaxe of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron axe of efficiency 5, unbreaking 10 named "%{_profesional}%" to player
wait 3 ticks
add 1 iron shovel of efficiency 5, unbreaking 10, fortune 5 named "%{_profesional}%" to player
wait 3 ticks
add 36 cooked porkchop named "%{_profesional}%" to player
wait 3 ticks
add 16 oak wood named "%{_profesional}%" to player
wait 3 ticks
add 64 cobblestone named "%{_profesional}%" to player
wait 3 ticks
send "&2&lWorldCraft &7Recibiste el kit %{_profesional}%"
set {kitcd.profesional.%player%} to false
wait 20 minutes
set {kitcd.profesional.%player%} to true
send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_profesional}%"
stop
else if {kitcd.profesional.%player%} is false:
send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 20 minutos desde su recogida."
stop
else:
send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &8[Profe&3sional]"
stop
arg 1 is "experto":
if player has permission "world.kit.experto":
if {kitcd.experto.%player%} is true:
set {_experto} to "&6[Experto]"
wait 3 ticks
add 1 diamond helmet of unbreaking 1 named "%{_experto}%" to player
wait 3 ticks
add 1 iron chestplate of protection 1, unbreaking 3 named "%{_experto}%" to player
wait 3 ticks
add 1 diamond leggings of unbreaking 1 named "%{_experto}%" to player
wait 3 ticks
add 1 iron boots of protection 1, unbreaking 3 named "%{_experto}%" to player
wait 3 ticks
add 1 iron sword of sharpness 3, unbreaking 3, fire aspect 1, looting 3 named "%{_experto}%" to player
wait 3 ticks
add 1 diamond pickaxe of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
wait 3 ticks
add 1 diamond axe of efficiency 5, unbreaking 10 named "%{_experto}%" to player
wait 3 ticks
add 1 diamond shovel of efficiency 5, unbreaking 10, fortune 10 named "%{_experto}%" to player
wait 3 ticks
add 64 cooked porkchop named "%{_experto}%" to player
wait 3 ticks
add 32 oak wood named "%{_experto}%" to player
wait 3 ticks
add 16 spruce wood named "%{_experto}%" to player
wait 3 ticks
send "&2&lWorldCraft &7Recibiste el kit %{_experto}%"
set {kitcd.experto.%player%} to false
wait 30 minutes
set {kitcd.experto.%player%} to true
send "&2&lWorldCraft &7Ahora puedes volver a elegir el kit %{_experto}%"
stop
else if {kitcd.experto.%player%} is false:
send "&2&lWorldCraft &7Para tomar de nuevo este kit, debes esperar por lo menos 30 minutos desde su recogida."
stop
else:
send "&2&lWorldCraft &7Para tomar este kit tienes que tener rango &6[Experto]"
stop
arg 1 is "civil":
if player has permission "world.kit.civil":
if {kitcd.civil.%player%} is true:
set {_civil} to "&9[Ci&fvil]"
wait 3 ticks
add 1 iron helmet of protection 3, unbreaking 10 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond chestplate of protection 3, unbreaking 5 named "%{_civil}%" to player
wait 3 ticks
add 1 chain leggings of protection 5, unbreaking 20 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond boots of protection 3, feather falling 3, unbreaking 10 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond sword of sharpness 3, unbreaking 5, fire aspect 1 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond pickaxe of efficiency 7, unbreaking 7, fortune 7 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond axe of efficiency 7, unbreaking 7 named "%{_civil}%" to player
wait 3 ticks
add 1 diamond shovel of efficiency 7, unbreaking 7 named "%{_civil}%" to player
wait 3 ticks
add 1 stick of knockback 5 named "%{_civil}%" to player
wait 3 ticks
add 64 cooked porkchop named "%{_civil}%" to player
set {kitcd.civil.%player%} to false
send "&2&lWorldCraft&7 Recibiste el kit %{_civil}%"
wait 30 minutes
set {kitcd.civil.%player%} to true
send "&2&lWorldCraft &7Ahora puedes volver a tomar el kit %{_civil}%"
stop
else if {kitcd.civil.%player%} is false:
send "&2&lWorldCraft &7Debes esperar 30 minutos desde la recogida del kit para volverlo a tomar."
stop
else:
send "&2&lWorldCraft &7Para tomar este kit tienes que ser rango &9[Ci&fvil]"
stop
arg 1 is "vip":
if player has permission "world.kit.vip":
if {kitcd.vip.%player%} is true:
set {_vip} to "&a[VIP]"
wait 3 ticks
add 1 diamond helmet of protection 471, unbreaking 817 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond chestplate of protection 391, unbreaking 728, thorns 5 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond leggings of protection 391, unbreaking 801, thorns 5 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond boots of protection 500, unbreaking 900 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond sword of sharpness 41, unbreaking 312, fire aspect 5 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond pickaxe of efficiency 1122, unbreaking 213, fortune 100 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond axe of efficiency 1122, unbreaking 213, fortune 50 named "%{_vip}%" to player
wait 3 ticks
add 1 diamond shovel of efficiency 1122, unbreaking 300, fortune 100 named "%{_vip}%" to player
wait 3 ticks
add 16 golden apple:1 to player
wait 3 ticks
add 64 quartz block to player
on inventory click:
clicked inventory isn't player's inventory
if inventory name of player's current inventory is "&2&lClases":
event-slot = air:
close inventory of player
wait 3 ticks
execute player command "kit"
#kit user#
if clicked slot is 10:
close inventory of player
stop
if clicked slot is 19:
close inventory of player
execute player command "kit user"
stop
#kit novato#
if clicked slot is 11:
close inventory of player
stop
if clicked slot is 20:
close inventory of player
execute player command "kit novato"
stop
#kit profesional#
if clicked slot is 12:
close inventory of player
stop
if clicked slot is 21:
close inventory of player
execute player command "kit profesional"
stop
#kit experto#
if clicked slot is 13:
close inventory of player
stop
if clicked slot is 22:
close inventory of player
execute player command "kit experto"
stop
#kit civil#
if clicked slot is 14:
close inventory of player
stop
if clicked slot is 23:
close inventory of player
execute player command "kit civil"
stop