跳到正文

Spice of Life: Delicacy Journey

作者:Polaris_Light

An addon for Spice of Life: Carrot Edition that grants configurable item rewards based on the foods a player has tasted, and add KubeJS events support of SoL:CE.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Banner

Spice of Life: Delicacy Journey

An addon for Spice of Life: Carrot Edition that grants configurable item rewards based on the foods a player has tasted, and add KubeJS events support of SoL:CE.

Configuration

# Reward entries in the format threshold|namespace:item|count.
rewards = [
    "5|minecraft:apple|2",
    "10|minecraft:golden_carrot|1",
    "20|minecraft:enchanted_golden_apple|1"
]

# Send a chat message to the player when this addon grants a reward.
announceRewards = true

# Log invalid reward entries when the configuration is loaded.
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!')
  }
})

常见问题

Spice of Life: Delicacy Journey 支持哪些 Minecraft 版本?

Spice of Life: Delicacy Journey 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Spice of Life: Delicacy Journey 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Polaris_Light 的其他作品

查看全部 →