Comments (1)
Thanks for the report, it seems you have removed all fill items, which will cause the following crash on my test instance.
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388)
at de.markusbordihn.dailyrewards.rewards.Rewards.calculateRewardItemsForMonth(Rewards.java:116)
I will release a fix for this, which will use minecraft:dirt as fallback in this specific case, otherwise the config looks fine for me.
You should define at least 1-2 fill items just in the case of an leap year or any other edge case were an reward item is missing.
Most of the mod items should be supported out of the box.
Every item which is not compatible or if the required mod is not installed will be automatically skipped like:
[21Sep2022 22:39:24.041] [Server thread/INFO] [Daily Rewards/]: Calculate Reward items for month 9 with 30 days ...
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item torchmaster:megatorch in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item gobber2:gobber2_sword in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item usefulbackpacks:backpack_enderchest in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item naturalist:reddy_bear in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item alexmobs:spawn_egg_capuchin_monkey in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:angelheart_vial in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:whoopee_cushion in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item alexmobs:banana in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item hammers:enhanced_netherite_hammer in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:helium_flamingo in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item supplementaries:bomb in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:eternal_steak in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item mob_catcher:diamond_mob_catcher in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item gobber2:gobber2_sword_nether in the registry!
[21Sep2022 22:39:24.042] [Server thread/INFO] [Daily Rewards/]: Found 17 missing days without any items, will try to use fill items ...
from bos-daily-rewards.
Related Issues (17)
- [1.18.2] Dedicated server crash - TownCraft modpack - t de.markusbordihn.dailyrewards.player.PlayerRewardManager.handlePlayerLoggedOutEvent HOT 2
- Daily Rewards kicks players HOT 1
- Static non-random monthly reward without having to edit nbt of each month HOT 5
- Permissions Code HOT 1
- Can't edit Config using "In-Game Config Editor Mods" HOT 4
- Crash and Config Not Applying HOT 8
- Is it Possible to Set Rewards to Loot Tables? HOT 4
- Config Monthly Rewards Keeps Resetting HOT 1
- More than 31 days of rewards HOT 2
- Rewards not updating in claim UI. HOT 1
- [Suggestion] A way to give different rewards to certain players HOT 3
- [1.16.5]Claim all the rewards whit Quark HOT 1
- Command block not work, any compatibility? HOT 1
- Quark compatibility issues HOT 4
- Many Modded Items Not Supported. HOT 1
- Server is Not Giving Rewards to Players. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bos-daily-rewards.