#portals

1 messages · Page 1 of 1 (latest)

unkempt hazel
#

on step:

#

then tp

#

uhuh

#

then check the location of the block

#

if you cant do a single condition you should look at some tutorials

#

why are you executing console commands?

#

just tp with skript

unkempt hazel
#

location of (event-block | player) = ....

#

these go over the basics

serene nova
#

A) use skript tp effect
B) Debug
C) skript block locations have an extra 0.5 blocks

#

skript has a effect for teleporting (docs)
debug means ruling out possible issues
send something between each line of code to see if the event is even firing
send the location of event block, send the block

unkempt hazel
#

yes

serene nova
#

yes

unkempt hazel
#

also

#

i normally use the location function

#

location(x, y, z, world, yaw, pitch)

#

I just find it a little cleaner

hidden mesa
#

up/down and left/right

untold rapids
#

Debug and you will see that location of block has a .5 on the axis

#

You can check if event-block is block at location...

#

Just broadcast all the values in chat so you can see them

#

And decide of it works as intended

#

Not rocket science

#

Have you tried to research how?

#

Have you tried to search in the docs or just try thr first thing that comes to mind?

#

And?

#

Where and what did you search

#

I am taking about broadcasting

#

You said you didnt know how to do that

#

Look for broadcasting in the docs

#

It doesnt become more basic than that. Im sure you can figure it out

unkempt hazel
#

you're still using console commands?

#

look for skript teleport effect

gaunt sleet
#
on step on end portal frame:
    loop blocks between location(100, 60, 100) and location(150, 60, 100):
        location of event-block is location of loop-block
        teleport player to location(200, 60, 200)
        send "&aTeleported"```
This should work
#

in the loop give 2 coordinates between which you will set the end portal frame after which you will be teleported

sour marlin
#

i have a suggestion abt the scoreboard. If someone wanted to know their location, they'd type f3. if someone wanted to know their health, they'd look at their hotbar

gray wolf
#

bounds

unkempt hazel
#

what happens when you have multiple portals in a region?

unkempt hazel
#
  • set a region
  • check for the region
    or
  • check for the block
#

two steps vs one

sour marlin
#

id say checking the locations in between is much more complicated then left right clicking and typing a command

#

locations are much more complicated to type in than region names

unkempt hazel
#

but youd have to create a region

unkempt hazel
#

but if its only 1 block

#

checking the loc of the block is easier

unkempt hazel
#

and what is your point?

heady ginkgo
#

nah but 1.12 doesn't have regions or wg support