CraftTweaker - yeelp/Scaling-Feast GitHub Wiki

A short form reference page.

You can access ScalingFeast stats with CraftTweaker using the sfStats ZenGetter on an IPlayer

What can you do with it?

You can access (ZenGetters):

  • unmodifiedMaxHunger: max hunger before modifications
  • maxHunger: max hunger after modifications
  • bloatedHungerAmount: Bloated hunger the player has

You can alter (ZenSetters):

  • unmodifiedMaxHunger
  • bloatedHungerAmount

Some additional ZenMethods:

  • getModifier(String): returns an SFModifier corresponding to the String id for a player's max hunger, if it exists. May be null.
  • setModifier(String, SFModifier) sets a modifier with the String as it's id
  • setModifier(String, float, byte) a way to set a modifier without needing an SFModifier. The byte represents the operation type and MUST be either 0, 1, or 2. Anything else throws an exception. the float is the amount applied in the operation.

An SFModifier has the following fields:

  • op: the operation. A byte that is either 0, 1 or 2. (Has ZenGetter)
  • value: the value, as a float. (Has ZenGetter and ZenSetter)