ContentTweaker

ContentTweaker

27M Downloads

Imprecise syntax

TonTonAsoX opened this issue ยท 0 comments

commented

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.