I would like to change the settings of Chance Cubes. However, even after creating more than 10 JSON files as described above, only the topmost JSON file is being loaded and applied in the cubes. What could be the issue?
wldns0700 opened this issue · 6 comments
Minecraft Version:
1.19.2
Forge Version:
43.2.11
ChanceCubes Version:
ChanceCubes-1.19.2-5.0.2.475
{
"Item_Reward": {
"chance": 20.0,
"Item": [
{
"item": {
"id": "farmersdelight:vegetable_soup",
"damage": 0,
"Count": 3,
"tag": {
"display": {
"Name": "Renamed Item Display Name",
"Lore": ["야채스프를 드립니다."]
}
}
},
"delay": 20
}
]
}
}
I want to modify the settings of Chance Cubes. However, after creating over 10 JSON files as mentioned earlier, only the JSON file at the top is being loaded and applied in the cubes. What could be the problem?
21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file farmersdelightvegetable_soup.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file farmersdelightvegetable_soup.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file glass_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file glass_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file gold_ingot_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file gold_ingot_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file iron_ore_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file iron_ore_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file money_aaaaaa.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file money_aaaaaa.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file nether_quartz_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file nether_quartz_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file slime_ball_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file slime_ball_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file string_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file string_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file torch_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file torch_reward.json! Added 1 rewards
[21:13:05] [Server thread/INFO] [chancecubes/]: Loading custom rewards file wood_reward.json
[21:13:05] [Server thread/INFO] [chancecubes/]: Loaded custom rewards file wood_reward.json! Added 1 rewards
The wiki is hard to understand. Even if you give the spawn to the opponent spawn, you can write an example appropriately.
Approximately 10 items can be chained together and dropped from Chance Cubes with different odds
As the log shows, each file is loading in a reward.
Do each of your files' contents all start with {"Item_Reward": {
? If so, that's your issue, each reward has the same id of Item_Reward
. To fix this simply make each reward's ID different
ah! Then you use "Item_Reward" like a variable.
If reward is apple "apple" : {
Is that how it starts with ?
ah! Then you use "Item_Reward" like a variable. If reward is apple "apple" : { Is that how it starts with ?
Yes, what you had as "Item_Reward" is the Id/ name of the reward. How you and the game can reference to that specific reward.
Can the contents of the Great Chance Cube be changed?
In what capacity? Adding new rewards to it is a simple flag https://github.com/TheTurkeyDev/ChanceCubes/wiki/Reward-Specifications#giant-chance-cube-reward