diff --git a/en/chapters/node_drawtypes.md b/en/chapters/node_drawtypes.md index d15bea2..36d3ec6 100644 --- a/en/chapters/node_drawtypes.md +++ b/en/chapters/node_drawtypes.md @@ -35,11 +35,11 @@ the title of the sections, except in lower case. * [Nodebox](#nodebox) * [Mesh](#mesh) * [Signlike](#signlike) +* [Plantlike](#plantlike) This article is not complete yet. The following drawtypes are missing: -* Plantlike - * Plantlike_Rooted +* Plantlike_Rooted * Firelike * Fencelike * Raillike @@ -429,6 +429,8 @@ minetest.register_node("default:ladder_wood", { drawtype = "signlike", tiles = {"default_ladder_wood.png"}, + + -- Show the ladder flat in the inventory, rather than with a 3D effect inventory_image = "default_ladder_wood.png", wield_image = "default_ladder_wood.png", @@ -443,3 +445,38 @@ minetest.register_node("default:ladder_wood", { }, }) {% endhighlight %} + +## Plantlike + +
+ Plantlike Drawtype +
+ Plantlike Drawtype +
+
+ + +Plantlike nodes draw their tiles in an X like pattern. + +{% highlight lua %} +minetest.register_node("default:papyrus", { + description = "Papyrus", + drawtype = "plantlike", + + tiles = {"default_papyrus.png"}, + + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + + -- Show the papyrus flat in the inventory, rather than with a 3D effect + inventory_image = "default_papyrus.png", + wield_image = "default_papyrus.png", + + -- Let light and objects go through + paramtype = "light", + sunlight_propagates = true, + walkable = false, +}) +{% endhighlight %} diff --git a/static/drawtype_plantlike.png b/static/drawtype_plantlike.png new file mode 100644 index 0000000..1cf0bbb Binary files /dev/null and b/static/drawtype_plantlike.png differ