Chance Cubes

Chance Cubes

46M Downloads

Problem with one of my custom reward files

scalda opened this issue ยท 2 comments

commented

Hi,

I am trying to make a custom reward cube and I have got other files working no problem but this one is really giving me the runaround and I can't work out why.

Custom reward json contents
Log output from a reload command

the summon command i am using works fine within a command block no problem, it's just whenever i put it in this cube file it fails the json.

Any help would be great.

scalda.
edit: here is another one I have come across that won't work
code

Edit: Also how do i make a cube summon more than a single mob??

commented

For any text in double quotes inside a string, you should escape the characters with backslash (\), like this:

"This is an \"example\" string."

I've fixed the rewards for you, let me know if they still don't work.
Reward 1
Reward 2

Lastly, if you want to summon multiple mobs at once, it's quite simple. just add a new summon command on a new line, make sure to put commas after each objects except for the last one though. For example:

"Command":
    [
      {"command":"/summon Creeper ~ ~ ~"},
      {"command":"/summon Creeper ~ ~ ~"},
      {"command":"/summon Creeper ~ ~ ~"}
    ]
commented

Thank you very much for the help that was perfect. will now close