@Override public void onInteract(Entity entity, Block block, Action type, BlockFace clickedface) { super.onInteract(entity, block, type, clickedface); Block target = block.translate(clickedface); if (target.getMaterial().equals(VanillaMaterials.AIR)) { clickedface = clickedface.getOpposite(); if (VanillaMaterials.FIRE.canPlace(target, (short) 0, clickedface, false)) { if (VanillaMaterials.FIRE.onPlacement(target, (short) 0, clickedface, false)) { Inventory inv = entity.getInventory(); inv.addCurrentItemData(1); } } } }