ContentTweaker icon indicating copy to clipboard operation
ContentTweaker copied to clipboard

Imprecise syntax

Open TonTonAsoX opened this issue 1 year ago • 0 comments

I want to create a fluid with a custom texture, so I create my fluid and my texture.

I put my texture (salty_water_still.png) in a folder fluids itslef in the blocks folder in resources > contenttweaker > textures

In my script for the fluid, I use the stillLocation Property, but here's the probleme : there's no example of how this syntax needs to be written.

I tried many things and nothing happen : my texture won't appear in game.

Here's what I tried : saltyWater.stillLocation = ("contenttweaker:blocks/fluids/salty_water_still");

saltyWater.stillLocation = "contenttweaker:fluids/salty_water_still";

saltyWater.stillLocation = "contenttweaker:fluids/salty_water_still.png";

saltyWater.stillLocation = ("contenttweaker:fluids/salty_water_still.png");

So, if anyone can explain how the syntax works, big thanks.

TonTonAsoX avatar Sep 28 '23 15:09 TonTonAsoX