Hello, I’m a newbie bridgev2 user (very new), and I’m looking forward to trying to make an invisible fluid block that does spread but still makes the player swim. I got this from the wiki:
if (
fluids.includes(world.getDimension(player.dimension.id).getBlock({ ...player.location, y: player.location.y + 1 }).typeId) ||
fluids.includes(world.getDimension(player.dimension.id).getBlock(player.location).typeId)
) {
player.addEffect("slow_falling", 4, { amplifier: player.isSneaking ? 1 : 2, showParticles: false });
if (player.isJumping) {
player.addEffect("levitation", 3, { amplifier: 2, showParticles: false });
}
}
, and I’m trying to add it into the coding, but my caveman brain doesn’t know how, please help. I want the player to be able to be able to have the swimming animation and all while with the fluid too.