Jump to content

RfailesDev

Members
  • Posts

    1
  • Joined

  • Last visited

RfailesDev's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.