Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Termont

Members
  • Joined

  • Last visited

  1. package com.grandlifemod; import com.grandlifemod.additions.BlockRenders; import com.grandlifemod.proxy.GrandLifeSetup; import com.grandlifemod.world.GrandLifeShardOreGenerations; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLDedicatedServerSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod(GrandLifeMod.MODID) public class GrandLifeMod { public static GrandLifeMod instance; public static final String MODID = "grandlifemod"; private static final Logger LOGGER = LogManager.getLogger(); public static GrandLifeSetup setup = new GrandLifeSetup(); public GrandLifeMod() { instance = this; MinecraftForge.EVENT_BUS.register(this); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::modSetup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::serverSetup); } private void modSetup(final FMLCommonSetupEvent event) { GrandLifeShardOreGenerations.setupOreGeneration2(); LOGGER.info("GLife common setup"); } private void clientSetup(final FMLClientSetupEvent event) { BlockRenders.defineRenders(); LOGGER.info("GLife client setup"); } private void serverSetup(final FMLDedicatedServerSetupEvent event) { LOGGER.info("GLife server setup"); } } package com.grandlifemod.world; import com.grandlifemod.content.GrandLifeBlocks; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.gen.feature.OreFeatureConfig; import net.minecraft.world.gen.placement.*; import static net.minecraft.world.biome.Biomes.*; public class GrandLifeShardOreGenerations { public static void setupOreGeneration2() { TAIGA.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, GrandLifeBlocks.mythril_shard_ore.getDefaultState(), 3)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(6, 8, 8, 32)))); TAIGA_HILLS.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, GrandLifeBlocks.mythril_shard_ore.getDefaultState(), 3)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(6, 8, 8, 32)))); TAIGA_MOUNTAINS.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, GrandLifeBlocks.mythril_shard_ore.getDefaultState(), 3)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(6, 8, 8, 32)))); } }
  2. Call from Main class in FMLCommonEvent. But, If I write setup with TAIGA.addFreature in FMLClient, it works better than before with (biome==TAIGA) But If i write setup with (biome ==TAIGA) in FMLClient, it don't generate ore
  3. I don't about that. If I use this only for Taiga: if (biome == TAIGA) - It generates normal amount of ore (For example, 10 blocks) But if I use: TAIGA.addFeature - This generates ore several times more than normal (For example, 50 blocks with the same config)
  4. Anyway, I'm using - if (biome == TAIGA) Just interesting why this is happened.. Is it enough? if (biome)... biome.addFeature TAIGA.addFeature
  5. Please explain for me, why there is so much differences in generation between biome.addFeature and TAIGA.addFeature?? :D and All the Best for You :)
  6. Termont changed their profile photo
  7. When I install Forge for 1.14.3, it get me failed too, but anyway, when I'm start Minecraft, Forge is working.
  8. Is it possible, to generate ores, structures, spawn mobs when you use item, kill boss? For example(Terraria): When you destroy a demon altar, your world has been blessed with some ore. When you kill 3 mechanical boss, chlorophyte start to generate in Jungle. After killing Wall of Flesh, some mobs start to spawn. Is it possible to make something like this in Minecraft?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.