Started by
ahznb
on
Topic category: Help with Minecraft modding (Java Edition)
So I was wondering, if we add a new custom localization entry, can we then use that string in procedure blocks?
If so, how do we use it? If not, maybe it would be a nice feature to add?
I hope so...
Yes, using the code editor
With code, wherever you have the string, you can instead do
Component.translatable("your.localization.key")
This does assume whatever you're doing accepts a component (you might be able to add
.toString()
to the end if you need it to be a string, but I'm not sure it works since I never tested it)