How do I get what block is under an entity?
I wanna store block's ID under an entity when it spawns and replace it with bedrock. But when he dies the block he replaced returns to its original block. I'm not sure if there is a better way but I tried:
data get block ~ ~-1 ~
But it only detects block entities and its not really... what I need.
Continue to help post