Minetest:Drawtype

From Rabbi Blog

Jump to: navigation, search

Drawtypes

List of drawtype as defined in scriptapi.cpp with examples on the right. Reference images uses Drawtype example.png as the texture.

Name Effect Screenshot
airlike
Airlike.jpg
glasslike Wraps six sides
Error creating thumbnail: convert: Empty input file `/var/www/html/rabbibob.com/images/1/11/Glasslike.jpg' @ error/jpeg.c/JPEGErrorHandler/316.
convert: no images defined `/var/www/html/rabbibob.com/images/temp/transform_eb89aeff0e66-1.jpg' @ error/convert.c/ConvertImageCommand/3044.

Error code: 1
torchlike Centers within node
Torchlike.jpg
signlike Places to outer node wall
Error creating thumbnail: convert: Empty input file `/var/www/html/rabbibob.com/images/1/12/Signlike.jpg' @ error/jpeg.c/JPEGErrorHandler/316.
convert: no images defined `/var/www/html/rabbibob.com/images/temp/transform_5ce1015be220-1.jpg' @ error/convert.c/ConvertImageCommand/3044.

Error code: 1
plantlike Places along x,y axis from center (doubles image)
Plantlike.jpg
fencelike Wraps around the center axis
Fencelike.jpg
raillike Places on the node's bottom
Raillike.jpg

Usage

drawtype = "signlike",

Needs Updated Info

The following elements were listed in scriptapi.cpp and their usage is unknown to me at this time (untested):

  • {NDT_NORMAL, "normal"},
  • {NDT_LIQUID, "liquid"},
  • {NDT_FLOWINGLIQUID, "flowingliquid"},
  • {NDT_ALLFACES, "allfaces"},
  • {NDT_ALLFACES_OPTIONAL, "allfaces_optional"},
  • {0, NULL},