• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Bedstar

Member
May 23, 2025
4
0
1
ok so i made this code for aspect of the end from hypixel,
and somehow player's head always tilts to south.

it does teleport you but it tilts your head to south, whats the issue?

Code:
on right click:
    if player's held item is iron sword named "&9Aspect of the End":
        if {mana.player.%uuid of player%} >= 10:
            if block 5 in front of player is not air:
                cancel event
                send "&cThere is blocks in your way!" to player
            else:
                set {_block} to block 5 infront of player
                wait 1 tick
                teleport player to {_block}
                remove 10 from {mana.player.%uuid of player%}
                wait 1 tick
                send actionbar "&b%{mana.player.%uuid of player%}%&3/&b100 Mana &7(-10)" to player
        else:
            send "&cYou don't have enough mana!" to player

i accidentally sent 2 posts :skull:
 
Last edited:
Hey, you just need to use different syntax for this occasion.. (In your way you could also use pitch and yaw, but this is way easier)
Code:
on right click:
    if player's held item is iron sword named "&9Aspect of the End":
        if {mana.player.%uuid of player%} >= 10:
            if block 5 in front of player is not air:
                cancel event
                send "&cThere is blocks in your way!" to player
            else:
                teleport player 5 blocks infront of player
                remove 10 from {mana.player.%uuid of player%}
                send actionbar "&b%{mana.player.%uuid of player%}%&3/&b100 Mana &7(-10)" to player
        else:
            send "&cYou don't have enough mana!" to player
I also removed the waiting parts since i didnt really understand why you had them there, but you can add them again if you want.