From Minetest Developer Wiki
(Redirected from drawtype)
|This page contains unofficial Lua API documentation and is likely to be outdated or wrong.
For the official and up-to-date documentation, refer to lua_api.txt found in your Minetest installation directory under
|This page has been proposed for deletion for the following reason: "Contains unofficial and potentially outdated, redundant and inconsistent Lua API information"
If you don't think that this page should be deleted, please explain why on the talk page.
|Name||Description||Needs light param||Used “tiles”||Examples|
|normal||A “normal”, opaque node||No||8||"default:stone"|
|allfaces||Transparent node with all its faces shown||Yes|
|allfaces_optional||Transparent node with all its faces shown if using
|glasslike||Glass-like node (faces between blocks are not shown, node is transparent)||No||8||"default:glass"|
|glasslike_framed_optional||Optional connected glass, can be disabled by client||No|
|flowingliquid||A flowing liquid||Suggested|
|plantlike||Two textured planes||Yes||1||"default:junglegrass"|
|plantlike_rooted||Two textured planes extruded out of a solid node.||Yes||1|
|raillike||Textured plane, automatically connects to nearby raillike nodes of the same type, has "normal", "curved", "crossing", "t-junction" looks and can be inclined, does not connect to other nodes with
|fencelike||Fence, connects to other nodes with
|firelike||Looks like Minecraft's fire||Yes||1||"fire:basic_flame"|
|nodebox||Lets the modder somehow create their own drawtypes||Yes||8||"stairs:stair_wood", "stairs:slab_wood"|
|mesh||If drawtype “mesh” is used, tiles should hold model materials' textures. Only static meshes are implemented. The server only accepts the following file formats for media: (.x, .b3d, .obj, .md2). For all model formats supported by Irrlicht itself, see Irrlicht engine documentation.||Yes|
Notes and references
- As is hardcoded in the source file server.ccp near line 2360 as of June 2019
- Irrlicht Features - Supported Media Formats and a more detailed description of how to import the supported 3D-formats into Irrlicht here
|This article is incomplete.
Please help expand this article to include more useful information.