Download HungerTweaker — Minecraft Mods — MetaMods

HungerTweaker

Active

Downloads

0

Last update

6 years ago
Client
Food

HungerTweaker

The HungerTweaker modification provides access to AppleCore API via CraftTweaker scripts, allowing to customize various aspects of the hunger system and food characteristics in Minecraft.

Main Features

This modification consists of two main components. The first is a simplified wrapper for working with the AppleCore API, which allows setting basic values and modifying properties of food items. The second component provides access to AppleCore events, enabling dynamic reaction to changes in player's hunger, exhaustion, and health regeneration indicators.

Usage

The simplified system features straightforward syntax using static ZenMethods. For example, to change the maximum hunger level, you can use the command mods.hungertweaker.Hunger.setMaxHunger(20). In calculations, you can use the previous parameter value, as shown in this example: mods.hungertweaker.Hunger.setMaxHunger("x/2").

Event System

The event system operates similarly to the equivalent system in CraftTweaker. Scripts can register handler functions that are called when corresponding events occur and have access to context, including player information (IPlayer). This system opens up possibilities for creating complex hunger parameter modification logic.

Application Order

The modification applies changes after all other mods. First, the parameters of the simplified system are processed, then events are handled, with event handlers being able to override values set through the simplified system.

Project members
CoolSquid

CoolSquid

Created: 23 Sep 2019

ID: 71585