{"id":28476575,"url":"https://github.com/grabsky/open_food_mechanics","last_synced_at":"2025-07-02T16:31:45.516Z","repository":{"id":61708852,"uuid":"553836043","full_name":"Grabsky/open_food_mechanics","owner":"Grabsky","description":"Starbound mod that prevents food from rotting and makes it (along with other consumables) stackable up to 20.","archived":false,"fork":false,"pushed_at":"2022-10-29T14:51:22.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T15:07:21.005Z","etag":null,"topics":["starbound","starbound-mods"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Grabsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-18T21:11:06.000Z","updated_at":"2022-10-19T17:18:45.000Z","dependencies_parsed_at":"2023-01-21T00:17:22.056Z","dependency_job_id":null,"html_url":"https://github.com/Grabsky/open_food_mechanics","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Grabsky/open_food_mechanics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grabsky%2Fopen_food_mechanics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grabsky%2Fopen_food_mechanics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grabsky%2Fopen_food_mechanics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grabsky%2Fopen_food_mechanics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Grabsky","download_url":"https://codeload.github.com/Grabsky/open_food_mechanics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grabsky%2Fopen_food_mechanics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263175498,"owners_count":23425584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["starbound","starbound-mods"],"created_at":"2025-06-07T15:07:16.083Z","updated_at":"2025-07-02T16:31:45.492Z","avatar_url":"https://github.com/Grabsky.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Food Mechanics\nStarbound mod that prevents food from rotting and makes it \u003csup\u003e(along with other consumables)\u003c/sup\u003e stackable up to **20**.  \n\nPull requests with support for other mods are welcome. Read [Technical Details](#technical-details) to get an idea how to do that semi-automatically.\n\n\u003cbr\u003e\n\n## Installation\n\u003e Always backup `path/to/Starbound/storage` directory before (un)installing (any) mod(s).  \n\nDownload latest version [here](https://github.com/Grabsky/open_food_mechanics/releases/latest) and place it inside `/path/to/Starbound/mods`.  \n\n**Removing the mod will bring stack sizes back to normal. Extra items will be lost so make sure to unstack them before proceeding.**\n\n\u003cbr\u003e\n\n## Compatibility\n\u003e No incompatibilities found, make sure to open an issue if you find one.  \n\n**Compatible**: NeoVanAlemania's [Improved Food Descriptions](https://community.playstarbound.com/resources/improved-food-descriptions.3743/)  \n**Compatible**: Niffe's [More Canned Food](https://steamcommunity.com/sharedfiles/filedetails/?id=2835491179)  \n**Compatible**: Pixelflame's [Project Ancient Cosmos](https://steamcommunity.com/sharedfiles/filedetails/?id=2644341899)\n\n\u003cbr\u003e\n\n## Technical Details\nPatch files were generated automatically using a few (linux) commands:  \n\n1. **Head to the game directory:**\n\n    ```bash\n    $ cd /path/to/Starbound/\n    ```\n\n2. **Create** `_template.consumable.patch` **file with following contents:**\n\n    ```json\n    [\n        [\n            { \"op\": \"test\", \"path\": \"/maxStack\" },\n            { \"op\": \"replace\", \"path\": \"/maxStack\", \"value\": 20 }\n        ],\n        [\n            { \"op\": \"test\", \"path\": \"/maxStack\", \"inverse\": true },\n            { \"op\": \"add\", \"path\": \"/maxStack\", \"value\": 20 }\n        ]\n    ]\n    ```\n\n3. **Unpack Starbound assets:**\n\n    ```bash\n    $ ./linux/asset_unpacker \"./assets/packed.pak\" \"./_starbound_assets\"\n    ```\n\n4. **Create** `_starbound_consumables` **directory:**\n    ```bash\n    $ mkdir -p \"./_starbound_consumables\"\n    ```\n\n5. **Copy all** `*.consumable` **files to** `starbound_consumables` **directory:**\n\n    ```bash\n    $ find \"./_starbound_assets\" -name \"*.consumable\" -print -exec cp --parents \"{}\" \"./_starbound_consumables\" \\;\n    ```\n\n6. **Rename all** `*.consumable` **files to** `*.consumable.patch`**:**\n\n    ```bash\n    $ find \"./_starbound_consumables\" -name \"*.consumable\" -exec mv \"{}\" \"{}.patch\" \\;\n    ```\n\n7. **Override all** `*.consumable.patch` **files with contents of** `./_template.consumable.patch` **file:**\n\n    ```bash\n    $ find \"./_starbound_consumables\" -name \"*.consumable.patch\" -exec cp \"./_template.consumable.patch\" \"{}\" \\;\n    ```\n    \n8. (Optional) **Copy files to mod repository and clean up workspace:**\n\n    ```bash\n    $ cp -Ri \"./_starbound_consumables/_starbound_assets/items\" \"/path/to/open_food_mechanics/\"\n    $ rm -R \"./_starbound_assets/\" \"./_starbound_consumables/\" \"./_template.consumable.patch\"\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrabsky%2Fopen_food_mechanics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrabsky%2Fopen_food_mechanics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrabsky%2Fopen_food_mechanics/lists"}