跳到正文

HungerTweaker

作者:CoolSquid

Modify food and hunger-related properties with ZenScript (CraftTweaker).

收藏

介绍

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

HungerTweaker exposes the AppleCore API to CraftTweaker scripts, and can be used to modify a variety of food and hunger-related properties.

 

HungerTweaker consists of two parts. Firstly, it includes a simplified wrapper around the AppleCore API. This can be used to set a variety of default values, as well as modify the properties of food items. Secondly, it provides access to most of AppleCore’s events. This can be used to dynamically modify and react to changes in a player’s hunger, exhaustion, starvation, and regen.

 

The simplified wrapper is designed to be easy to use, and largely consists of static ZenMethods such as mods.hungertweaker.Hunger.setMaxHunger(20). It has access to no other context than the previous value of the property, which can be used in expressions, such as mods.hungertweaker.Hunger.setMaxHunger("x/2").

 

The event system functions largely like CraftTweaker’s own event system. Scripts can register event handler functions, which are invoked whenever the event occurs and have access to context, such as the IPlayer in question. As such, the event system can be used to produce far more advanced results than the simplified wrapper.

 

HungerTweaker attempts to apply its changes after all other mods. The simplified options are handled before the events, and event handlers may override the default values set by the simplified options.

 

For a more complete overview, visit the HungerTweaker wiki.

常见问题

HungerTweaker 支持哪些 Minecraft 版本?

HungerTweaker 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

HungerTweaker 怎么安装?

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

评论

登录后评论和评分

CoolSquid 的其他作品

查看全部 →