Skip to content

Conversation

@jblemee
Copy link

@jblemee jblemee commented May 9, 2025

With these changes, we can write this kind of code in custom mods:

 ResourceLocation resourceLocation = ResourceLocation.read("my:world").getOrThrow();
 ResourceKey<Level> resourceKey = ResourceKey.create(Registries.DIMENSION, resourceLocation);
 RTPDCommand.runCommand(player, server.getLevel(resourceKey));

Which allow modders to forbid the use of rtp commands directly by the player but enable it through custom mod conditions

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.

1 participant