
生活调味料:美食征程
Spice of Life: Carrot Edition的附属模组,根据玩家品尝过的食物授予可配置的物品奖励,并为SoL:CE添加KubeJS事件支持。

生活调味料:珍馐之旅
这是生活调味料:胡萝卜版的附属模组,会根据玩家品尝过的食物种类授予可配置的物品奖励,并为SoL:CE添加KubeJS事件支持。
配置
# 奖励条目格式为 阈值|命名空间:物品|数量。
rewards = [
"5|minecraft:apple|2",
"10|minecraft:golden_carrot|1",
"20|minecraft:enchanted_golden_apple|1"
]
# 当此附属模组授予奖励时,向玩家发送聊天消息。
announceRewards = true
# 加载配置时,记录无效的奖励条目。
logInvalidEntries = true
KubeJS
SoLDJEvents.foodVarietyChanged(event => {
const player = event.player
const foodId = `${event.foodId}`
const previousCount = event.previousCount
const newCount = event.newCount
if (event.newCount >= 30 && foodId === 'minecraft:golden_carrot') {
player.give('minecraft:diamond')
player.tell('You have tasted 30 different foods and eaten a golden carrot! Here is a diamond as a reward!')
}
})
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。