Node Drawtypes: Add firelike
This commit is contained in:
parent
a9eb26b37e
commit
1103e86580
@ -39,7 +39,6 @@ the title of the sections, except in lower case.
|
|||||||
|
|
||||||
This article is not complete yet. The following drawtypes are missing:
|
This article is not complete yet. The following drawtypes are missing:
|
||||||
|
|
||||||
* Plantlike_Rooted
|
|
||||||
* Firelike
|
* Firelike
|
||||||
* Fencelike
|
* Fencelike
|
||||||
* Raillike
|
* Raillike
|
||||||
@ -430,13 +429,6 @@ minetest.register_node("default:ladder_wood", {
|
|||||||
|
|
||||||
tiles = {"default_ladder_wood.png"},
|
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",
|
|
||||||
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
|
|
||||||
-- Required: store the rotation in param2
|
-- Required: store the rotation in param2
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
|
|
||||||
@ -455,12 +447,10 @@ minetest.register_node("default:ladder_wood", {
|
|||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
|
|
||||||
Plantlike nodes draw their tiles in an X like pattern.
|
Plantlike nodes draw their tiles in an X like pattern.
|
||||||
|
|
||||||
{% highlight lua %}
|
{% highlight lua %}
|
||||||
minetest.register_node("default:papyrus", {
|
minetest.register_node("default:papyrus", {
|
||||||
description = "Papyrus",
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
|
||||||
tiles = {"default_papyrus.png"},
|
tiles = {"default_papyrus.png"},
|
||||||
@ -469,14 +459,35 @@ minetest.register_node("default:papyrus", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
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
|
{% endhighlight %}
|
||||||
inventory_image = "default_papyrus.png",
|
|
||||||
wield_image = "default_papyrus.png",
|
## Firelike
|
||||||
|
|
||||||
-- Let light and objects go through
|
Firelike is similar to plantlike, except that it is designed to "cling" to walls
|
||||||
paramtype = "light",
|
and ceilings.
|
||||||
sunlight_propagates = true,
|
|
||||||
walkable = false,
|
|
||||||
|
<figure>
|
||||||
|
<img src="{{ page.root }}/static/drawtype_firelike.png" alt="Firelike nodes">
|
||||||
|
<figcaption>
|
||||||
|
Firelike nodes
|
||||||
|
</figcaption>
|
||||||
|
</figure>
|
||||||
|
|
||||||
|
{% highlight lua %}
|
||||||
|
minetest.register_node("fire:basic_flame", {
|
||||||
|
drawtype = "firelike",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name = "fire_basic_flame_animated.png",
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
BIN
static/drawtype_firelike.png
Normal file
BIN
static/drawtype_firelike.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 157 KiB |
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 30 KiB |
Loading…
Reference in New Issue
Block a user