#How to add custom fluids using datapacks?
1 messages · Page 1 of 1 (latest)
ngl I have no idea
@sacred temple do you have any idea?
i tried to look in /data folder but i didn't find anything notable
it appears that, if the block state is considered "liquid" (set by mods, not by your datapack), then specifying mass actually specifies fluid density, and specifying friction actually specifies drag coefficient
so you basically just do it like a normal block
so i should add mass to a fluid to make my boats float?
you want to do it for tfc fluids yes?
basically use uh
/setblock
yes
to see what the block id of the fluid is
and specify its mass based on that
it doesn't seem to work
[
{
"block": "tfc:river_water",
"mass": 1000,
},
{
"block": "tfc:spring_water",
"mass": 3920,
}
]
did you enable the datapack?
yes
and restart your game?
/reload
lemme try
i restarted it but it still doesn't float on river water
or mb i put it in wrong folder
also i tried to add it through fluid bc fill command shows fluid/
[
{
"block": "tfc:fluid/river_water",
"mass": 1000,
},
{
"block": "tfc:spring_water",
"mass": 3920,
}
]
Yeah I’m not sure whatever moonlight global datapacks is will work
Huh why is it different
I guess trust F3
is water also assigned with mass and simmilar using datapacks or it's hardcoded?
water is hardcoded
where exacly
i think i can write a mixin to pass water tags to piece of code where it was hardcoded
or like
try and figure out why datapackable fluids aren't working
and try to fix it
and make a pr, lol
🫡 imma try
I'm sure if you step through the fluid block state registration with a breakpoint the reason its not working will become clear
these problems usually aren't too hard to spot if you've got an actual datapack to debug step by step
So it might not work?
It might be bugged I’m not sure
I figureed out how to make it work
so you should create a datapack
put
[
{
"block": "tfc:river_water",
"mass": 1000.0,
"friction": 0.3
}
]
in this folder of your datapack
namespace/data/namespace/vs_mass/fluids/fluids.json
Does it need to be in a fluids folder? Interesting
thx
but I already did it
no
They hid the datapack page well on their website.
Valkyrien Skies has a few built-in datapack systems that can be used to tweak its functionality or provide extra compat.
To start off with, you will need a datapack. The Minecraft wiki has a tutorial on the basics of setting one up here.
Valkyrien Skies currently has 3 datapack features. Being able to modify block properties (mass, friction, etc...
I wrote most of that page
I just wasn’t sure the fluid stuff worked
xD
I need to make it so https://wiki.valkyrienskies.org/wiki/Modifying_Block_Properties and https://wiki.valkyrienskies.org/wiki/Shipyard_entities redirect to https://wiki.valkyrienskies.org/wiki/Datapack_System but every time I try the wiki blocks me for being a bot 
hahaha
rude wiki