Custom Daily Reward
Customize unique daily rewards for players
This modification opens up broad possibilities for customizing the system of daily incentives in your game. You can fully personalize the reward system depending on the day, date, or other conditions of the player entering the world.
Modern configuration system (versions r1.0-4 and above)
Requirements: For the mod to work, CraftTweaker is required, as it uses the ZenScript system.
Main configuration syntax:
mods.dailyreward.add(String str, Object... obj);
Parameter str determines the conditions for receiving the reward, and obj contains the rewards themselves - items or commands.
Usage example:
mods.dailyreward.add("%day == 1", <minecraft:stone>, <minecraft:dirt>, "/kill &p");
After the first login, the player will receive a stone block, a dirt block, and be instantly killed.
Available reward conditions:
First day of the player's first login Every first login every ten days Every first day of the month Every October 1st (other dates can be configured similarly)
Available variables: login day (counting from the first), continuous visits days in a row, player's current coordinates, year/month/day of login, player's nickname.
Legacy configuration system (versions before r1.0-4)
Previously, configuration was done through the dailyreward.cfg file or graphical configuration interface with the following format:
S:dailyreward.customization <
%day==1#stack==minecraft:bread,0,3
%day==2#stack==minecraft:planks,0,16
%day==3#stack==minecraft:apple,0,5
%day==4#stack==minecraft:coal,0,8
%day==5#stack==minecraft:iron_sword
%day==6#stack==minecraft:leather_helmet#stack==minecraft:leather_chestplate#stack==minecraft:leather_leggings#stack==minecraft:leather_boots
%day==7#stack==minecraft:diamond
>
The syntax worked as a logical condition and a list of rewards separated by hashtags in each line. Rewards followed the following assignment format:
The most important difference from the new version is considered the mandatory renaming of material rewards with stack= before item identifiers.
Additionally, convenient parsing of some functionality extensions is provided - to the minimum and maximum of rounded values of item groups. An exemplary array of parameters on the question of fortune attempts functioning.
Available commands
Execute without interleaving sequence according to general stage-conditions conducted.
Test the system with executed constructs of external debug pointer arbitrariness. Selected by decrypted/marked: