{"id":19042969,"url":"https://github.com/thepython10110/portability","last_synced_at":"2026-05-09T06:30:21.538Z","repository":{"id":148309805,"uuid":"620030862","full_name":"ThePython10110/Portability","owner":"ThePython10110","description":"A mod that adds portable things to MineClone (crafting table, backpacks, etc.)","archived":false,"fork":false,"pushed_at":"2024-01-14T00:02:02.000Z","size":3765,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T07:45:34.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThePython10110.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-27T22:26:58.000Z","updated_at":"2023-03-30T17:48:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"81eff841-e5ff-4b23-a01e-39a46c0d1d69","html_url":"https://github.com/ThePython10110/Portability","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThePython10110%2FPortability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThePython10110%2FPortability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThePython10110%2FPortability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThePython10110%2FPortability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThePython10110","download_url":"https://codeload.github.com/ThePython10110/Portability/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100564,"owners_count":19747689,"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":[],"created_at":"2024-11-08T22:39:40.919Z","updated_at":"2026-05-09T06:30:21.394Z","avatar_url":"https://github.com/ThePython10110.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Portability\nA mod that adds portable things to MineClone (crafting table, ender chest, enchanting table)\n[GitHub repo](https://github.com/thepython10110/portability)\n[Forum post](https://forum.minetest.net/viewtopic.php?f=9\u0026t=29330)\n[ContentDB](https://content.minetest.net/thepython/portability)\n\nI plan to add these items:\n- [x] Portable Crafting Table\n- [x] Portable Ender Chest (see warning below)\n- [x] Portable Enchanting Table (Upgradable by crafting with bookshelves, downgradable by crafting as well)\n\nI was originally going to add things like portable furnaces, portable anvils, things like that... but after looking at the code for a backpack mod, I decided I don't know enough about Minetest (yet) to deal with detached inventories.  I also considered adding a teleporter, then realized that the `personal_log` mod had MineClone support.\n\n## IMPORTANT NOTE\nMineClone checks whether you're near an ender chest every time you try to put things into one. This means that *normally*, portable ender chests will not let you insert/remove items unless there's an ender chest nearby. The only way to fix that is to go into MineClone's code and add a line. In your Minetest directory, open `games/mineclone2/mods/ITEMS/mcl_chests/init.lua` in a text editor. Around line 1060 (as of MineClone 0.82.0), there should be code that looks like this (you can also use the find tool and search for \"`register_allow`\"):\n```lua\nminetest.register_allow_player_inventory_action(function(player, action, inv, info)\n\tif inv:get_location().type == \"player\" and (\n\t\t   action == \"move\" and (info.from_list == \"enderchest\" or info.to_list == \"enderchest\")\n\t\tor action == \"put\"  and  info.listname  == \"enderchest\"\n\t\tor action == \"take\" and  info.listname  == \"enderchest\"\n\t) then\n\t\tlocal def = player:get_wielded_item():get_definition()\n\n\t\tif not minetest.find_node_near(player:get_pos(), def and def.range or ItemStack():get_definition().range, \"mcl_chests:ender_chest_small\", true) then\n\t\t\treturn 0\n\t\tend\n\tend\nend)\n```\nThis is the code that checks for an ender chest near the player. Add the following line where the blank line is:\n```lua\nif player:get_wielded_item():get_name() == \"portability:ender_chest\" then return end\n```\nThis makes it so that if the player is holding a portable ender chest, it will skip that check. This will *not* affect anything else, and even if the mod is disabled or deleted, it won't make anything fail.\n\n![Crafting Table Recipe](screenshots/crafting_table_recipe.png)\n![Ender Chest Recipe](screenshots/ender_chest_recipe.png)\n![Portable Enchanting Table](screenshots/enchanting_table.png)\n![Comparison](screenshots/comparison.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepython10110%2Fportability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepython10110%2Fportability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepython10110%2Fportability/lists"}