#resource pack texts in scripting
1 messages · Page 1 of 1 (latest)
You can use it directly in the sendMessage method of Player or World.
for instance, how do i make an actionform button text have tile.glazedTerracotta.yellow.name turn to Yellow Glazed Terracotta
if possible
Sure. You can do:
// e.g. {{
let form = new ActionFormData()
.title("Form")
.body("A cool body")
.button({
rawtext: [{
translate: "tile.glazedTerracotta.yellow.name"
}]
});
// }}```
I am not sure, but this should be okay.
ty, that makes sense
I think you can use directly:
{
translate: "tile.glazedTerracotta.yellow.name"
}```
But I don't tested.