Started by
TidyGiant
on
Topic category: Help with Minecraft modding (Java Edition)
I don't know how to make the swimming speed slower in my fluid, Crude Oil (because viscosity doesn't work), and slowness doesn't work, so what do I need to do? I want to make a custom potion effect called Swim Slowness (the opposite of Dolphin's Grace), and it would basically be a custom slowness effect, but for fluids only (also i want code and possible procedures ran by the effect).
i guess for every tick that swim slowness is active, you could set the affected entity's velocity to half of what it is
But procedures? What procedure blocks are needed in what order?
The thing is there is no procedure block "set entity velocity", so is there a procedure to SET the entity velocity, because there already is to get velocity but it's in x y z and i want blocks/second
There also is walk speed and fly speed but not swim speed procedure blocks.
You could try:
If entity in water/bubble column
Put entity in cobweb for x ticks
Ifk if that’s what you want but it could work