Skip to content

Sign Edit Event

wagyourtail edited this page Aug 1, 2020 · 1 revision

1.2.2+

this event is fired before the SignEditScreen is opened.

This event passes some arguments to javascript which can be accessed by the ArrayList<String, Object> called args. a list of these properties is:

  • lines: List<String> of lines (use lines.set(index, string) to set the value of a line)
  • x: x coord.
  • y: y coord.
  • z: z coord.
  • close: set to true if the SignEditScreen shouldn't be opened after your script sets the sign's lines.