So I have an event which is when a FallingBlock hits the ground, so how would I create a primed tnt on the spot at where the FallingBlock was? My event: Code:java if (event.getEntity() instanceof FallingBlock); { } Why is it when I put in: Code:java if (event.getEntity() instanceof FallingBlock); { FallingBlock.setType(Material.AIR); } It red underlines setType... It says setType is undefined for FallingBlock.... Bump??? Any help would be awesome EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You never called the entity a fallingblock, only checked if it was one. So name the entity as a falling block then set its type