#Making a teleport head

1 messages · Page 1 of 1 (latest)

worthy locust
#

So I'm making a skript where when you right click a head it will teleport you to a spot and not sure how to make it so that they can teleport there.

radiant lark
#

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

worthy locust
#

Theres a teleport effect?

#

and how would you check for the name

radiant lark
worthy locust
#

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

zealous inlet
worthy locust
#

?

#

wdym?

zealous inlet
#

location(x,y,z, world "world")

worthy locust
#

So like this?

#

teleport player to location (x,y,z)?

#

@zealous inlet

zealous inlet
zealous inlet
worthy locust
#

i dont

#

as im 'Very smart'

zealous inlet
#

now what are the 3 coordinates in minecraft

worthy locust
#

x,y,z

zealous inlet
#

now which world are you trying to teleport in

worthy locust
#

teleport player to location (1,2,3 world earth) so like that?

zealous inlet
#

yes

#

but make sure the ( is close to the location

#

location(bla bla bla bla bla)

worthy locust
#

ah

zealous inlet
#

because that is a function

worthy locust
#

teleport player to location(1,2,3 world "earth")

#

like that?

#

but there is a error

zealous inlet
#

yes

zealous inlet
worthy locust
#

no

#

true true

#

so that would work?

zealous inlet
#

yes

worthy locust
#

alr tysm

zealous inlet
#

oh wait

worthy locust
#

I learned today Yipppeee

zealous inlet
#

i think i see the problem

worthy locust
#

What is it?

zealous inlet
#

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

worthy locust
#

I have no clue

zealous inlet
#

read the whole thing

#

this is important because you can use this in the future if you're gonna make more skripts

worthy locust
#

So uh im s p ed

zealous inlet
#

no everyone is smart, some are just lazy

worthy locust
#

OHHHHH

#

Why tho

#

why does it want that end comma

zealous inlet
#

bingo

worthy locust
#

Stupid mistake

zealous inlet
#

it's where most skripters do mistake

worthy locust
#

so could you make it so that if it is inside of like a 3x3 spot then it would activate?

zealous inlet
#

do you know how worldguard work

worthy locust
#

Yup

#

Sort of

#

I use world edit for it

zealous inlet
#

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

worthy locust
#

yup

#

and something like this?

#

if event-block is in region "cell":

zealous inlet
#

almost

#

check the example

#

use the 2nd example

#

named on <event>

#

its pretty similar on what you're doing

worthy locust
#

so like this ? if "%region at player%" is "cell":

#

also can I add you?

#

you help so much

zealous inlet
#

yeah

worthy locust
#

kk bet

zealous inlet
#

use contains

#

instead of is

worthy locust
#

wait why

zealous inlet
#

because if you send region at player its no tthe actual region name

#

but cell in world earth

worthy locust
#

wait

#

thats confusing

zealous inlet
#

send region at player = cell in world earth

#

so just use contains

#

so that its cleaner

worthy locust
#

ok so like this if "%region at player%" contains "cell":

zealous inlet
#

yeah

#

and its easy to change region locations

worthy locust
#

kk

#

tysm

#

ima set this to solved

zealous inlet