
sidthesloth123
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by sidthesloth123
-
MODDING HELP (GENERATING METADATA BLOCKS)
sidthesloth123 replied to sidthesloth123's topic in Modder Support
this is my gen code now: but now i cant find it in test worlds and im still not sure still how to gen meta data blocks help!!!! -
MODDING HELP (GENERATING METADATA BLOCKS)
sidthesloth123 replied to sidthesloth123's topic in Modder Support
i get what you mean just dont know how to do it but thanks very much -
MODDING HELP (GENERATING METADATA BLOCKS)
sidthesloth123 replied to sidthesloth123's topic in Modder Support
i only get the 1 ore spawn instead of the others -
MODDING HELP (GENERATING METADATA BLOCKS)
sidthesloth123 replied to sidthesloth123's topic in Modder Support
yes i did in my @init load "GameRegistry.registerWorldGenerator(new OreGasWorldGenerator());" -
by the title you can tell im trying to gen metadata blocks here is my gen class. OreGasWorldGenerator: package es_common.sidthesloth.main; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class OreGasWorldGenerator implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId) { case -1: generateNether(); break; case 0: generateSurface(world, random, chunkX*16, chunkZ*16); break; case 1: generateEnd(); break; } } public void generateNether() { //we're not doing ore ore in the nether } public void generateSurface(World world, Random rand, int chunkX, int chunkZ) { for (int i = 0; i < 30; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(64); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(es_main_blocks.blockOremeta.blockID,7, 10)).generate(world, rand, randPosX, randPosY, randPosZ); } } public void generateEnd() { //we're not going to generate in the end either } } if anyone can help id be very greatful
-
http://www.minecraftforum.net/topic/1452051-145-deverions-forge-modding-tutorials/
-
This is all you will need http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file
-
How do I get my mod compiled and ready for usage?
sidthesloth123 replied to Matrixmage's topic in Modder Support
what i do is: 1.run recompile.bat 2. run getchangedsrc.bat 3. run recompile.bat this way you only get new or changed files better for bigger mods but this way you know what you have changed -
i am trying to make it so when my block "testblock" is broken by"testitemtool" it would drop eg.redstone but if its not broken by my "testitemtool" it will drop nothing. im not sure how to do this so all input is so helpful and i would be very greatful. "testblock" package test_common.sidthesloth.main; import net.minecraft.src.Block; import net.minecraft.src.Item; import net.minecraft.src.EntityPlayer; import net.minecraft.src.Material; import net.minecraft.src.World; public class testblock extends Block { public testblock (int id, int texture, Material material) { super(id, texture, material); } @Override public String getTextureFile () { return CommonProxy.BLOCK_PNG; } } "testitemtool" package test_common.sidthesloth.main; import net.minecraft.src.Item; public class testitemtool extends Item { public testitem(int id) { super(id); // TODO Auto-generated constructor stub } } thanks if you read this
-
Black screen after installing Forge
sidthesloth123 replied to rock0520's topic in Support & Bug Reports
hello, i am trying to make it so when my block "testblock" is broken by my "testitemtool" it will drop eg.redstone but if it is not broken by the "testitemtool" it would drop nothing. I dont know how to do this if you could help i would be very greatful My "testblocktool" package test_common.sidthesloth.main; import net.minecraft.src.Block; import net.minecraft.src.Item; import net.minecraft.src.EntityPlayer; import net.minecraft.src.Material; import net.minecraft.src.World; public class testblock extends Block { public testblock (int id, int texture, Material material) { super(id, texture, material); } @Override public String getTextureFile () { return CommonProxy.BLOCK_PNG; } } "testitem" package test_common.sidthesloth.main; import net.minecraft.src.Item; public class testitemtool extends Item { public testitem(int id) { super(id); // TODO Auto-generated constructor stub } } -
sorry i dont understand what you mean? Basically what he's saying is that you set the ID variables after registring the blocks, meaning that you are "creating" the blocks before setting the IDs, thus resulting in their IDs being 0. The fix is kind of complicated, but I will try to explain it. Basically, remove the "public final static Block" before the variables and do "public static Block compactdirt;" before all the methods, but still in the "public class compactblocks". After that, move the setting of the variables (compactdirt = new compactdirt...) in the method marked with @Init. If you don't understand, write. Get this error too, can you please create a dummy mod or something? So I can understand? Thanks! done just have to lay it out like i was shown works the same for items http://pastebin.com/6ALJaMwp
-
sorry i dont understand what you mean? Basically what he's saying is that you set the ID variables after registring the blocks, meaning that you are "creating" the blocks before setting the IDs, thus resulting in their IDs being 0. The fix is kind of complicated, but I will try to explain it. Basically, remove the "public final static Block" before the variables and do "public static Block compactdirt;" before all the methods, but still in the "public class compactblocks". After that, move the setting of the variables (compactdirt = new compactdirt...) in the method marked with @Init. If you don't understand, write. Get this error too, can you please create a dummy mod or something? So I can understand? Thanks! Il do it for you by tomorrow;
-
sorry i dont understand what you mean? Basically what he's saying is that you set the ID variables after registring the blocks, meaning that you are "creating" the blocks before setting the IDs, thus resulting in their IDs being 0. The fix is kind of complicated, but I will try to explain it. Basically, remove the "public final static Block" before the variables and do "public static Block compactdirt;" before all the methods, but still in the "public class compactblocks". After that, move the setting of the variables (compactdirt = new compactdirt...) in the method marked with @Init. If you don't understand, write. Thanks so much!
-
i was tyring to add it so 2 of my blocks can have their id's changed just as a test,but i am running into the same error all the time and the config file does not generate. code of main class: http://pastebin.com/6KgVVxsj error message: http://pastebin.com/Ut1gxBh7 if anyone can help you would be the best. im using the latest recommended build of forge for 1.4.4