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

Add the spawn command #147

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Add the spawn command #147

merged 1 commit into from
Dec 9, 2023

Conversation

haykam821
Copy link
Contributor

@haykam821 haykam821 commented Sep 3, 2023

This pull request adds a command for teleporting players to the lobby spawn, replacing the previous manually-configured aliases:

{
	"aliases": {
		"spawn": {
			"execute": [
				"execute in minecraft:overworld run tp @s 0 66 0 0 0",
				"gamemode adventure"
			],
			"feedback": false
		},
		"hub": "spawn",
		"lobby": "spawn"
	}
}

The equivalent configuration would be:

{
	"lobby_spawn": {
		"pos": [
			0,
			66,
			0
		],
		"game_mode": "adventure"
	}
}

In addition, this command gives players lobby items (the navigator and tater box) so that players do not need to relog if they lost those items.

@Gegy Gegy changed the base branch from 1.20 to 1.20.2 December 9, 2023 16:15
@Gegy Gegy merged commit 56764f5 into NucleoidMC:1.20.2 Dec 9, 2023
1 check passed
@haykam821 haykam821 deleted the spawn-command branch December 9, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants