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
}
}
Install Java 17:
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
If there is still no change, run jarfix
https://johann.loefflmann.net/en/software/jarfix/index.html
Whenever I download any Jar file (including the Forge installer) it won't allow me to open it in the same way shown in media such as tutorials. Instead of opening the installer, it asks me to choose an app to open it with. Initially, I believed it was my Windows Security, but even after turning it off, the problem still persists. Any solutions yet?
Recommended Posts