Jump to content

Recommended Posts

Posted

  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.

Posted

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?

Posted

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.

Posted

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);]

Posted

I'm fully idiot... nevermind, I looked up to your answer(about 5 lines above this comment) and solved it... Now you make a big facepalm and I say again Thanks!!

Guest Abrynos
Posted

Can you show me your code? I don't get it working with mine

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.