-
-
Notifications
You must be signed in to change notification settings - Fork 113
Multi-Sided Sign Support #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Multi-Sided Sign Support #2796
Conversation
…nism. Added back-of-sign support to CopyBlock command
| else { | ||
| for (Component component : sign.lines()) { | ||
| output[i++] = PaperModule.stringifyComponent(component); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this probably could be ternary in the for-each statement, since the body is the same
| } | ||
| CoreUtilities.fixNewLinesToListSeparation(input); | ||
| if (input.size() > 4) { | ||
| mechanism.echoError("Sign can only hold four lines!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isnt this missing return statement?
| for (int i = 0; i < 4; i++) { | ||
| PaperAPITools.instance.setSignLine(sign, i, ""); | ||
| } | ||
| ListTag list = mechanism.valueAsType(ListTag.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required? sign_contents_back doesnt have it
Text on the back of signs was added in MC 1.20. This PR adds in the following:
ItemTag.sign_contents, it will only look at the sign contents for the front of the sign across versions. A line in the meta references the new property below for information about the back of signs.ItemTag.sign_contents_backfor MC 1.20+.LocationTag.sign_contents, it will only look at the sign contents for the front of the sign across versions. A line in the meta references the new tag and mechanism below for information about the back of signs.LocationTag.sign_contents_backfor MC 1.20+.copyblockcommand on MC 1.20+.