{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/2291","labels_url":"https://api.github.com/repos/minetest/minetest/issues/2291/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2291/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/2291/events","html_url":"https://github.com/minetest/minetest/issues/2291","id":57392078,"number":2291,"title":"Engine API for Mobs","user":{"login":"C1ffisme","id":9893266,"avatar_url":"https://avatars.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},"labels":[{"url":"https://api.github.com/repos/minetest/minetest/labels/@%20Script%20API","name":"@ Script API","color":"009800"},{"url":"https://api.github.com/repos/minetest/minetest/labels/@%20Server%20/%20Client%20/%20Env.","name":"@ Server / Client / Env.","color":"009800"},{"url":"https://api.github.com/repos/minetest/minetest/labels/feature%20request","name":"feature request","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-02-11T23:08:04Z","updated_at":"2015-08-05T12:51:00Z","closed_at":null,"body":"You've seen the mods. Just download one and see the bugs or lag. If we could have the engine running the behavior of mobs, I think that they would go faster. We could make a function like minetest.register_mob(), then all you would have to do for an animals mod is use the (hopefully many) features in the function, and make models and textures (and maybe some sounds). I know many laggiful server owners will run in terror at the word \"mobs\", but I think that minetest can't say it's for old computers anymore. It's just too filled with features. If we wanna leave a version for older computers, someone better fork minetest before this gets added (if it does). "},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/127986944","html_url":"https://github.com/minetest/minetest/issues/2291#issuecomment-127986944","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2291","id":127986944,"user":{"login":"4aiman","id":2913210,"avatar_url":"https://avatars.githubusercontent.com/u/2913210?v=3","gravatar_id":"","url":"https://api.github.com/users/4aiman","html_url":"https://github.com/4aiman","followers_url":"https://api.github.com/users/4aiman/followers","following_url":"https://api.github.com/users/4aiman/following{/other_user}","gists_url":"https://api.github.com/users/4aiman/gists{/gist_id}","starred_url":"https://api.github.com/users/4aiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4aiman/subscriptions","organizations_url":"https://api.github.com/users/4aiman/orgs","repos_url":"https://api.github.com/users/4aiman/repos","events_url":"https://api.github.com/users/4aiman/events{/privacy}","received_events_url":"https://api.github.com/users/4aiman/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T12:51:00Z","updated_at":"2015-08-05T12:51:00Z","body":"Movement patterns may be added through Lua with C++ speed if there would be some algorithm we can pass as a table and there will be a \"decipher\" which will interpret the passed table as a patterns for every case: idle, running away, following smth/someone, getting punched, attacking, jumping, swimming, flying, etc\r\n\r\nThose tables may even contain several concurrent patterns chosen pseudo-randomly (for client prediction to work seamless).\r\n\r\n\r\nIt would be also wise to add the ability to override C++ methods through Lua, but that is smth we already have. Can it be optimized by itself? (E.g. not because network proto became faster)."}}