Please help me (on eat. how to get player's location?)

  • 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 comminuty!

    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!

AlliSighs

Member
Feb 12, 2024
41
0
6
14
Code:
on eat of enchanted golden apple:
    if name of event-item is "&bMega golden":
        set player's flight mode to true
        apply invisibility to player for 5 seconds
        create explosion at event-player's location
        send "&a+Fly!" to player
        wait 3 seconds
        set player's flight mode to false

[23:17:05 INFO]: [Skript] Reloading testfiziki.sk...
[23:17:05 INFO]: Line 48: (testfiziki.sk)
[23:17:05 INFO]: There's no location in an on consume event
[23:17:05 INFO]: Line: create explosion at player's location
[23:17:05 INFO]: [Skript] Encountered 1 error while reloading testfiziki.sk! (36ms)
 
YAML:
set {_loc} to location of player
create a fake explosion at {_loc} # Make this any type of explosion you want

This should work
 
Just try
create explosion of force <number> at {_loc}
You can also use safe explosion, but explosion effect and fake explosion don't have force