trulis
-
Posts
33 -
Joined
-
Last visited
Posts posted by trulis
-
-
Is there any way i can change it so the villagers no longer trade for emeralds but for my custom item ?
-
it doesn't work with an item, just with blocks
-
I am trying to make a shapeless recipe so you can dye a wool back to white wool but it is not working.
GameRegistry.addShapelessRecipe(new ItemStack(Blocks.wool, 1, 0), new Object[] {new ItemStack(Items.dye, 1, 0), new ItemStack(Blocks.wool, 1, 1)});
-
How could i make a custom block that would use the textures of a vanilla block and also if a texture pack is used, the custom block to use the texture for the vanilla block from the texture pack ?
-
Now the only error i am getting is this one
The method setIconIndex(int) is undefined for the type Item
-
After i've updated my forge i am getting this errors in Eclipse and i don't understand why.
-
How would i make it so a tool could be a shovel, axe, and pickaxe in one ?
-
How i can change this so this ore is dropping an item with a metadata ?
public int idDropped(int i, Random random, int j) { return TWPlus.metaShard.shiftedIndex; }
-
Thanks for the clarification
-
Use GameRegistry.registerBlock(block, "unique block name") instead
This is an example from my mod.
GameRegistry.registerBlock(cobaltBlock, "blockCobalt");
-
What is best to use ModLoader.registerBlock or GameRegistry.registerBlock ?
-
I am using forge 3.1.26.387 and my ores are not generating. Here is the code
public void generateSurface(World world, Random rand, int chunkX, int chunkZ) { for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(46); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(cobaltOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(36); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(mithrilOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } for(int i=0; i < 7; i++) { int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(26); int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(adamantiteOre.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ); } }
-
in minecraft.jar
[1.7.2]Change villager trade item
in Modder Support
Posted
How should i go about modifying the recipes so it uses my item and not emeralds ?