Detect falling block entity spawn in 1.12.2 and below

Discussion in 'Spigot Plugin Development' started by MrHardyCZ, Jun 6, 2019.

  1. Hello. I'm working on a protection plugin which will basically work as a ForceField and I have a little trouble with falling block (sand, gravel, etc...) protection. I'm working on a cool animation basically, when the falling block touches the Field, it is launched back. In 1.13 and above it is really simple...
    Code (Text):
                EntityType entityType = event.getEntityType();
                if (entityType.equals(EntityType.FALLING_BLOCK)) {
                    //some code
    But how do I do this in 1.12.2 and below?
  2. Still looking for help guys. If you have any idea please let me know. Thanks.