
ThatGamerBlue
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by ThatGamerBlue
-
Also happens with build 2000 for 1.10, also it won't generate in the overworld either, ugh i hate my life
-
Welp, I'm awful at debugging, I'll go take a class on it
-
Where do you recommend I should put a breakpoint? I've never used them before
-
Because I can't find any, even if i set it to a ridiculously high spawn rate. (600 passes)
-
Forge version is 12.17.0.1976, debugging to see if they're being called now. EDIT: Changed generateEnd() function to this: private void generateEnd(World world, Random random, int i, int j){ System.out.println("generateEnd(world, random, i, j) called"); for (int k = 0; k < 6; k++){ int chunkX = i + random.nextInt(16); int chunkY = random.nextInt(125); int chunkZ = j + random.nextInt(16); BlockPos bp = new BlockPos(chunkX, chunkY, chunkZ); new WorldGenMinable(ModBlocks.amethystOre.getDefaultState(), 2, BlockMatcher.forBlock(Blocks.END_STONE)).generate(world, random, bp); } } It's definitely being called
-
New world gen: package me.thatgamerblue.amethyst.worldgen; import java.util.Random; import me.thatgamerblue.amethyst.blocks.ModBlocks; import net.minecraft.block.Block; import net.minecraft.block.state.pattern.BlockMatcher; import net.minecraft.init.Blocks; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.storage.WorldInfo; import net.minecraftforge.fml.common.IWorldGenerator; public class WorldGenAmethystOre implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.getDimension()) { case -1: break; case 0: break; case 1: generateEnd(world, random, chunkX << 4, chunkZ << 4); break; default: break; } } private void generateEnd(World world, Random random, int i, int j){ for (int k = 0; k < 6; k++){ int chunkX = i + random.nextInt(16); int chunkY = random.nextInt(125); int chunkZ = j + random.nextInt(16); BlockPos bp = new BlockPos(chunkX, chunkY, chunkZ); new WorldGenMinable(ModBlocks.amethystOre.getDefaultState(), 2, BlockMatcher.forBlock(Blocks.END_STONE)).generate(world, random, bp); } } } Client proxy: package me.thatgamerblue.amethyst.proxy; import me.thatgamerblue.amethyst.blocks.ModBlocks; import me.thatgamerblue.amethyst.items.ModItems; public class AmethystClientProxy extends AmethystCommonProxy { public void preInit(){ super.preInit(); ModBlocks.initModels(); ModItems.initModels(); } public void init(){ super.init(); } public void postInit(){ super.postInit(); } } EDIT: Sorry for late reply, real life stuff happened
-
I'm struggling to do oregen, because mojang change everything every version nowadays ;p I'm trying to do it in the end, there's no errors in the log, but here's my code and maybe you can help me. WorldGenAmethystOre.java: package me.thatgamerblue.amethyst.worldgen; import java.util.Random; import me.thatgamerblue.amethyst.blocks.ModBlocks; import net.minecraft.block.Block; import net.minecraft.block.state.pattern.BlockMatcher; import net.minecraft.init.Blocks; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.storage.WorldInfo; import net.minecraftforge.fml.common.IWorldGenerator; public class WorldGenAmethystOre implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.getDimension()) { case -1: break; case 0: break; case 1: generateEnd(world, random, chunkX * 16, chunkZ * 16); break; default: break; } } private void generateEnd(World world, Random random, int i, int j){ for (int k = 0; k < 6; k++){ int chunkX = i + random.nextInt(16); int chunkY = random.nextInt(125); int chunkZ = j + random.nextInt(16); BlockPos bp = new BlockPos(chunkX, chunkY, chunkZ); new WorldGenMinable(ModBlocks.amethystOre.getDefaultState(), 2, BlockMatcher.forBlock(Blocks.END_STONE)).generate(world, random, bp); } } } AmethystCommonProxy.java: package me.thatgamerblue.amethyst.proxy; import me.thatgamerblue.amethyst.blocks.ModBlocks; import me.thatgamerblue.amethyst.items.ModItems; import me.thatgamerblue.amethyst.worldgen.WorldGenAmethystOre; import net.minecraftforge.fml.common.registry.GameRegistry; public class AmethystCommonProxy { public void preInit(){ ModBlocks.init(); ModItems.init(); } public void init(){ GameRegistry.registerWorldGenerator(new WorldGenAmethystOre(), 16); } public void postInit(){ } } Amethyst.java (main): package me.thatgamerblue.amethyst; import me.thatgamerblue.amethyst.proxy.AmethystCommonProxy; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Amethyst.MODID, version = Amethyst.VERSION, name = Amethyst.MODNAME) public class Amethyst { public static final String MODID = "Amethyst"; public static final String VERSION = "1.0"; public static final String MODNAME = "Amethyst"; @SidedProxy(serverSide="me.thatgamerblue.amethyst.proxy.AmethystCommonProxy", clientSide="me.thatgamerblue.amethyst.proxy.AmethystClientProxy") public static AmethystCommonProxy proxy; @EventHandler public void init(FMLInitializationEvent event) { proxy.init(); System.out.println("Loaded"); } @EventHandler public void preInit(FMLPreInitializationEvent event){ proxy.preInit(); } @EventHandler public void postInit(FMLPostInitializationEvent event){ proxy.postInit(); } }
-
I get the error The method getEnchantPowerBonus() of type AmethystBlock must override or implement a supertype method Full code: package me.thatgamerblue.amethyst.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import me.thatgamerblue.amethyst.creative.CreativeTab; public class AmethystBlock extends Block{ public AmethystBlock() { super(Material.IRON); //no idea setUnlocalizedName("blockAmethyst"); setRegistryName("blockAmethyst"); setLightLevel(0.45f); //light level of 5-6 setCreativeTab(CreativeTab.amethystCreativeTab); setHardness(5.0f); //iron block setResistance(10.0f); //iron block setHarvestLevel("pickaxe", 2); //iron pick or better GameRegistry.register(this); GameRegistry.register(new ItemBlock(this), getRegistryName()); } @SideOnly(Side.CLIENT) public void initModel() { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, new ModelResourceLocation(getRegistryName(), "inventory")); } @Override public int getEnchantPowerBonus() { return 15; } }
-
Can I create a block that when placed like a bookshelf around an enchantment table boosts the power like a bookshelf?
-
Can you link a version that's for 1.7.10? I would search myself but I can't understand the mod author's (Calclavia?) maven. EDIT: I found a 1.7.10 version for them on calclavia's website, leaving them here for anyone who needs em Resonant Induction Resonant Engine (REQUIRED) MFFS (Modular Force Field System) Electrodynamics Universal Electricity (REQUIRED) BEWARE THESE MODS ARE DEVELOPMENT VERSIONS AND COULD CORRUPT YOUR WORLD, OR WORSE. I AM NOT RESPONSIBLE FOR ANY DAMAGE TO WORLDS/DATA OR LOSS OF WORLDS/DATA, NEITHER IS CALCLAVIA. DO NOT INSTALL RESONANT INDUCTION AND ELECTRODYNAMICS TOGETHER, THEY ARE NOT COMPATIBLE AND WILL CRASH YOUR GAME.
-
I don't know what mod is causing this issue, clean 1.7.10 forge installation works fine. Mod list: Won't be able to reply for the night, will be able to in the morning. EDIT: Log file: http://pastebin.com/GmSddMxQ (Can't believe I forgot this)