TFC Origins compat
Compatibility between TerraFirmaCraft and Origins
This mod provides full compatibility between TerraFirmaCraft and Origins modifications, adding special abilities that perfectly combine with the mechanics of both mods.
New Abilities
The mod introduces two main abilities:
tfcorigins:modify_tfc_food - works similarly to the standard Modify Food ability, but adapted for the TFC nutrition system. Allows configuring food parameters through special modifiers:
- water_modifier - water modifier
- grain_modifier - grain modifier
- fruit_modifier - fruit modifier
- vegetable_modifier - vegetable modifier
- protien_modifier - protein modifier
- dairy_modifier - dairy modifier
All these parameters work similarly to the base food_modifier. Also available is the "ignore_rotten" field for ignoring rotten food (currently the replace_stack field is not functioning).
tfcorigins:dehydrate - completely replicates the mechanics of the base Origins ability, but applies to the thirst indicator instead of fatigue.
Entity Conditions
Added three conditions for checking the environment:
tfcorigins:rainfall_condition - rainfall level check
tfcorigins:current_temperature_condition - current temperature check
tfcorigins:average_temperature_condition - average temperature check
All conditions use Float comparison, similar to health checking in Origins.
Additional Functions
tfcorigins:is_rotten - item condition that returns true if food is rotten. When used with the "origins:prevent_item_use" ability, the player will perform the eating animation but never complete using the item.
Also available are two entity actions:
tfcorigins:tfc_feed and tfcorigins:add_nutrients - work similarly to base Origins actions, taking specific fields and numerical values to apply effects when activating the action.