Posted July 16Jul 16 Hi, wanted to know if it was possible to get a list of biomes a feature can be generated in. I know that placed features have a placement modifier but I have no idea how to decode the serialization of the data or if I am even looking at the right data. Stream<PlacedFeature> xFeatures = world.getServer() .registryAccess() .registryOrThrow(Registries.PLACED_FEATURE) // Registry<PlacedFeature> .stream() .filter(feature -> feature()...equals(Feature.TREE) // get features of type [example] // haven't gotten down to a single feature // try and look for biomes in feature For (PlacedFeature feature : xFeatures){ for(PlacementModifier pm : feature.placement()){ pm.type().ENVIRONMENT_SCAN.CODEC // absolutely no idea } }
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.