-
[1.16.5] Generating custom ore
Hello I would like to add a custom ore to the generation of the overworld. I followed some tutorials, but nothing works. Here are my classe: Main class: @Mod(MyMod.MODID) public class MyMod { public static final String MODID = "mymod"; public static final Logger LOGGER = (Logger) LogManager.getLogger(MODID); public MyMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::serverSetup); IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); ModItems.ITEMS.register(bus); ModBlocks.BLOCKS.register(bus); } private void setup(FMLCommonSetupEvent e) { ModFeatures features = new ModFeatures(); features.init(); MinecraftForge.EVENT_BUS.register(features); } private void clientSetup(FMLClientSetupEvent e) { MinecraftForge.EVENT_BUS.register(this); } private void serverSetup(FMLDedicatedServerSetupEvent e) { } } ModFeatures class: public class ModFeatures { public ConfiguredFeature<?, ?> ORE_CUSTOM; public void init() { ORE_CUSTOM = register("custom_ore", Feature.ORE.configured( new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.ORE_CUSTOM.get().defaultBlockState(), 2)) .range(20).squared() .count(20)); } public <FC extends IFeatureConfig> ConfiguredFeature<FC, ?> register(String name, ConfiguredFeature<FC, ?> feature) { return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, name, feature); } @SubscribeEvent public void biomeLoading(BiomeLoadingEvent e) { BiomeGenerationSettingsBuilder generation = e.getGeneration(); if (e.getCategory() != Biome.Category.NETHER && e.getCategory() != Biome.Category.THEEND) { generation.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, ORE_CUSTOM); } } } I get no error, but I can't find any custom ore. I don't know if it is because my values are too low (because I do not really understand how does work range() and count(): where are the min and the max Y level for generation?) or if I forgot something... Thanks for your help.
-
[1.16.5] Custom debug (F3) overlay
Ah ok thanks!
-
[1.16.5] Custom debug (F3) overlay
Which lists? ๐ Sorry, I don't speak English very well, so I may not have understood the word "lists" the same way you did... or I just didn't understand at all what you mean...
-
[1.16.5] Custom debug (F3) overlay
Is there any way to remove the entire overlay and replace it with my own? Like for the GUI screens?
-
[1.16.5] Custom debug (F3) overlay
Hello, I am developing a mod for my Minecraft server with Forge 1.16.5, and I would like to customize the debug overlay, by removing some fields or adding or modifying others. However, I don't know how to do this, because it doesn't work like in the old versions. Could you help me? Thank you.
IPS spam blocked by CleanTalk.