Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imprecise syntax #276

Open
TonTonAsoX opened this issue Sep 28, 2023 · 0 comments
Open

Imprecise syntax #276

TonTonAsoX opened this issue Sep 28, 2023 · 0 comments

Comments

@TonTonAsoX
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant