foods.yml

Sample Food Item: Here's an example of how you might define a food item in a YAML file for CoreExtensions:

# foods.yml
foods:
  apple:
    name: "Test Apple" # Item name (not included in lang file)
    namespace: "coreextensions" # Namespace
    id: "apple" # Item ID
    hunger: 4 # Hunger value (integer, int type)
    saturationModifier: 2.4 # Saturation modifier (double/float type)
    meat: false # Is meat (can be fed to wolves) (boolean type)

In this example, the food item named "apple" is defined with properties including its name, namespace, ID, hunger value, saturation modifier, and whether it's considered meat. The hunger property determines the amount of hunger points the food item restores when eaten, and the saturationModifier property affects the saturation value provided by the food. The meat property indicates whether the food is considered meat and can be fed to wolves.

This example showcases how you can use YAML to define different properties for a food item in a CoreExtensions data pack. Remember that you can customize the values according to your specific needs and balance requirements.

Last updated