Hello everyone, I wanted to ask you if you could help me in my research on the biomes on my server. I have a pretty good level of programming on Java (handy for creating plugins!), But I looked and searched everywhere on the forums and documentation to know "how to remove the OCEAN biome" in the world of my server. Indeed, the versions of minecraft change, the APIs also, TerrainControl is not updated since 2013. my server is currently in 1.14.1 and I can not find any plugin to remove the OCEAN biome, nor even codes explaining how to remove this biome. So if you have links, suggestions, code tips (with explanations, I do not want to copy / paste codes because we learn nothing if you explain nothing), I am interested in any information you can provide me . Thank you all.
Some Idea I came with is checking when a chunk is loaded if there's water in the area, if yes replace it with.. whatever you like. I don't think you can remove / replace all the water in the world at once without crashing the server.
Here's something I recently found: Code:Java String path = "net.minecraft.server." + Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];Class clazz = Class.forName(path + ".BiomeBase"); Field pField = clazz.getDeclaredField("PLAINS"); //Replace biomes with plainspField.setAccessible(true);Object plains = pField.get(null); Field bField = clazz.getDeclaredField("biomes");bField.setAccessible(true);Object[] biomes = (Object[]) bField.get(null); for(int i = 0; i < biomes.length; i++){ if(biomes[I] instanceof BiomeOcean || biomes[I] instanceof BiomeRiver || biomes[I] instanceof BiomeBeach) { //Biomes you wish to replace biomes[I] = plains; }}bField.set(null, biomes);[/I][/I][/I][/I] Its 1.8 code but I guess it will work in 1.14 in a similar way. Thanks to GERVobis: original video