I am stitching the commands from http://www.summon-helper.net/ and https://ezekielelin.com/give/ to make a Boss that can be generated by clicking a sign and drops a button that can be placed on stone (the person will be in gamemode 2)
Reason: for "" inside "" inside "", it should be escaped as \\\"\\\", the reason is that if you only use \\", the " would not be escaped, so there would be illegal token after it.
Escape rule: \ -> \\, " -> \"
Just follow this rule, escape them layers in layers and you will be fine.
as you probably guessed I'm making an adventure map, and given your help I'd be happy to give you a copy of the world, if not for you to play and enjoy, than for you to find all the bugs I probably have. XD
Btw i am trying to make a 'compiler' that can convert something like code to commands, i want to see if you are interested and what kinds of feature do map makers needs. If you are interested in it, i will start to translate those logic into english(i haven't started yet because it is a relatively large project and i am quite busy now :(, i've just started to think about the logic and the syntax, and wrote them in a documentation in chinese lol)
That thing can convert expressions into scoreboard operations(of cause, just + - * / % =, and comparison such as equal or larger than/smaller to etc.).
Also, that can convert something like if statement into chunks of commands, here is the script i've written for checking the logic: https://github.com/pca006132/command-block-simulator (syntax there is some of the syntax of the compiler project)
There are a lot of planned features, and the main difference between this and other developing 'compiler' is that, for this project, commands would not be changed into something like functions, and i will only implement extra commands/expression pattern, so command block users can use that easily.
For example(This is a if block),
if:
testfor pca
or
testfor pcb
then:
say 1
if:
testfor @a[r=5]
then:
say 2
else:
say 3
else:
if:
testfor pcc
then:
say 4
else:
say 5
I hope that those syntax are self explanatory, and users can learn them in a short period of time.
If you are interested in this project(don't need to write the code, but just discuss about features and syntax), you can email to me.
here are the commands I am using
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Wither\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon WitherBoss ~ ~1 ~ {Equipment:[{id:\\"wooden_button\\",{CanPlaceOn:[\\"minecraft:stone\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Blaze\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Blaze ~ ~1 ~ {CustomName:\\"THE BOSS\\",Equipment:[{id:\\"wooden_button\\",{CanPlaceOn:[\\"minecraft:stone\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f],Attributes:[{Name:generic.maxHealth,Base:60},{Name:generic.attackDamage,Base:5},{Name:generic.followRange,Base:100}]}\"}}"},display:{Name:"Custom Sign"}}
and
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Guardian\",\"color\":\"aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Guardian ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:100},{Name:generic.attackDamage,Base:6},{Name:generic.maxHealth,Base:50}],Equipment:[{id:\\"wooden_button\\",{CanPlaceOn:[\\"minecraft:stone\\"]},damage:0,Count:1},{},{},{},{}],CustomName:\\"Guardian of The Treasure\\",DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
I am using online generators for this... http://www.summon-helper.net/ https://ezekielelin.com/give/ and https://minecraftcommand.science/command-sign-generator
I am stitching the commands from http://www.summon-helper.net/ and https://ezekielelin.com/give/ to make a Boss that can be generated by clicking a sign and drops a button that can be placed on stone (the person will be in gamemode 2)
thanks for you help and lack of negative comments
Reason: for "" inside "" inside "", it should be escaped as \\\"\\\", the reason is that if you only use \\", the " would not be escaped, so there would be illegal token after it.
Escape rule: \ -> \\, " -> \"
Just follow this rule, escape them layers in layers and you will be fine.
Commands:
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Wither\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon WitherBoss ~ ~1 ~ {Equipment:[{id:\\\"wooden_button\\\",{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Blaze\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Blaze ~ ~1 ~ {CustomName:\\\"THE BOSS\\\",Equipment:[{id:\\\"wooden_button\\\",{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f],Attributes:[{Name:generic.maxHealth,Base:60},{Name:generic.attackDamage,Base:5},{Name:generic.followRange,Base:100}]}\"}}"},display:{Name:"Custom Sign"}}
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Guardian\",\"color\":\"aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Guardian ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:100},{Name:generic.attackDamage,Base:6},{Name:generic.maxHealth,Base:50}],Equipment:[{id:\\\"wooden_button\\\",{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],CustomName:\\\"Guardian of The Treasure\\\",DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/2703820-command-pcb-command-editor-ooc-generator-for-mc-1
pcb, a command editor and OOC generator
Thanks!
As I said I had no clue how this worked so, thank you for making it clear and obvious!
- X( snowman
ok, another problem >:(
I am clicking the signs, but they won't spawn anything, difficulty is normal.
I put the summon command in a command block and it gives me this error:
[13:37:54] Data tag parsing failed: Unable to locate name/value separator for string: {CanPlaceOn:["minecraft:stone"]},damage:0,Count:1
I'm assuming this error will be the same for the other two commands. this is for the blaze /summon
Sorry, i forgot to check your NBTs.
Your NBT Tags are wrong.
You need to know that the tag inside '{}' in /give commands are the tags inside 'tag' tag in item's tags.(lol)
For example, {id:"wooden_button",tags:{CanPlaceOn:["minecraft:stone"]},damage:0,Count:1}
Commands:
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Wither\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon WitherBoss ~ ~1 ~ {Equipment:[{id:\\\"wooden_button\\\",tag:{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Blaze\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Blaze ~ ~1 ~ {CustomName:\\\"THE BOSS\\\",Equipment:[{id:\\\"wooden_button\\\",tag:{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],DropChances:[1f,0f,0f,0f,0f],Attributes:[{Name:generic.maxHealth,Base:60},{Name:generic.attackDamage,Base:5},{Name:generic.followRange,Base:100}]}\"}}"},display:{Name:"Custom Sign"}}
/give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Guardian\",\"color\":\"aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon Guardian ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:100},{Name:generic.attackDamage,Base:6},{Name:generic.maxHealth,Base:50}],Equipment:[{id:\\\"wooden_button\\\",tag:{CanPlaceOn:[\\\"minecraft:stone\\\"]},damage:0,Count:1},{},{},{},{}],CustomName:\\\"Guardian of The Treasure\\\",DropChances:[1f,0f,0f,0f,0f]}\"}}"},display:{Name:"Custom Sign"}}
These should be OK
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/2703820-command-pcb-command-editor-ooc-generator-for-mc-1
pcb, a command editor and OOC generator
100 thanks for making everything clear again!
thank you so much for taking the time to do this!
X( snowman
as you probably guessed I'm making an adventure map, and given your help I'd be happy to give you a copy of the world, if not for you to play and enjoy, than for you to find all the bugs I probably have. XD
X(snowman
RRRRGGGGGG
they aren't dropping the button, do you by chance know why?
>:(
I would be happy to play the map:D
Btw i am trying to make a 'compiler' that can convert something like code to commands, i want to see if you are interested and what kinds of feature do map makers needs. If you are interested in it, i will start to translate those logic into english(i haven't started yet because it is a relatively large project and i am quite busy now :(, i've just started to think about the logic and the syntax, and wrote them in a documentation in chinese lol)
That thing can convert expressions into scoreboard operations(of cause, just + - * / % =, and comparison such as equal or larger than/smaller to etc.).
Also, that can convert something like if statement into chunks of commands, here is the script i've written for checking the logic: https://github.com/pca006132/command-block-simulator (syntax there is some of the syntax of the compiler project)
There are a lot of planned features, and the main difference between this and other developing 'compiler' is that, for this project, commands would not be changed into something like functions, and i will only implement extra commands/expression pattern, so command block users can use that easily.
For example(This is a if block),
I hope that those syntax are self explanatory, and users can learn them in a short period of time.
If you are interested in this project(don't need to write the code, but just discuss about features and syntax), you can email to me.
Email: [email protected]
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/2703820-command-pcb-command-editor-ooc-generator-for-mc-1
pcb, a command editor and OOC generator
What is the version you use?
For 1.8, this should be ok.
Buf for 1.9+, equipment and dropchances are changed to HandItems(and ArmorItems) and HandDropChances(and ArmorDropChances).
You can check those NBT tags here: http://minecraft.gamepedia.com/Chunk_format#Mobs
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/2703820-command-pcb-command-editor-ooc-generator-for-mc-1
pcb, a command editor and OOC generator
I am using 1.10
how I guess I could send you the file via e-mail... right?