• Recently Browsing

    No registered users viewing this page.

  • Posts

    • package com.twmicro.practical.world.gen.structures; import com.mojang.serialization.Codec; import com.twmicro.practical.PracticalMod; import com.twmicro.practical.Reference; import com.twmicro.practical.world.gen.structures.pieces.ModernRubyFactoryPiece; import net.minecraft.util.Rotation; import net.minecraft.util.SharedSeedRandom; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.ChunkPos; import net.minecraft.util.math.MutableBoundingBox; import net.minecraft.world.IWorldReader; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.provider.BiomeProvider; import net.minecraft.world.gen.ChunkGenerator; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.feature.IFeatureConfig; import net.minecraft.world.gen.feature.NoFeatureConfig; import net.minecraft.world.gen.feature.structure.*; import net.minecraft.world.gen.feature.template.TemplateManager; import net.minecraft.world.gen.settings.StructureSeparationSettings; import javax.annotation.Nullable; public class ModernRubyFactory extends Structure<NoFeatureConfig> { public ModernRubyFactory(Codec<NoFeatureConfig> codec) { super(codec); } @Override public String getStructureName() { return Reference.MODERN_RUBY_FACTORY_LOCATION.toString(); } @Override public GenerationStage.Decoration func_236396_f_() { return GenerationStage.Decoration.SURFACE_STRUCTURES; } @Nullable @Override public BlockPos func_236388_a_(IWorldReader p_236388_1_, StructureManager p_236388_2_, BlockPos p_236388_3_, int p_236388_4_, boolean p_236388_5_, long p_236388_6_, StructureSeparationSettings p_236388_8_) { return super.func_236388_a_(p_236388_1_, p_236388_2_, p_236388_3_, p_236388_4_, p_236388_5_, p_236388_6_, p_236388_8_); } @Override public Structure.IStartFactory<NoFeatureConfig> getStartFactory() { return ModernRubyFactory.Start::new; } public static class Start extends StructureStart<NoFeatureConfig> { public Start(Structure<NoFeatureConfig> p_i225806_1_, int p_i225806_2_, int p_i225806_3_, MutableBoundingBox p_i225806_4_, int p_i225806_5_, long p_i225806_6_) { super(p_i225806_1_, p_i225806_2_, p_i225806_3_, p_i225806_4_, p_i225806_5_, p_i225806_6_); } @Override public void func_230364_a_(ChunkGenerator p_230364_1_, TemplateManager p_230364_2_, int p_230364_3_, int p_230364_4_, Biome p_230364_5_, NoFeatureConfig p_230364_6_) { int i = p_230364_3_ * 16; int j = p_230364_4_ * 16; BlockPos blockpos = new BlockPos(i, 90, j); Rotation rotation = Rotation.randomRotation(this.rand); ModernRubyFactoryPiece.func_236991_a_(p_230364_2_, blockpos, rotation, this.components, this.rand); this.recalculateStructureSize(); } } } First attempt xD. Please, don't care of name of structure!
    • 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • I was trying to get a mod allowed by Hypixel but it was only supported with 1.8.9 so I tried installing it and the libraries kept failing to install (image below) help would be greatly appreciated.     P.S. I've tried everything I could find including the command prompts, allowing more ram, all installer types, etc.
  • Topics

  • Who's Online (See full list)