I Can't Get It To Work
redstonerblast opened this issue ยท 4 comments
I have the full set up for a command reward: https://pastebin.com/em2xZMn6
But Whenever In Game I Use The Selector Pendant Using RedsSword or redset_sword it says invalid name,
Help Me What Am I Doing Wrong?
When you start up the game, check the console for any errors related to chance cubes and your reward and make sure it's actually being loaded
Found This so Now What do I do?
05:13:59 | game | [11:13:59] [main/INFO] [chancecubes]: Loading custom rewards file RedsSword.json |
---|---|---|
05:13:59 | game | [11:13:59] [main/ERROR] [chancecubes]: Unable to parse the file RedsSword.json. Skipping file loading. |
05:13:59 | game | [11:13:59] [main/ERROR] [chancecubes]: Parse Error: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 5 path $.redset_sword.chance |
Ahhhh, 2 Issues. 1, you are missing "Message":
before your message reward part. 2, you are missing the trailing quotation mark on your command to close it all out before the comma. Try this { "redset_sword": { "chance": 100, "Messsage": [{ "message": "You've Gained The Mighty Red's Sword", "delay": 5, "serverWide": false, "range": 25 }], "Command": [{ "command": "/give %player fp:sword_retium 1 0 {AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:5,Operation:0,UUIDLeast:721840,UUIDMost:535852,Slot:\"mainhand\"},{AttributeName:\"generic.movementSpeed\",Name:\"generic.movementSpeed\",Amount:0.2,Operation:0,UUIDLeast:700933,UUIDMost:46463,Slot:\"mainhand\"},{AttributeName:\"generic.attackDamage\",Name:\"generic.attackDamage\",Amount:14,Operation:0,UUIDLeast:920673,UUIDMost:408843,Slot:\"mainhand\"}],display:{Name:\"Reds Sword\",Lore:[\"Just One Part Of Red's Set\"]}}", "delay": 20 }] } }