#Find resource location of fluid texture?

3 messages · Page 1 of 1 (latest)

dawn creek
#

Specifically, I want the resource location of one of my thinTexture fluids. I want to use it in an item model but I can't figure out what the generated texture location is

near ridgeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

dawn creek
#

Apparently the texture is just kubejs:block/thin_fluid_still (found with a client script, attached below for anyone else who needs to find a fluid texture)

const ForgeRegistries = Java.loadClass('net.minecraftforge.registries.ForgeRegistries');
const IClientFluidTypeExtensions = Java.loadClass('net.minecraftforge.client.extensions.common.IClientFluidTypeExtensions');

const clientExt = IClientFluidTypeExtensions.of(ForgeRegistries.FLUIDS.getValue(ResourceLocation.parse("your_fluid_here")));

console.log(clientExt.getStillTexture());
console.log(clientExt.getFlowingTexture());