Jump to content

[1.16.1] How to give Stairs, Slabs, and Walls its necessary properties for it to work.


Recommended Posts

I have created the stair, slab and wall blocks and items properly. I just don't know how to put the necessary states of these blocks for the json file to work. All the texture are in the correct directory, the blocks render properly in the intventory. The problem just comesup when the blocks are placed. The walls render correctly, it just doesn't connect with each other.


Here are the classes for stairs, slabs, and walls.




Link to comment
Share on other sites

9 minutes ago, diesieben07 said:

Unfortunately wall connection is very much hardcoded in WallBlock. WallBlock#func_220113_a checks whether a wall can connect in a given direction. You'd have to override that method, but it is private. So you'll have to use an access transformer to make it protected.

I have fixed the wall connection, I just added my wall to the vanilla tag "walls".


I have also fixed the slab one, I mistyped my blockstate json file. The stair block is the only problem I have now.

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.

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.


  • Create New...

Important Information

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