Im trying to make a skript that when you right click with a certain item you teleport up 10 blocks, however my current code doesn't take into account your direction. Here is my current code:
I have also tried
but that tp's you to 10 blocks above consoles location, not players.
I want this to work without needing essentials.tp or minecraft.command.tp perms
edit: Doesn't save velocity either (I want it to work with elytra as a way to contiuosly fly close to the ground)
edit2: MC teleport DOES do these thing but I don't know how to make an item run a command as you without you having perms without using execute
Code:
rightclick with feather:
if name of tool of player is "Booster":
set {UniVari} to block 10 above player
teleport player to {UniVari}
Code:
make console execute "/execute as %player% run tp ~ ~10 ~"
I want this to work without needing essentials.tp or minecraft.command.tp perms
edit: Doesn't save velocity either (I want it to work with elytra as a way to contiuosly fly close to the ground)
edit2: MC teleport DOES do these thing but I don't know how to make an item run a command as you without you having perms without using execute
Last edited: