I want to make a plugin that changes the block to something else, when player just looks at it. I'm having trouble getting the targeted block. Any ideas?
@Volkov_ You can use the LivingEntity#getTargetBlock(Set<Material> transparent, int maxDistance) method to get the targeted block.