Skip to content

grapereader/minetest-api-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Minetest API Types

This project adds type definitions for the Minetest Modding API

Requires an IDE with EmmyLua support (or compatible).

Setup

For the most part, it should be sufficient to clone this repository or copy defns.lua into a project workspace.

This project was written using lua-language-server on VSCode. Some additional settings are required to make this work. In VSCode settings, add the following:

{
	"Lua.diagnostics.globals": ["minetest", "vector", "dump", "dump2"]
}

Contributing

PRs are welcome. While most of the API is covered, there are areas with incomplete support and the minetest API has many edge cases. The more we can document and restrict with type definitions, the safer and less error prone mod development becomes.

Priorities:

  • Documentation comments for most functions / fields
  • Bug fixes
  • Correct types for remaining "any" placeholders
  • README updates / setup instructions for other IDEs

About

EmmyLua type definitions for Minetest API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages