Hello. I need to create/set bed at specified location. Also I have direction data (in which bed should be rotated). I found this topic: https://forums.spongepowered.org/t/how-can-i-create-beds-programmatically/13692/2 but didn’t find the solution. Can anyone give a hint how to do it?
Location<World> location = getBedLocationSomewhere();
Direction dir = getBedDirectionSomewhere();
//set bed block at location?
EDIT: I am receiving this result: https://imgur.com/a/BbF2T, both blocks have ‘part: foot’ data (F3). I don’t know how to change it.
Thanks,
MrOnlineCoder