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] Add /spawn Command #218

Open
1 task done
cecaelion opened this issue Nov 23, 2024 · 5 comments
Open
1 task done

[feature] Add /spawn Command #218

cecaelion opened this issue Nov 23, 2024 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cecaelion
Copy link

Is there an existing request for feature?

  • I have searched the existing issues

What feature would you like?

The /spawn command teleports the player who used it instantly to the world's spawnpoint.

Anything else?

It's frequently used on my server for players to reorient themselves, easily reach the spawn marketplace, and to meet up for trading!

@cecaelion cecaelion added the enhancement New feature or request label Nov 23, 2024
@sakurawald
Copy link
Owner

sakurawald commented Nov 23, 2024

The spawn function is not added in early-age, since it's not a simple function.
Actually, the spawn function decides the location of re-spawn for players.
This function should respect the spawn location of the world, spanw location set by the player, and anchor, bed location, first spawn location and some special rules if exists.
See more in: https://www.zrips.net/cmi/commands/spawn/

So i am considering add the spanw module if i have time.

If your use-case is simple, you can consider modify the spawn location of a world. Or the vanilla /spawnpoint command. Or use the warp module (which provides a gui for public warp points), Or works module (Also a gui).

@sakurawald sakurawald added the help wanted Extra attention is needed label Nov 23, 2024
@sakurawald
Copy link
Owner

By default, in vanilla minecraft, if a player died, he will re-spawn in the spawn location of minecraft:world, if he doesn't set any bed location.

@sternschnaube
Copy link

sternschnaube commented Jan 30, 2025

Hello @sakurawald, any update on this?
I remember this feature back in the day from servers/essentials plugin 😄
(I don't think it's such complicated, just get the information about the spawn coordinates and make a simple teleport 🤔)

@sakurawald
Copy link
Owner

Hello @sakurawald, any update on this? I remember this feature back in the day from servers/essentials plugin 😄 (I don't think it's such complicated, just get the information about the spawn coordinates and make a simple teleport 🤔)

See #236

I have another side-project to do until middle 2025, and I would like to make the spawn module a more general facility, to handle the respawn of players, instead of just a simple respawn location override. Yeah, at this case, I would like to respect the vanilla re-spawn mechanism, like the spawnpoint set by bed and respawn anchor.

There is a mod that provides similar functions, you can try this if you want this function right now: https://modrinth.com/mod/fabric-spawn

@sternschnaube
Copy link

Thanks for the filling informations.
Looking forward to the module 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants