Chance Cubes

Chance Cubes

46M Downloads

HELP

pktuthan111 opened this issue ยท 19 comments

commented

how to install my custom reward ? Could you make a video about how to make a custom reward in mod chanceCubes.

commented

May I direct your attention to the wiki, it describes in detail how to create different kinds of custom rewards.

commented

i make my own custom reward but i don't know how to make it work

commented

you can only make custom rewards work by following the WIKI as linked above. if you are doing it any other way you will never get it to work.

commented

Custom reward JSON files are read from the config/ChanceCubes/CustomRewards/ directory, if that is what you are asking for.

commented

i try it but it not change the custom reward

commented

I'm not entirely sure what you're trying to do, we'll need more information about what you are trying to make and HOW you are trying to make it if we are to help you. If I may ask is English not your first language?

commented

i'm from Vietnam :3

commented

{
"Reward Name":
{
"chance": 0,
"Item":
[
{"item":{"id":"minecraft:stone_button", "damage":0,"Count":13,"tag":{"display":{"Name":"Renamed Item Display Name","Lore":["HAHAHA"]}}}, "delay":20}
],
"Message":
[
{"message":"Custom Reward!", "delay":5, "serverWide": false, "range": 25}
],
"Command":
[
{"command":"/give %player minecraft:painting 1 0 {display:{Name:"Wylds Bestest friend",Lore:["You know you love me, "]}}", "delay": 5}
],
"Entity":
[
{"entity":{"id":"Creeper"}, "delay":5}
],
"Experience":
[
{"experienceAmount":10, "numberOfOrbs":10, "delay":5}
],
"Potion":
[
{"potionid":16428,"duration":16428}
],
"Block":
[
{"XOffSet":-1,"YOffSet":1,"ZOffSet":2,"Block":"minecraft:planks:(metaData)", "Falling":true, "delay":0, "RelativeToPlayer":false}
],
"Schematic":
[
{"fileName":"house.ccs", "XOffSet":0, "YOffSet":0, "ZOffSet":0, "falling":true, "delay":3, "RelativeToPlayer":true, "IncludeAirBlocks": false}
],
"Sound":
[
{"sound":"creeper.primed", "volume":1.0, "pitch":1.0, "playAtPlayersLocation":true, "serverWide": false, "range":25, "delay": 5}
],
"Chest":
[
{"item":"minecraft:dirt", "chance":100},
{"item":"minecraft:stone", "chance":1},
{"item":"minecraft:gravel", "chance":4}
],
"Particle":
[
{"particle":"explode", "delay":0}
]
}
}

commented

but it didn't work

commented

You appear to be missing a reward name, without that it will be impossible to select and test properly and may not even load at all, I am not sure if that is a required field when ChanceCubes reads the file. I do not currently have a game loaded up to test, but also once you make any changes you must either restart your game or request ChanceCubes to reload its configurations by typing /ccubes reload in chat.

commented

No I take that back sorry, I hadn't seen the template in a long time and misunderstood one of the fields

commented

What do you mean by it doesn't work, does the creative pendant not accept "Reward Name" as a reward name? or does it do nothing when the block is activated?

commented

the reward not change

commented

I think it's too complicated for me because I'm only in 11th grade

commented

From what I can see you didn't make any changes to the template file. Are you trying to add a reward or modify one that is built into the mod?

Edit: I see one change and it's a change that will break the file, the quotation marks(") around Wylds Bestest friend and You know you love me, need to have backslashes (\) before them or they will confuse Chancecubes when it tries to read the file.

commented

yes
do i need to change anything in the chancecubes.cfg file

commented

Not to add rewards, just put your json file(make sure it ends with .json or it will not be detected) into the config/ChanceCubes/CustomRewards folder. The location of the config folder I cannot help you with as it depends on what launcher you are using.

Note that you can only add rewards, you can not modify existing ones beyond disabling them, which IS done in the cfg file.

commented

thank

commented

oh