Is it possible to create a "variable" in the menu config.
Is it possible to create a variable that will be responsible for the id of this block, the point is that I can change it only in one place and not throughout the file, it is important that the config of the block was only for this one item such as stone because the blocks in one menu is about 10
For example,
There is a variable "x" its content is for example "minecraft:stone"
And this variable can be used for example this place:
items:
'stone':
material: stone # <- here
slot: 11
display_name: '&b&lStone'
lore:
...
how can i make one and where do i put it in the config
Im sory for the missunderstendings but Im writing it from the translator :/.
#Creating a variable in deluxemanus config
1 messages · Page 1 of 1 (latest)
utils expansion provides a shortcut placeholder
%utils_shortcut_<name>:arg0:arg1:...%
here is an example of how it is defined in the papi config
#placeholder-api message
where do i need to past it?
and it will be %utils_shortcut_idstone:stone:%
?
@formal sage
im so dumb and i just dont understund it ...
im sory
It’s not documented at all, so shortcut would be confusing
What exactly are you wanting to do?
Because if you’re writing all this, you might as well just write “stone”
The only use case I can see of using a “variable” or a “shortcut” would be being able to change the variable in 1 place and it changes it in tons of places
Yes its what i need it for
ok, you need to add the shortcut you want to your placeholderapi config
example here