Jump to content

JimmyCottage

Members
  • Posts

    1
  • Joined

  • Last visited

JimmyCottage's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi, I'm trying to access the overworld level instance in a class inheriting from `StructureFeature<JigsawConfiguration>`. I have tried the following: MinecraftServer minecraftServer = ServerLifecycleHooks.getCurrentServer(); ServerLevel level = minecraftServer.getLevel(Level.OVERWORLD); This would appear to work, however calling `.getExistingBlockEntity(// some BlockPos)` on it always returns null, and other methods, such as for example `getBlockState(// some BlockPos)` seem to make it hang forever (as well as the entire server) (The level object itself however is not null). What would be the proper way to access the instance? Thank you very much!
×
×
  • Create New...

Important Information

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