PixelBBS 我的世界像素论坛

标题: [1.14-1.20]NoMoreCooked - 为熟食添加保质期 [打印本页]

作者: 像素搬运菌    时间: 2024-3-18 23:12
标题: [1.14-1.20]NoMoreCooked - 为熟食添加保质期
本帖最后由 像素搬运菌 于 2024-3-18 23:13 编辑

什么是NoMoreCooked?

这是一个为食物⭐添加新机制的插件


简而言之,它为食物增加了一个过期系统,一个延长食物剩余寿命的冰箱,一个保存仍然好的食物的简单系统,让吃了过期食物的玩家生病

通过将此插件添加到您的服务器,您可以以原始方式改进您的服务器,增加沉浸感,增加挑战并让您的玩家更加了解食物浪费



支持的食物过程中会发生什么 吃健康肉和腐烂肉

冰箱

合成: 6x 铁块、1x 箱子、1x 铁门、1x 冰块

特征
  • 添加冰箱及其工艺品
  • 延长食物存放在冰箱中的保质期
  • 冰箱可配置有效期乘以 r
  • 冰箱里只能存放食物
  • 在烘焙食品和面包上添加保质期。(在将来的更新中将支持更多食物。
  • 自定义过期时间
  • 如果你吃了变质的食物,就会生病
  • 自定义应用于播放器的负面效果的类型和强度
  • 在工作台上 将煮熟的食物转换回生食
  • 使用冰块或雪块(或两者兼而有之)自定义生食的制作
  • 可配置的自动检查器,用于实时更新物品传说中的食物和文本状态。
  • 选择在物品传说中显示到期日期和/或剩余时间。

权限

nmc.command.check : 访问检查命令
nmc.command.set : 访问设置命令
nmc.command.info : 访问 info 命令
nmc.command.help : 访问帮助命令




命令 /nmc 检查:强制检查主手中的项目的过期状态。
/nmc set <edible|spoiled>:将主手中物品的状态设置为“可食用”或“已变质”。
/nmc info:在主手牌中显示项目的到期信息。
/nmc help:显示插件命令的帮助信息。


安装


  • 下载 jar
  • 将 jar 放在 plugins 文件夹中
  • 启动服务器
  • 修改config.yml并保存
  • 重新启动服务器
Config.yml
#####################################################################
#                                                                   #
#                   No More Cooked by Zandrax                       #
#                                                                   #
#####################################################################

# DO NOT TOUCH
config-version: 2

# Choose your language (Available languages can be found in the lang folder; just type the two-letter code found between "lang_" and ".yml")
# You can create your own file and use the corresponding two-letter code.
lang: "us"

# Enable crafting of raw foods from cooked foods
food-conservation-enabled: true # Enables preservation of food

# Crafting recipes for converting cooked foods back to raw
requires-snow-for-transformation: false # Requires snow to revert foods to raw state
requires-ice-for-transformation: true # Requires ice to revert foods to raw state

# Fridge mechanics and settings
enable-fridge-mechanic: true # Activate fridge mechanics (if deactivated, the fridge will not work)
fridge-expiration-multiplier: 5 # Define the fridge multiplier. Multiplies the remaining expiry time when added to the fridge and divides when removed from the fridge.
fridge-instant-lore-update: true # Instantly update the lore of the items when they are added and removed from the fridge. if false, lore will be updated when the fridge will be open or when auto-checker runs.
other-foods-in-fridge-enabled: true  # Allows other foods to be stored in the refrigerator. If false, only cooked and raw meat, fish and vegetables can be stored in the fridge.

# Food expiration duration (in seconds)
expiration-time-seconds: 3600 # Time before cooked food expires

# Show expiration time in item lore
show-expiration-time: true # Displays remaining time until expiration

# This option is useful when real-time updating is not feasible,
# e.g., when the item is sold through a plugin that doesn't use InventoryOpenEvent.
# Enable this and disable "show-expiration-time" to resolve potential issues.
show-expiration-date: true # Displays the expiration date

# Date and time format in item lore
date-format: "dd/MM/yyyy" # Preferred date format
hour-format: "HH:mm:ss" # Preferred time format

# Intensity of negative effects (0 = Disable the effect)
effects:
  hunger: 2
  poison: 0
  weakness: 2
  blindness: 1
  miningfatigue: 1
  wither: 0
  slowness: 3
  nausea: 3

# Duration of negative effects in seconds
effects-duration: 60

# Interval for automatic expiration date checks (in seconds)
auto-checker-interval: 60

# Experimental and currently LESS efficient than the classic lore update
placeholder-support: false # Enable placeholder support
关于当前版本

该插件目前正在开发中,虽然它被设计为在服务器上使用,但您可能会遇到各种错误或插件无法按预期工作。

如果您遇到任何问题,请告诉我。我将尽我所能提供快速有效的解决方案。

请参阅下面的“错误报告和功能请求”部分。

错误报告或功能请求


点击此链接: https://github.com/The-Zandrax/NoMoreCooked/issues



(, 下载次数: 7)








欢迎光临 PixelBBS 我的世界像素论坛 (https://www.pixelbbs.cn/) Powered by Discuz! X3.4