6

Can individual sites add features to the question asking procedure? If yes, could Gaming SE add a way to detect NBT questions in Minecraft Bedrock Edition and then ask the user whether How do you add NBT tags to commands in Minecraft Pocket/Bedrock Edition? already fixes their issue?

There is one of these questions every few days and the answer is "you can't do that" almost every single time. The site usually suggests that in the closing dialogue, but it still requires manual effort by 5 people with sufficient privileges every single time. These questions occur because people find commands online, copy-paste them into their game and get an error message.

Detecting them with reasonable accuracy is pretty simple:

  • Either…
  • … and this Regex finds at least one result (within one line):
    • (?:\@.\[.*nbt\=|clear|data|execute|fill|give|loot|replaceitem|scoreboard|setblock|summon).*\{.*\}
      This essentially just checks for something like "@e[type=cow,nbt=" or one of the commands that has NBT in them (or /scoreboard, because that used to have an NBT component until 1.12), followed by {, then more stuff, then }.
| |

You must log in to answer this question.

Browse other questions tagged .