Posted August 7, 20223 yr I want to have the player be able to swim in lava as they would in water, and so far I'm only able to change the pose if they're swimming, however, the swim speed stays the same despite me changing the SWIM_SPEED attribute and messing around with 'setDeltaMovement', as well as looking into how water and lava is handled inside LivingEntity.class and such. Can somebody point me in the right direction as to how I could achieve this?
August 7, 20223 yr I'm not familiar with the new FluidApi added by Forge. But you could try to set the canSwim value of the FluidType of Lava (ForgeMod.LAVA_TYPE) via Reflection inside FMLCommonSetupEvent in #enqueueWork to true. Edited August 8, 20223 yr by Luis_ST
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.