Well, found a way:
String structureString = Objects.requireNonNull(RegistryAccess.registryAccess().getRegistry(RegistryKey.STRUCTURE).getKey(generatedStructure.getStructure())).asMinimalString();
Hey,
I'm currently making a plugin in where I need to check in which structure a player is in.. Currently I have smth like this:
for(final Player p : Bukkit.getOnlinePlayers()){
final ArrayList<String> foundStructures = new ArrayList<>()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.