
Custom Daily Reward
Активный0.0
Установок
Последнее обновление
This is a mod that enables you to customize daily rewards to players.
Default Rewards:
1st Day- Bread *3
2nd Day- Planks *16
3rd Day- Apple *5
4th Day- Coal *8
5th Day- Iron Sword*1
6th Day- A set of Leather Armors
7th Day- Diamond *1
Since r1.0-4, no default rewards and crafttweaker is required.
How to Customize
Since r1.0-4, it begins to use Zenscript so Crafttweaker is required.
Syntax:
mods.dailyreward.add(String str, Object... obj);
str to decide when to give the reward, and obj is the reward, supporting itemstack and command
similar to the old way
For example:
mods.dailyreward.add("%day == 1", <minecraft:stone>, <minecraft:dirt>, "/kill &p");
when player login in the first day, he will be awarded a stone block and a dirt block, and get killed.
%day==1 The first day player logged in %day%10==1 The first day and then for every ten days %day>3 having logged in for more than 3 days %d==1 every 1st day of the month %m==10 && %d==1 Oct.1st every year
Before r1.0-4
open dailyreward.cfg or use Config Gui first
Default:
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 >
Parameter provided:
%day - refer to how many days player has logged in
%cont - refer to how many days player has logged in continuely
%posx %posy %posz - refer to player's position
%y %m %d - refer to the year, the month, the day of month when player logged in
%p - refer to player's name
The Syntax is : boolean#1st reward#2nd reward ...etc
boolean can be written as followed:
%day==1 The first day player logged in %day%10==1 The first day and then for every ten days %day>3 having logged in for more than 3 days %d==1 every 1st day of the month %m==10 && %d==1 Oct.1st every year
reward can be written as followed:
stack==modid:name stack==modid:name,metadata stack==modid:name,metadata,amount stack==modid:name,metadata,min,max command==/[insert command]
An Example:
%day==1#stack==minecraft:apple#stack==minecraft:iron_sword#command==/kill %p
When player first logged in, give him an apple and a iron sword and then kill him
Our Media
Try my another mod: ExtraBotany, a Botania Addon
Commands:
/drcheck - show check-in detailed information
/drexecute [insert day] [insert cont] - for testing