Raw JSON marks in commands
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:
Would be the same as:
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:
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:
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 : \`"`
[@] 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 
- The raw json marks are placed wrongly 
- The command formatting itself is incorrect 
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.