Tech Reborn

Tech Reborn

30M Downloads

Drain from a cauldron/dripstone

Aton-Kish opened this issue ยท 2 comments

commented

Is your feature request related to a problem? Please describe.
The drain block cannot pull from a cauldron and fill from a dripstone directly.

Describe the solution you'd like
Drain from a cauldron/dripstone.

Describe alternatives you've considered
Perhaps it would work well to add a cauldron and dripstone conditions to the below codes.

if (aboveBlock instanceof FluidDrainable) {
ItemStack fluidContainer = ((FluidDrainable) aboveBlock).tryDrainFluid(world, above, aboveBlockState);
if (fluidContainer.getItem() instanceof ItemFluidInfo) {
Fluid drainFluid = ((ItemFluidInfo) fluidContainer.getItem()).getFluid(fluidContainer);
internalTank.setFluidInstance(new FluidInstance(drainFluid, FluidValue.BUCKET));
} else {
TechReborn.LOGGER.debug("Could not get Fluid from ItemStack " + fluidContainer.getItem());
}
}

Additional context
We will be able to build the automatic dripstone fluid farm.
lava_farm

commented

Will be addressed by the Fabric Transfer API.

commented

I would only take from Cauldron, as the other part would need to reimplement the dripstone filling logic I guess