Posted March 27, 20205 yr So, I coded a fluid (grease) into minecraft, it has a flow rate and all that, but it has no physical effect on entities. It doesn't push you away or allow you to swim in it. Basically, it acts like air. I need to figure out what the problem is and what I need to do to fix it Repo: https://github.com/PressXFor/Porkchop-Mod/tree/master/porkchopmod/src/main/java/com/press_x_for/porkchopmod then go to the latest commits.
March 27, 20205 yr To make it water-like (swimming/pushing mobs) you need to add a tag that makes it behave like water in data.minecraft.tags.fluids called water.json (obviously this one is for the fluid I made when I was figuring this stuff out, make it for your fluids) Quote { "replace": false, "values": [ "bunchostuff:muddy_water", "bunchostuff:muddy_water_flow" ] } And just a side note, the fluid I made testing I subclassed from ForgeFlowingFluid instead of FlowingFluid. Not sure if it matters for any reason or not, but figured I'd mention Edited March 27, 20205 yr by Ugdhar
March 27, 20205 yr Author 9 minutes ago, Ugdhar said: To make it water-like (swimming/pushing mobs) you need to add a tag that makes it behave like water in data.minecraft.tags.fluids called water.json (obviously this one is for the fluid I made when I was figuring this stuff out, make it for your fluids) And just a side note, the fluid I made testing I subclassed from ForgeFlowingFluid instead of FlowingFluid. Not sure if it matters for any reason or not, but figured I'd mention even with it, it doesn't work
March 27, 20205 yr Package name is wrong, you have data.minecraft.tags with water.json, you need another package in tags called fluids Edited March 27, 20205 yr by Ugdhar
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.