Ender portal tp

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

Jun 19, 2021
2
0
1
16
Category: I don’t know what to put here lol

Suggested name: Ender Portal Tp Skeipt

Spigot/Skript Version: latest

What I want:
Looking for a skript to tp a user when they enter a certain ender portal.

When I'd like it by: A reasonable time

Example:
Code:
On portal entry:
   If portal is xyz portal:
      Teleport user to location




Thanks,
Nobody
 
I'm not sure if this event can be canceled or if the code works in general, set the position so that every portal block is covered

Code:
command /epos <integer>:
  permission: op
  trigger:
    if arg-1 is 1 or 2:
      set {endportalpos::%arg-1%} to player's location

on player portal:
  if event-block is within {endportalpos::1} or {endportalpos::2}:
    send "%event-player%"
    cancel event