Posted November 25, 20168 yr How do I generate a structure from a schematic? I tried to see how vanilla does it but I can't seem to figure it out.
November 25, 20168 yr Author I have figured it out. WorldServer worldServer = (WorldServer)world; MinecraftServer minecraftServer = world.getMinecraftServer(); TemplateManager templateManager = worldServer.getStructureTemplateManager(); Template template = templateManager.get(minecraftServer, new ResourceLocation("domain", "path")); if(template == null) { return false; } else if { template.addBlocksToWorld(world, pos, new PlacementSettings()); }
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.