{"id":15141012,"url":"https://github.com/ogelgames/vizlib","last_synced_at":"2025-10-23T18:30:31.316Z","repository":{"id":171867995,"uuid":"603706261","full_name":"OgelGames/vizlib","owner":"OgelGames","description":"Minetest visulization library","archived":false,"fork":false,"pushed_at":"2023-06-28T05:17:28.000Z","size":1456,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T20:06:16.413Z","etag":null,"topics":["library","minetest","minetest-mod"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OgelGames.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-19T10:41:01.000Z","updated_at":"2024-05-15T09:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0676897-954b-4d4e-a092-d52a4baa5337","html_url":"https://github.com/OgelGames/vizlib","commit_stats":null,"previous_names":["ogelgames/vizlib"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OgelGames%2Fvizlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OgelGames%2Fvizlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OgelGames%2Fvizlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OgelGames%2Fvizlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OgelGames","download_url":"https://codeload.github.com/OgelGames/vizlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869167,"owners_count":19379280,"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":["library","minetest","minetest-mod"],"created_at":"2024-09-26T08:43:22.715Z","updated_at":"2025-10-23T18:30:26.027Z","avatar_url":"https://github.com/OgelGames.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minetest Visulization Library [vizlib]\n\n[![luacheck](https://github.com/OgelGames/vizlib/workflows/luacheck/badge.svg)](https://github.com/OgelGames/vizlib/actions)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md)\n[![Minetest](https://img.shields.io/badge/Minetest-5.0+-blue.svg)](https://www.minetest.net)\n[![ContentDB](https://content.minetest.net/packages/OgelGames/vizlib/shields/downloads/)](https://content.minetest.net/packages/OgelGames/vizlib/)\n \n## Overview\n\nThis mod is a code library for visualizing basic shapes in-game. You can draw lines, circles, cubes, spheres and more.\n\nIt's ideal for showing the working area or range of functional nodes, and a better alternative to using entities.\n\n![Overview](overview.gif?raw=true \"Overview\") \n\n## Usage\n\nSimply add `vizlib` to your mod's dependencies, and call any of the API functions from your code.\n\nSee [API.md](API.md) for detailed documentation.\n\n## Examples\n\nDrawing a line between two points.\n\n```lua\nlocal pos1 = vector.new(-2, 0, -2)\nlocal pos2 = vector.new(2, 2, 2)\nvizlib.draw_line(pos1, pos2)\n```\n\nDrawing a blue sphere for the player Sam and removing it after 60 seconds.\n\n```lua\nlocal pos = vector.new(0, 5, 0)\nlocal options = {\n\tcolor = \"#0000ff\",\n\tplayer = \"Sam\",\n\tinfinite = true,\n}\nlocal shape = vizlib.draw_sphere(pos, 3, options)\nminetest.after(60, vizlib.erase_shape, shape)\n```\n\nShowing a working range when punching a node with an empty hand.\n\n```lua\non_punch = function(pos, _, player)\n\tif not player or player:get_wielded_item():get_name() ~= \"\" then\n\t\t-- Only show range when using an empty hand\n\t\treturn\n\tend\n\tlocal radius = minetest.get_meta(pos):get_int(\"radius\") + 0.5\n\tvizlib.draw_cube(pos, radius, {player = player})\nend\n```\n\n## Installation\n\nDownload the [master branch](https://github.com/OgelGames/vizlib/archive/master.zip) or the [latest release](https://github.com/OgelGames/vizlib/releases), and follow [the usual installation steps](https://wiki.minetest.net/Installing_Mods).\n\nAlternatively, you can download and install the mod from [ContentDB](https://content.minetest.net/packages/OgelGames/vizlib) or the online content tab in Minetest.\n\n## License\n\nAll code is licensed under the [MIT License](LICENSE).\n\n`vizlib_particle.png` is licensed as [CC0](https://creativecommons.org/publicdomain/zero/1.0/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogelgames%2Fvizlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogelgames%2Fvizlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogelgames%2Fvizlib/lists"}