Please help me,
I need a rebirth system where if u do /rebirth it gives you haste 1 if you have an like minecraft enchant lvl of 50 if else just tp them to spawn when u rebirth a second time i want it to give u haste 2 ect and ill do what i have so far also when u rebirth i would love it if it takes away alll of your xp and all of your items in your inventory and e chest! I just need u to help me where it says to run: like after that i need it to do what i said please. Wi1dMiner.minehut.gg its a skymining server!
command /rebirth:
aliases: /prestige
permission: skript.rebirth
cooldown: 10 seconds
cooldown message: &4No way you can rebirth again already in 10 seconds. Right?
cooldown bypass: rebirth.cooldown.bypass
trigger:
open virtual chest inventory with size 4 named "&4&lRebirth" to player
format gui slot 13 of player with netherite pickaxe named "&3&lREBIRTH" with lore "&8Rebirthing:" and "&8>>&6 +Perm Haste" and "&8>> &4-All items in your inventory and enderchest" and "&8>> &4-All xp" and "&1Rebirthing costs 50 xp levels!" to run:
if player's experience level = 50:
teleport player to spawn
else if player's experience is not 50:
teleport player to spawn
format gui slot 31 of player with barrier named "&4&lCLOSE" to run:
close player's inventory
format gui slot 0 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 1 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 2 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 3 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 4 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 5 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 6 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 7 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 8 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 9 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 10 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 11 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 12 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 14 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 15 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 16 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 17 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 17 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 18 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 19 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 20 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 21 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 22 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 23 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 24 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 25 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 26 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 27 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 28 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 29 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 30 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 32 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 33 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 34 of player with light gray stained glass pane named "&4Empty Slot"
format gui slot 35 of player with light gray stained glass pane named "&4Empty Slot"