Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheDeviantCrafter opened this issue Jan 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TheDeviantCrafter
Copy link

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

@TheDeviantCrafter TheDeviantCrafter added the enhancement New feature or request label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant