UltimateCustomGear-1.21.1-1.2.3-NeoForge
Curse Maven Snippet
What's new
- New item type
food— consumable items with custom nutrition, saturation and effects - Configurable
nutritionandsaturationvalues always_edible— allows eating even when the hunger bar is full (like golden apples)fast_food— item is consumed faster (like dried kelp)eat_duration— fine-grained control over consumption time in ticks (0 = instant, 200 = 10 seconds)on_eat_effects— list of effects applied on consumption, each witheffect,amplifier,duration(seconds) andprobability- Tooltip support via
TooltipHelper.addFoodEffectsTooltip()showing eat duration and all on-eat effects with duration and level - Ingredients from any installed mod are supported
ItemData.java— addednutrition,saturation,alwaysEdible,fastFood,eatDuration,onEatEffectsfields andFoodEffectDatainner classCustomFoodItem.java— new class extendingItemwithFoodPropertiesbuilt fromItemData; overridesgetUseDurationfor custom eat timing; delegates tooltip toTooltipHelperItemRegistry.java— detectstype = "food"and createsCustomFoodIteminstead ofCustomItemUniversalParser.java—case "item", "food"now handles both types in the same branchTooltipHelper.java— addedaddFoodEffectsTooltip()method reusing existinggetEffectName()andtoRoman()
- Fixed
/customgear reloadcommand using hardcoded"customgear"folder path instead ofCustomGearMod.MOD_ID— caused all textures to revert to the magenta/black placeholder after reload
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

