Hello, how would I set the facing direction of a melon stem? I’ve read via nbt but how would I do this when I only have the location? Thanks.
Make sure to validate it's a melon stem Code (Java): Location l; /* Your location */ Block b = l.getBlock(); MaterialData d = b.getState().getData(); Directional e = (Directional) d; e.setFacingDirection(BlockFace.EAST);
Sorry to bother again, but I did what you said and I'm getting this error, I tried finding out but I can't:
There is no such implementation for the stem- only setting the age. You can either make a feature request for this or manually change it yourself using nbt
Second thought, you should just be able to manipulate the nms block data without touching nbt directly
There's the updateShape method in BlockStem it might be the method for it or not. Do you have any idea ?