#Making a teleport head
1 messages · Page 1 of 1 (latest)
start with the on rightclick on any player head event, then check if the head has a custom name, specific nbt tag, or it's location (depending on how you want to detect things), then just use the teleport effect
Also Sorry for Very late resp
teleport player to 1 2 3
wait 60 seconds
teleport player to 1 2 3```
something like that?
@radiant lark
use location function
location(x,y,z, world "world")
use this example
i think you know already what to do with this with common sense
now what are the 3 coordinates in minecraft
x,y,z
now which world are you trying to teleport in
teleport player to location (1,2,3 world earth) so like that?
in this one you dont have the world
yes
but make sure the ( is close to the location
location(bla bla bla bla bla)
ah
because that is a function
world "earth"
teleport player to location(1,2,3 world "earth")
like that?
but there is a error
yes
did you even try it in game
yes
alr tysm
oh wait
I learned today Yipppeee
i think i see the problem
What is it?
compare your code and this example
Example:
location(x,y,z, world "world")
Yours:
teleport player to location(1,2,3 world "earth")
what do you think is missing
I have no clue
read the whole thing
this is important because you can use this in the future if you're gonna make more skripts
So uh im s p ed
no everyone is smart, some are just lazy
bingo
Stupid mistake
it's where most skripters do mistake
so could you make it so that if it is inside of like a 3x3 spot then it would activate?
do you know how worldguard work
then use regions
create a region in world guard that is 3x3 spot
pretty sure you already know how because worldguard and world edit is the most common plugin in the world
almost
check the example
use the 2nd example
named on <event>
its pretty similar on what you're doing
so like this ? if "%region at player%" is "cell":
also can I add you?
you help so much
yeah
kk bet
wait why
because if you send region at player its no tthe actual region name
but cell in world earth
send region at player = cell in world earth
so just use contains
so that its cleaner
ok so like this if "%region at player%" contains "cell":
teaching is the best way to learn