Tempad

Tempad

1M Downloads

[Feature Request]: /temportal command to summon a tempad portal with commands

TheDeviantCrafter opened this issue ยท 0 comments

commented

Is your feature request related to a problem?

Tempad portals must be initiated by a player. It would be nice to allow pack devs and map makers to spawn a tempad portal with commands.

Solution(s)

Add a /temportal command which spawns a portal. This would be structured similar to the vanilla /tp command:

/temportal [target 1] [target 2] [time] [color] creates a portal linking from target 1 to target 2.

Time denotes the time in ticks before it despawns. Color denotes the color if the door. If not specified it will use the defaults in the config.

Each of the target parameters can be replaced with:

  • Coordinates - This will spawn a portal at the specified location in world. This requires X, Y, Z coordinates and an optional dimension ID.
  • An entity name, supplied as a player name, UUID, or a wildcard such as @e or @p. This will spawn a portal next to the specified entity.

Example commands:

  • /temportal 0 0 0 minecraft:overworld 0 0 0 minecraft:nether will open a portal from the overworld to the nether
  • /temportal @p 0 0 0 minecraft:end 1000 800080` will open a portal next to the nearest player that takes you to the end. It lasts 1000 ticks and is purple.

Possible issues:

  • I have no idea how well Minecraft handles a command where an entity parameter can be replaced with 4 position parameters. The command might need to be redesigned.
  • The @e selector can target many entities. If that happens, I would pick one at random. Let the pack dev be more specific.

Describe alternatives you've considered

Wait for the KubeJS support that has been hinted at. Since KubeJS objects can run commands this approach might be simpler.

Mod Version

2.3.3

Mod Loader Version

1.20.1 - 47.2.19

Mod Loader

No response

Additional context

No response