#resource pack texts in scripting

1 messages · Page 1 of 1 (latest)

crude heath
frank summit
#

You can use it directly in the sendMessage method of Player or World.

crude heath
#

if possible

frank summit
#

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.
frank summit
#

I think you can use directly:

{
  translate: "tile.glazedTerracotta.yellow.name"
}```

But I don't tested.