Skip to content

Conversation

@MC-Samuel
Copy link
Contributor

Text on the back of signs was added in MC 1.20. This PR adds in the following:

  • Modernizes 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.
  • Adds ItemTag.sign_contents_back for MC 1.20+.
  • Modernizes 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.
  • Adds LocationTag.sign_contents_back for MC 1.20+.
  • Adds ability to copy the contents on the back of signs with the copyblock command on MC 1.20+.

else {
for (Component component : sign.lines()) {
output[i++] = PaperModule.stringifyComponent(component);
}
Copy link
Contributor

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!");
Copy link
Contributor

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);
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants