Welcome to Happy's Item Ager, an Add-On that allows you to add settings to age your items.
Happy's Item Ager offers a range of useful features to age your items.
HIA For Creators
This section is for Add-On/Pack Creators who would like to use HIA to age their items.
To use HIA for your own Add-On or Pack, HIA must be downloaded separately, and cannot be included in your Add-On or Pack itself. Do not include any files in this Add-On not stated in the steps below. Thank you.
Adding Aging To Your Items
To add food aging to your own Add-On, follow these steps.
Step 1.
First, you need to create a folder to house your item settings:
Step 2.
Next, you need to create an item in the folder. This will house your item aging information. The name of the file doesn't matter, as long as it's easy for you to understand, and does not match any other file name in the folder, it is okay.
{
"format_version": "1.20.80",
"minecraft:item": {
"description": {
"identifier": "hia:apple",
"menu_category": {
"category": "none",
"is_hidden_in_commands" : true
}
},
"components": {
"minecraft:tags" :
{
"tags" : [
"hia:itemName.minecraft:apple",
"hia:itemTo.minecraft:moss_block",
"hia:ageTime.1200000",
"hia:ageRange.1200",
"hia:ageName.§6Fresh§r§7",
"hia:ageName.§eNot So Fresh§r§7"
]
}
}
}
}
The file above holds the settings for the Apple. The identifier of the "item" requires the namespace to be "hia" to be found, and to allow for a load order.
More specifically, the settings are stored in the tags.
- "hia:itemName.minecraft:apple" stores what item this setting is for
- "hia:itemTo.minecraft:moss_block" stores the item this item will transform into upon aging
- "hia:ageTime.120000" stores the number in ticks it takes for the item to age
- "hia:ageRange.1200" stores the number in ticks that this item will group with. The default is 1200
- this stops items from quickly filling up the inventory due to slight age differences
- Both "hia:ageName.§6Fresh§r§7" and "hia:ageName.§eNot So Fresh§r§7" are used to clarify the names of the aging stages. This just divides the time in aging time equally among the age names. The default is
"§6Fresh§r§7","§eStale§r§7","§2Spoiling§r§7","§4Rotting§r§7"
Step 3.
Now that you have some settings added to your pack, just add Happy's Item Ager to the bottom of the load order and it should start aging your items!