{"id":22473178,"url":"https://github.com/bas080/habitat","last_synced_at":"2025-08-20T20:29:53.249Z","repository":{"id":4440376,"uuid":"5578683","full_name":"bas080/habitat","owner":"bas080","description":"adds function for modders to use for spawning for example plants and trees near certain nodes","archived":false,"fork":false,"pushed_at":"2013-02-27T21:04:03.000Z","size":136,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T20:12:21.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://forum.minetest.net/viewtopic.php?id=4612","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bas080.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-27T23:59:12.000Z","updated_at":"2014-05-23T16:52:43.000Z","dependencies_parsed_at":"2022-08-27T07:20:27.492Z","dependency_job_id":null,"html_url":"https://github.com/bas080/habitat","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/bas080%2Fhabitat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fhabitat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fhabitat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bas080%2Fhabitat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bas080","download_url":"https://codeload.github.com/bas080/habitat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245881021,"owners_count":20687654,"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-12-06T12:20:00.709Z","updated_at":"2025-03-27T16:26:27.666Z","avatar_url":"https://github.com/bas080.png","language":"Lua","readme":" __   __  _______  _______  ___   _______  _______  _______ \n|  | |  ||   _   ||  _    ||   | |       ||   _   ||       |\n|  |_|  ||  |_|  || |_|   ||   | |_     _||  |_|  ||_     _|\n|       ||       ||       ||   |   |   |  |       |  |   |  \n|       ||       ||  _   | |   |   |   |  |       |  |   |  \n|   _   ||   _   || |_|   ||   |   |   |  |   _   |  |   |  \n|__| |__||__| |__||_______||___|   |___|  |__| |__|  |___|  \n\nBY:             bas080\nDESCRIPTION:    Adds the function to spawn nodes near certain nodes and away from others on world generate\nVERSION:        0.5\nLICENCE:        WTFPL\nFORUM:          http://forum.minetest.net/viewtopic.php?id=4612\n\nInstructions\n\nhabitat:generate(node, surfaces, minp, maxp, height_min, height_max, spread, habitat_size, habitat_nodes, antitat_size, antitat_nodes)\n\n* height is the altitude between the node spawns\n* spawn near habitat nodes\n* avoids antitat nodes\n* spread determines how near they spawn next to eachother\n\nExample (from plants mod)\n\nhabitat:generate(\"plants:lavender_wild\", {\"default:dirt_with_grass\"}, minp, maxp, -10, 60, 4, 4, {\"default:sand\",})\n\nTODO\n\n1.1\n* Make node string argument nodes array that spawns random nodes in array\n\nChangelog\n\n1.0\n* Reduce amount of loops even more by changing surfaces array to surface string\n\n0.5\n* changed function definition (name)\n* Improved for loop. Less looping and node checking\n\n0.1\n* Spawn plants on generate\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Fhabitat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbas080%2Fhabitat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbas080%2Fhabitat/lists"}