On Place - Help needed please

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

Status
Not open for further replies.

xXTim00xx

Member
Nov 15, 2021
3
0
1
24
Hello, can anyone help me please, my code doesnt work like i want.

Code:
on place:
    if event-block is cactus:
        if name of event-block is "&2&lKaki Höhenupgrade":
            if location of event-block is {kaki.location::%player%}:
                set {kaki.location::%player%} to location at X-location of event-block -0.5, Y-location of event-block +1.5, Z-location of event-block -0.5
            else:
                cancel event
 
Hello, can anyone help me please, my code doesnt work like i want.

Code:
on place:
    if event-block is cactus:
        if name of event-block is "&2&lKaki Höhenupgrade":
            if location of event-block is {kaki.location::%player%}:
                set {kaki.location::%player%} to location at X-location of event-block -0.5, Y-location of event-block +1.5, Z-location of event-block -0.5
            else:
                cancel event
An event-block doesn't have a name. And use list variables, currently you're just using a mixture out of both.
 
Status
Not open for further replies.