#why dont it tp you

1 messages · Page 1 of 1 (latest)

mossy aspen
#
    if attacker's world is "pvp":
        if "%region at attacker%" contains "sword":
            add 1 to {swordkills::%attacker%}
            add 1 to {sworddeaths::%victim%}
            heal attacker```
#

d ow to fx

cedar roost
#

why would it teleport you

#

you never told it to

mossy aspen
cedar roost
#

the error should tell you why it doesn't work

mossy aspen
#

it just doesnt tp

cedar roost
#

it very much should have one

mossy aspen
#

well it doesnt

mossy aspen
cedar roost
#

hey look its an error

mossy aspen
#

what is wrong with that

cedar roost
#

with the error?

mossy aspen
#
    if attacker's world is "pvp":
        if "%region at attacker%" contains "sword":
            wait 1 tick
            teleport victim to location(-600.5, 73, -0.5, world "pvp", 90, 0)```
#

there

#

still dosent tork

cedar roost
#

then you should check where its failing

#

add a broadcast at each indentation level

#

on death, right after checking the attacker's world and checking the attacker's region

mossy aspen
#
    if "%region at attacker%" contains "sword":
       wait 1 tick
       teleport victim to location(-600.5, 73, -0.5, world "pvp", 90, 0)```
#

i dont need world

cedar roost
#

then add some broadcasts to that one

#

find out where its not going through

mossy aspen
#
    broadcast "death"
    if "%region at attacker%" contains "sword":
       broadcast "region"
       wait 1 tick
       broadcast "wait"
       teleport victim to location(-600.5, 73, -0.5, world "pvp", 90, 0)```
#

@cedar roost i did it

#

it all works

#

i see wait broardcast but still dont tp

cedar roost
#

should teleport them

mossy aspen
#

it doesnt

cedar roost
#

do they have an entity riding them or something

mossy aspen
cedar roost
#

that stops entities from being able to be teleported

#

this teleports me fine

#

adjusted some values so it worked without having to throw it into an event and having to make a new world

mossy aspen
#

are you on mcright now

cedar roost
#

yeah

#

works fine

mossy aspen
#

whats your ign

#

nvm

#

but it doesnt work

mossy aspen
cedar roost
mossy aspen
#

can you send me the entire code

cedar roost
#

teleport player to location(-600.5, 73, -0.5, world "avastarstota", 90, 0)