I'm trying to make a skript to find the landing location of a falling block.
Idea 1:
- On place of sand, look for a falling block entity at the location of the event
- Continue following the location of the entity until it no longer exists
- Look at the last location of the entity when it got deleted to find the block
Idea 2:
- On place of sand, find the entity
- Until death of entity, loop blocks below where the sand was placed until a solid block was found
- Find the location above the solid block
The problems with these ideas are checking entities repeatedly and quickly, slabs/torches/players breaking the sand, and other inconsistencies. Does anyone know a consistent way to find the final location of a falling block?
Idea 1:
- On place of sand, look for a falling block entity at the location of the event
- Continue following the location of the entity until it no longer exists
- Look at the last location of the entity when it got deleted to find the block
Idea 2:
- On place of sand, find the entity
- Until death of entity, loop blocks below where the sand was placed until a solid block was found
- Find the location above the solid block
The problems with these ideas are checking entities repeatedly and quickly, slabs/torches/players breaking the sand, and other inconsistencies. Does anyone know a consistent way to find the final location of a falling block?