-
MODDING HELP (GENERATING METADATA BLOCKS)
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)
i get what you mean just dont know how to do it but thanks very much
-
MODDING HELP (GENERATING METADATA BLOCKS)
i only get the 1 ore spawn instead of the others
-
MODDING HELP (GENERATING METADATA BLOCKS)
yes i did in my @init load "GameRegistry.registerWorldGenerator(new OreGasWorldGenerator());"
-
MODDING HELP (GENERATING METADATA BLOCKS)
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
-
Use one ID for multiple items
http://www.minecraftforum.net/topic/1452051-145-deverions-forge-modding-tutorials/
-
Config file
This is all you will need http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file
-
{help}when i break "testblock" with "testitemtool" it drops eg.redstone but if..
thanks
-
How do I get my mod compiled and ready for usage?
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
-
{help}when i break "testblock" with "testitemtool" it drops eg.redstone but if..
if people dont understand one little thing and you think you can help pm me and il give you my skype
-
{help}when i break "testblock" with "testitemtool" it drops eg.redstone but if..
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
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 } }
-
error when trying to add a config file so i can change ids for my mod
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
-
error when trying to add a config file so i can change ids for my mod
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;
-
error when trying to add a config file so i can change ids for my mod
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!
IPS spam blocked by CleanTalk.