Jump to content

sidthesloth123

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by sidthesloth123

  1. 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!!!!
  2. i get what you mean just dont know how to do it but thanks very much
  3. yes i did in my @init load "GameRegistry.registerWorldGenerator(new OreGasWorldGenerator());"
  4. 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
  5. http://www.minecraftforum.net/topic/1452051-145-deverions-forge-modding-tutorials/
  6. This is all you will need http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file
  7. 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
  8. if people dont understand one little thing and you think you can help pm me and il give you my skype
  9. 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
  10. 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 } }
  11. 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
  12. 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;
  13. 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!
  14. 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
×
×
  • Create New...

Important Information

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