Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Add Lines Expression

Open DampfWaffel opened this issue 4 years ago • 2 comments

Suggestion

Adding the expression "[all] lines" for signs

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Sign.html#getLines()

I don't know if it is possible to set all lines as well. currently in the using,

on sign change:
    loop 4 times:
        set line loop-number of event-block to colored line loop-number of event-block

but the below does not work, does anyone have a solution for me?

on sign change:
	set event.getLines() to colored event.getLines()

Why?

so i dont need to look in each line for words

Other

No response

Agreement

  • [X] I have read the guidelines above and confirm I am following them with this suggestion.

DampfWaffel avatar Feb 05 '22 18:02 DampfWaffel

There is an unfinished code for this in #4584. Someone who is interested can continue.

bilektugrul avatar Feb 23 '22 08:02 bilektugrul

Skacket has this syntax because Skacket also has sign gui's, only usable for the sign change event and not the block directly, because I think this belongs in Khoryl, an add-on that deals with runtime erroring of entities and block data https://github.com/TheLimeGlass/Skacket/blob/master/src/main/java/me/limeglass/skacket/elements/expressions/ExprLines.java

Khoryl can get the glowing text state, editable and text of signs given the block type.

TheLimeGlass avatar Jun 16 '22 12:06 TheLimeGlass