Jump to content

[1.7.2]Slabs can't turn into double slabs and are darkened out


ApocalypticFlame

Recommended Posts

  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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

I'm having the same isue, I tried to figure out what you've written, did you mean something like this? [GameRegistry.registerBlock(TeamCraft.SingleBlock, ItemSlab.class, "SingleSlab", TeamCraft.SingleBlock, TeamCraft.DoubleBlock, false);

        GameRegistry.registerBlock(TeamCraft.DoubleBlock, ItemSlab.class, "DoubleSlab", TeamCraft.SingleBlock, TeamCraft.DoubleBlock, true);]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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