GCC-Minecraft-Team / sps-mc-link-spigot

Spigot plugin to link SPS and MC accounts
3 stars 1 forks source link

Fix TNT not breaking blocks in owned chunks. (tree farms and mining) #35

Open nlaha opened 3 years ago

nlaha commented 3 years ago
2kai2kai2 commented 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.

2kai2kai2 commented 3 years ago

Turns out there is literally a method Entity.getOrigin() that returns where the entity spawned.