Stanlyhalo Posted September 23, 2019 Share Posted September 23, 2019 (edited) So I have made my own World Type, and the tutorial I followed on this process used SingleBiomeProviderSettings. And I want to use both of my custom biomes. How do I do so? @Override public ChunkGenerator<?> createChunkGenerator(World world) { OverworldGenSettings settings = new OverworldGenSettings(); SingleBiomeProviderSettings single = new SingleBiomeProviderSettings(); single.setBiome(CustomBiomes.biome_custom1); single.setBiome(CustomBiomes.biome_custom2); return new OverworldChunkGenerator(world, new SingleBiomeProvider(single), settings); } I want to know if their is a BiomeProviderSettings for multiple biomes, and how do I do it. Edited October 27, 2019 by Stanlyhalo Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted September 23, 2019 Share Posted September 23, 2019 14 minutes ago, Stanlyhalo said: I want to know if their is a BiomeProviderSettings for multiple biomes, and how do I do it. There is one, but it is for the Overworld specifically take a look at OverworldBiomeProviderSettings and OverworldBiomeProvider. You can also use your IDE to figure these things out. If you right click on a Class name and Click Open Type Hierarchy in eclipse it will show you the parent classes and child classes in a hierarchy. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 27, 2019 Author Share Posted September 27, 2019 I've now done this with OverworldBiomeProviderSettings: OverworldGenSettings settings = new OverworldGenSettings(); OverworldBiomeProviderSettings BiomeProvider = new OverworldBiomeProviderSettings(); BiomeProvider.setGeneratorSettings(settings); return new OverworldChunkGenerator(world, new OverworldBiomeProvider(BiomeProvider), settings); But I don't know how to add my biomes to the provider. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted September 27, 2019 Share Posted September 27, 2019 1 hour ago, Stanlyhalo said: But I don't know how to add my biomes to the provider. You'll probably need to make your own. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 Are you able to point me in the direction for either find an example, or docs, or some sort of thing I can base mine off of? Because I am really good at programming, but I am just figuring out World Types. Also I am going to check out how to make my ores only in my WorldType. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted September 28, 2019 Share Posted September 28, 2019 32 minutes ago, Stanlyhalo said: Are you able to point me in the direction for either find an example, or docs, You can take a look at any mod that is open source that adds their own WorldType I think Biomes O'plenty does this? If not take a look at the vanilla one for the Overworld. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 (edited) I know how to check the code through the IDE, but how would I check the vanilla code for WorldType? Edit*: Biomes O Plenty doesn't support 1.14.4 so maybe I would have to translate the code to 1.14.4 if I can see the code. Edit*: I can see the .class files but disecting this can take a bit. Edited September 28, 2019 by Stanlyhalo Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted September 28, 2019 Share Posted September 28, 2019 4 minutes ago, Stanlyhalo said: Edit*: Biomes O Plenty doesn't support 1.14.4 so maybe I would have to translate the code to 1.14.4 if I can see the code. Ummm no. You could wait to see when they update. 5 minutes ago, Stanlyhalo said: but how would I check the vanilla code for WorldType? You would need to look for it. You could type WorldType and ctrl+left click it. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 Alright well, then I'll do that instead. Quote Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 (edited) Well I'm in the WorldType.class and it seems to be kina just what I want, and seems to be how I can also add a options button to my worldtype. Edit*: How would I use the code to generator the biomes? Edited September 28, 2019 by Stanlyhalo Quote Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 What if I just instead created my own ProviderSettings to try and support different Biomes? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted September 28, 2019 Share Posted September 28, 2019 13 minutes ago, Stanlyhalo said: What if I just instead created my own ProviderSettings to try and support different Biomes? That's what I've been saying you need your own BiomeProviderSettings and potentially BiomeProvider. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 (edited) Yup I am currently doing it, and this is what I have so far on my settings: private Biome[] biomes; public ExpansionModBiomeProviderSettings addBiome(Biome[] biomeIn) { biomes = new Biome[biomeIn.length]; for (int i = 0; i < biomeIn.length; i++) { biomes[i] = biomeIn[i]; } return this; } public Biome[] getBiome() { return this.biomes; } Also how would I call addBiome from my WorldType, because it is underlined in red. Edit*: I'm trying to make it so that the WorldType adds a biome list and the biome provider settings will make it a list so that the provider can read one at a time if that's possible. Edited September 28, 2019 by Stanlyhalo Quote Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 Well didn't work. Is their a example one that someone has made, because mine just don't work, and how would I add a config to my World Type? Quote Link to comment Share on other sites More sharing options...
Stanlyhalo Posted September 28, 2019 Author Share Posted September 28, 2019 (edited) So I just tried instead of: return new OverworldChunkGenerator(world, new SingleBiomeProvider(provider), settings); I can do: return new OverworldChunkGenerator(world, new BiomeProvider(provider), settings); So how could I possibly make it instead of: SingleBiomeProviderSettings provider = new SingleBiomeProviderSettings(); Into just BiomeProviderSettings because I am trying different combos and trying to ctrl+click to open it. Edit*: Figured it out: OverworldBiomeProviderSettings But idk how to add a biome, also how would I do nether & end (maybe answer this after how to add a biome to the OverworldBiomeProviderSettings)? Edited September 28, 2019 by Stanlyhalo Quote Link to comment Share on other sites More sharing options...
Stanlyhalo Posted October 27, 2019 Author Share Posted October 27, 2019 So I'm still having a hard time making a world type have two biomes, I checked and got the two biomes to work separately but adding them both to one world type, that's where I'm still running into. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.