get rotation and properties of a block

alr i have a system to turn blocks into "physic blocks" using shulkers and block_display entities, works fine but if i have blocks that have data like where are they looking at and stuff (like stairs, or like half-blocks or stuff like iron bars that can have [north=true,south=false] etc... how can i store this into an storage so when i summon the block display it keeps the data?? (i tried with /data but it says that the targeted block is not a block entity)

Continue to help post