[solved] How to set WALL_SIGN?

Hello all. How to set WALL_SIGN?

Hello Azat. Chute door?

What part of the sign do you want to change?

I use code:
Sign immediately falls.

The problem is that you need to tell the sign what direction you want it to be facing. Use location.setBlock(BlockTypes.WALL_SIGN.getDefaultState().with(Keys.DIRECTION, facing)); Replace facing with the Direction you want the sign to face.


I wrote code:
location.setBlock(BlockTypes.WALL_SIGN.getDefaultState().with(Keys.DIRECTION, SOUTH).get());

It works fine. Thanks.