So this might be a stupid question, but I’m kinda stuck here.
I know we have StairShapeData to change the shape of a stair and DirectionalData to change it’s direction, but how do I change if it’s upside down? I looked through the API and couldn’t find anything.
I’m probably missing it, but I don’t even know what exactly I’m looking for.
Imho the Data API is not very intuitive.
You get data with .get(Keys.DESIRED_KEY) and set them with .offer(Keys.DESIRED_KEY, value) or .offer(xDataInstance).
There are really a lot or confusing overloads to those functions, but you’ll probably only ever need these.
This does the same as your code but only shorter. As for flipping the stairs. When i get some time (probably next year) i can find out.
Or you can by just adding a command that tells you all the keys of the block your looking at. It should be obvious when you see the keys and the values.
You can get the keys and values of the block by doing the following.