This would be VERY helpful for minecraft commanding. This is how would it work:
Everything that you put inside these ( ` ) marks that will be raw JSON. So for example if you write this:
say `{"text":"Hello!"}`
Would be the same as:
say Hello!
But why is this so helpful? Well in this scenario it's not, BUT let me make another example:
We wan't to summon an entity what the user inputs into the path entity in storage example:test.
Before this interpretation there is no way to do this, but with the new raw JSON marks its a piece of cake:
summon `{"storage":"example:test","nbt":"entity"}`
If we set the path entity in storage example:test to "pig" (data modify storage example:test entity set value "pig"), then it will be the same as this:
summon pig
With this feature would open up so many possibilities. Please vote if you like this idea!
Some minor notes:
Backslash ( \ ) would work as any mark:
say this won't start a raw json string: \` `"this won't break the string : \`"`
Output:
[@] this won't start a raw json string: ` this won't break the string : `
There will be an error IF:
- The raw json is invalid [1]
- The raw json marks are placed wrongly [2]
- The command formatting itself is incorrect [3]
The third error type is unpredictable so if it appears in a mcfunction file, it will just skip the line, if the first two is the case (which is in fact predictable) as usual the whole file is unrunnable ingame.
Please sign in to leave a comment.
1 Comments