Posted June 20, 20232 yr I have a simple code that should write "Yes" if the structure exists: ServerLevel level = Minecraft.getInstance().getSingleplayerServer().getLevel(Level.OVERWORLD); StructureTemplateManager templateManager = level.getStructureManager(); Optional<StructureTemplate> optional = templateManager.get(new ResourceLocation(TestMod.MOD_ID, "structures/shop1.nbt")); if(optional.isPresent()){ System.out.println("Yes"); } But nothing happens... What am I missing?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.