Posted February 25, 20223 yr I have created a custom fluid and would like to adjust the rate at which it pushes entities around. I understand that the movement is dictated by tags now and have created a tag for my custom fluid. I noticed that Entity contains updateFluidHeightAndDoFluidPushing which takes a fluid tag and a motion scale. I assumed that when I call this method in an overridden LiquidBlock#entityInside method, that the entity would be pushed accordingly. However, this does not seem to be the case. What am I missing? Block Class Spoiler public class OilBlock extends LiquidBlock { public OilBlock(Supplier<? extends FlowingFluid> supplier, Properties properties) { super(supplier, properties); } @Override public void entityInside(BlockState pState, Level pLevel, BlockPos pPos, Entity pEntity) { if(pLevel.isClientSide || !pEntity.isAlive()) { return; } pEntity.updateFluidHeightAndDoFluidPushing(GalacticResourcesFluidTags.OIL, 0.2D); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.