这是一个允许你为自定义每日奖励的模组。
默认奖励:
第 1 天- 面包 *3
第 2 天- 木板 *16
第 3 天- 苹果 *5
第 4 天- 煤炭 *8
第 5 天- 铁剑*1
第 6 天- 一套皮革护甲
第 7 天- 钻石 *1
自 r1.0-4 起,不再提供默认奖励,且需要 Crafttweaker。
如何自定义
自 r1.0-4 起,该模组开始使用 Zenscript,因此需要 Crafttweaker。
语法:
mods.dailyreward.add(String str, Object... obj);
str 用于决定何时给予奖励,obj 是奖励内容,支持物品栈(itemstack)和命令。
类似于旧版方式:
例如:
mods.dailyreward.add("%day == 1", <minecraft:stone>, <minecraft:dirt>, "/kill &p");
当玩家在第 1 天登录时,将获得一个石头方块和一个泥土方块,并被杀死。
%day==1 玩家登录的第 1 天
%day%10==1 第 1 天,之后每 10 天一次
%day>3 登录超过 3 天后
%d==1 每月的第 1 天
%m==10 && %d==1 每年的 10 月 1 日
r1.0-4 之前
打开 dailyreward.cfg 或先使用配置 GUI
默认设置:
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
>
提供的参数:
%day - 指玩家已登录的天数
%cont - 指玩家连续登录的天数
%posx %posy %posz - 指玩家的位置坐标
%y %m %d - 指玩家登录时的年、月、日
%p - 指玩家的名称
语法格式为:布尔条件#第 1 个奖励#第 2 个奖励 ...等
布尔条件可写为如下形式:
%day==1 玩家登录的第 1 天
%day%10==1 第 1 天,之后每 10 天一次
%day>3 登录超过 3 天后
%d==1 每月的第 1 天
%m==10 && %d==1 每年的 10 月 1 日
奖励可写为如下形式:
stack==modid:name
stack==modid:name,metadata
stack==modid:name,metadata,amount
stack==modid:name,metadata,min,max
command==/[insert command]
示例:
%day==1#stack==minecraft:apple#stack==minecraft:iron_sword#command==/kill %p
当玩家首次登录时,给予一个苹果和一个铁剑,然后将其杀死。
我们的社区
试试我的另一个模组:ExtraBotany,这是 Botania 的一个附加组件。
命令:
/drcheck - 显示签到详细信息
/drexecute [insert day] [insert cont] - 用于测试
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧