Jump to content

Termont

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Termont

  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. When I install Forge for 1.14.3, it get me failed too, but anyway, when I'm start Minecraft, Forge is working.
  7. 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?
×
×
  • Create New...

Important Information

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