
Drains a specific Amount of the tank of a block at a position at X Y Z.
if (world instanceof ILevelExtension _ext) { IFluidHandler _fluidhandler = _ext.getCapability(Capabilities.FluidHandler.BLOCK, BlockPos.containing(${input$x},${input$y},${input$z}), null); if (_fluidhandler != null) { _fluidhandler.drain((int) ${input$Amount}, IFluidHandler.FluidAction.EXECUTE); } }
${input$x} = X-Position of the Block
${input$y} = Y-Position of the Block
${input$z} = Z-Position of the Block
${input$Amount} = Amount that is gonna be drained