Open nlaha opened 3 years ago
We can track TNT by setting a custom metadata tag to be either the owner of the claim where it was ignited, or the location it was ignited. Then when it explodes, we can check that tag to see which blocks it's allowed to destroy.
Turns out there is literally a method Entity.getOrigin()
that returns where the entity spawned.