{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/3962","repository_url":"https://api.github.com/repos/minetest/minetest","labels_url":"https://api.github.com/repos/minetest/minetest/issues/3962/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/3962/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/3962/events","html_url":"https://github.com/minetest/minetest/pull/3962","id":145766812,"number":3962,"title":"Additional hooks for inventory manipulations callbacks.","user":{"login":"Foghrye4","id":6910858,"avatar_url":"https://avatars.githubusercontent.com/u/6910858?v=3","gravatar_id":"","url":"https://api.github.com/users/Foghrye4","html_url":"https://github.com/Foghrye4","followers_url":"https://api.github.com/users/Foghrye4/followers","following_url":"https://api.github.com/users/Foghrye4/following{/other_user}","gists_url":"https://api.github.com/users/Foghrye4/gists{/gist_id}","starred_url":"https://api.github.com/users/Foghrye4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foghrye4/subscriptions","organizations_url":"https://api.github.com/users/Foghrye4/orgs","repos_url":"https://api.github.com/users/Foghrye4/repos","events_url":"https://api.github.com/users/Foghrye4/events{/privacy}","received_events_url":"https://api.github.com/users/Foghrye4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2016-04-04T18:28:55Z","updated_at":"2016-04-19T17:47:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/minetest/minetest/pulls/3962","html_url":"https://github.com/minetest/minetest/pull/3962","diff_url":"https://github.com/minetest/minetest/pull/3962.diff","patch_url":"https://github.com/minetest/minetest/pull/3962.patch"},"body":"With three new callbacks (on inventory itemstack add, move and drop) modders will be able to trace inventory state at any moment without need to iterate thru all players inventories. This way we can make, for example, overweight inventory effects."},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/212038342","html_url":"https://github.com/minetest/minetest/pull/3962#issuecomment-212038342","issue_url":"https://api.github.com/repos/minetest/minetest/issues/3962","id":212038342,"user":{"login":"Foghrye4","id":6910858,"avatar_url":"https://avatars.githubusercontent.com/u/6910858?v=3","gravatar_id":"","url":"https://api.github.com/users/Foghrye4","html_url":"https://github.com/Foghrye4","followers_url":"https://api.github.com/users/Foghrye4/followers","following_url":"https://api.github.com/users/Foghrye4/following{/other_user}","gists_url":"https://api.github.com/users/Foghrye4/gists{/gist_id}","starred_url":"https://api.github.com/users/Foghrye4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foghrye4/subscriptions","organizations_url":"https://api.github.com/users/Foghrye4/orgs","repos_url":"https://api.github.com/users/Foghrye4/repos","events_url":"https://api.github.com/users/Foghrye4/events{/privacy}","received_events_url":"https://api.github.com/users/Foghrye4/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T17:47:11Z","updated_at":"2016-04-19T17:47:11Z","body":"@rubenwardy here is a realisation of your idea. I will change some things (will remove Player parameter from ScriptApiPlayer functions and InvRef from Lua call, will update lua_api.txt).\r\nIt works perfectly fine with all three types of inventory: players, nodemeta and detached.\r\n\r\nI would like to see your opinion and opinion of others members."}}