Need Some Help Creating Working Stairs (With Corners As Well)

Started by MonolithyK on Tue, 01/03/2017 - 20:00

Topic category: Help with MCreator modding

Last seen on 19:16, 25. Aug 2018
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Need Some Help Creating Working Stairs (With Corners As Well)
Tue, 01/03/2017 - 21:14 (edited)

I am in the process of making generated dungeon structures for a different dimension, and I am trying to use stair blocks with my own texture (which includes the use of corner stairs). I have made textures and everything, but unfortunately, I may need a more stable code base to get the generation to work correctly, or basing it directly from pre-existing minecraft code.*This kind of rules out the possibility of eeking by with Techne or Blender models. . .

 

So I am currently running MC v1.7.1, and there seems to be no more prefab for stairs - after all of the TX block changes I presume. Is there a way of doing this correctly?

Edited by MonolithyK on Tue, 01/03/2017 - 21:14
Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
The code itself is pretty
Tue, 01/03/2017 - 21:51

The code itself is pretty easy:
block = new BlockStairs(YOUR_FULL_BLOCK.getDefaultState())).setUnlocalizedName("YOUR_STAIRS_UNLOCALIZED_NAME"));

Only more thing that you need to do is edit your block's blockstate .json file to set model for each direction&shape.