Topic category: Help with modding (Java Edition)
What I want to do:
I made a Trigger which replaces a block with another block when right clicked. The problem is that the replaced block is a stair and have a direction in which it is facing, my question is : How can I make it, that the new block, that replaces the old one, have the same direction as the old block ?
My thoughts are the following:
I need to save the direction of the old block in a variable (String), then I can let the new block facing in the direction, which is written into the String.
The Problem is:
I can't do that because the Set direction of block at X Y Z to ... wont let my put a String after the to. So is there a way to convert the Direction, written in a String, to a direction, so that it fits in the Set direction method ? Or is there another way to let happen, what I've written at the top ?