Jump to content

ApocalypticFlame

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ApocalypticFlame

  1. I don't know how the game registry does it. I've created a static variable called slabFire and initiated it in a void method with the following arguments: slabFire = new slabFireItem(null, dcBlocks.firestoneSlabSingle, dcBlocks.firestoneSlabDouble, true); I don't know what to put in the first argument instead of null and I can't put "dcBlocks.FirestoneSlabDouble" either because that id slot is occupied and the game will just crash.
  2. I don't have an ItemBlock class I thought that was for 1.6.4 . But I've tried using it and it kept crashing on me so could you tell me how to properly use it? And what block do I give it as an argument: the double slab or the single slab?
  3. Hello. I've tried searching everywhere, including here, but I still can't solve my problem. I made a slab class that extends to BlockSlab and overrid func_150003_a to return my slab instead of vanilla's stone or wooden slab, but It still gives me this bug. I can't place them on top of each other in the same block (making a double slab). The slab's top or bottom faces are also darkened out, depending on which half of the block the slab is. (If it's on the bottom the top face is darkened out and vice-versa). Here's the image of my problem: http://i.imgur.com/4bRxsji.png I have also registered both blocks (slab and double slab), using the same class and just changing the boolean in firestoneSlab(boolean b, Material m) to false or true, respectively. The blocks and textures are fine, its just that the slabs don't merge. I really don't know what the problem is, if someone could help me I would appreciate it.
  4. Thanks! I've managed to make my item stay in the crafting grid by simply doing setContainerItem(true) and overriding doesContainerItemLeaveCraftingGrid(ItemStack itemstack) but I need the item to take 1 damage every time I craft with it. If you know how please tell me.
  5. I've been trying to damage an item after using it to craft something but I can't figure it out. I've already successfully used the IRecipe interface but I don't know how to put an item back into the crafting grid after I'm done crafting. I know I have to clone the item with 1 less durability but how exactly do I do it?
×
×
  • Create New...

Important Information

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