{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest_game/issues/1592","repository_url":"https://api.github.com/repos/minetest/minetest_game","labels_url":"https://api.github.com/repos/minetest/minetest_game/issues/1592/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest_game/issues/1592/comments","events_url":"https://api.github.com/repos/minetest/minetest_game/issues/1592/events","html_url":"https://github.com/minetest/minetest_game/pull/1592","id":210658733,"number":1592,"title":"Add workbench and nametag to rename items","user":{"login":"octacian","id":15371866,"avatar_url":"https://avatars0.githubusercontent.com/u/15371866?v=3","gravatar_id":"","url":"https://api.github.com/users/octacian","html_url":"https://github.com/octacian","followers_url":"https://api.github.com/users/octacian/followers","following_url":"https://api.github.com/users/octacian/following{/other_user}","gists_url":"https://api.github.com/users/octacian/gists{/gist_id}","starred_url":"https://api.github.com/users/octacian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octacian/subscriptions","organizations_url":"https://api.github.com/users/octacian/orgs","repos_url":"https://api.github.com/users/octacian/repos","events_url":"https://api.github.com/users/octacian/events{/privacy}","received_events_url":"https://api.github.com/users/octacian/received_events","type":"User","site_admin":false},"labels":[{"id":550029286,"url":"https://api.github.com/repos/minetest/minetest_game/labels/Feature","name":"Feature","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":58,"created_at":"2017-02-28T01:20:52Z","updated_at":"2017-04-23T17:51:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/minetest/minetest_game/pulls/1592","html_url":"https://github.com/minetest/minetest_game/pull/1592","diff_url":"https://github.com/minetest/minetest_game/pull/1592.diff","patch_url":"https://github.com/minetest/minetest_game/pull/1592.patch"},"body":"![Screenshot](http://i.imgur.com/Kf07POyg.png)\r\n\r\n![Formspec Screenshot](https://cloud.githubusercontent.com/assets/15371866/23389894/acf991fe-fd1f-11e6-8466-a02ac9a7b84a.png)\r\nNote: Formspec is the same size as the bookshelf formspec.\r\n\r\nThis PR introduces a new Workbench node and nametag item. These two items combined allow any item, node, or tool's description to be changed using the new key-based ItemStack meta.\r\n\r\nThe Workbench has a fairly simple formspec, with three slots. The first slot in the input item that you want to rename (can be anything but a nametag, max 1 item), the second slot contains only nametags, and the third and final slow is the output item given after clicking \"Rename.\" If any of the items are missing or there is no room in the output slot when rename is clicked, an error message is displayed above the text field. When the proper item is inserted, the error message is automatically removed.\r\n\r\n**Recipes:**\r\n```lua\r\n-- Workbench (gives 1 workbench)\r\n{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}\r\n{'group:wood', '', 'group:wood'}\r\n{'group:wood', '', 'group:wood'}\r\n\r\n-- Nametag (gives 4 nametags)\r\n{ \"default:copper_ingot\" }\r\n```\r\n\r\nThe workbench item itself is rather complex with nearly 200 lines of code. With that in mind, there are likely many areas where things could be improved. Considering the complexity, it might even be better to move at least the workbench to a new file (not unlike the furnace), which I am open to do if requested."},"comment":{"url":"https://api.github.com/repos/minetest/minetest_game/issues/comments/296466745","html_url":"https://github.com/minetest/minetest_game/pull/1592#issuecomment-296466745","issue_url":"https://api.github.com/repos/minetest/minetest_game/issues/1592","id":296466745,"user":{"login":"C1ffisme","id":9893266,"avatar_url":"https://avatars1.githubusercontent.com/u/9893266?v=3","gravatar_id":"","url":"https://api.github.com/users/C1ffisme","html_url":"https://github.com/C1ffisme","followers_url":"https://api.github.com/users/C1ffisme/followers","following_url":"https://api.github.com/users/C1ffisme/following{/other_user}","gists_url":"https://api.github.com/users/C1ffisme/gists{/gist_id}","starred_url":"https://api.github.com/users/C1ffisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C1ffisme/subscriptions","organizations_url":"https://api.github.com/users/C1ffisme/orgs","repos_url":"https://api.github.com/users/C1ffisme/repos","events_url":"https://api.github.com/users/C1ffisme/events{/privacy}","received_events_url":"https://api.github.com/users/C1ffisme/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T17:51:01Z","updated_at":"2017-04-23T17:51:01Z","body":"@XtremeHacker True."}}
{"actor":{"display_login":"C1ffisme"}}