Skip to content

Imprecise syntax #276

@TonTonAsoX

Description

@TonTonAsoX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions