#Set Variable with Settings in Manifest.json

1 messages · Page 1 of 1 (latest)

echo tide
#

I would like to change a variable in hud_screen.json, via the texture pack settings. Is it possible to do this? Thank you.

topaz spade
#

Wdym?

#

_global_variables.json

#

Majority of other variables are hardcoded iirc

echo tide
echo tide
# topaz spade Wdym?

When you add a resource pack to your global resource packs ingame, if that resource pack has subpacks, a gear pops up on the bottom right corner of the resource pack card. That same gear pops up if you add "settings" :[] to your manifest.json as well. I found out I was able to add sliders and labels into the "settings" part of the manifest.json , but I could not understand how I could use that to change the value of a variable.

topaz spade
#

Ok, so you added a subpack and want to change the value of a variable based on it?

echo tide
echo tide
echo tide
topaz spade
#

Maybe try something like this

"element": {
    "$example_variable": [ 50, 50 ],


     "Size": "$example_variable"
}
echo tide
topaz spade
#

um... size will require string only if you use something like "20%" or something.

topaz spade
#

then how about

"$variab": [ "1%" , "2%" ],
"size": "$variab"
echo tide
#

Thank you for your help though

topaz spade
#

Lemme try this myself tho as even i dont know if this work or not.

echo tide
topaz spade
#

no, i will try it onto something i have.

echo tide
topaz spade
#

Idk what happens, the variable works but the size is always 100% of the screen, no matter weather it is a float or a string. Did you got the same issue as this?

#

(i was using button btw)

#

^ Same for Image too

echo tide
#

So for now, if anyone tries this, I guess they will have to resort to using more than one resource pack. One pack with all the content, and an overlay pack with subpacks to change a hardcoded number..