diff options
-rw-r--r-- | mapgen_v7n.lua | 12 | ||||
-rw-r--r-- | plantlife.lua | 28 | ||||
-rw-r--r-- | textures/ethereal_fire_flower.png | bin | 0 -> 235 bytes |
3 files changed, 39 insertions, 1 deletions
diff --git a/mapgen_v7n.lua b/mapgen_v7n.lua index 75e3056..2d5c0ca 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -758,7 +758,17 @@ minetest.register_decoration({ sidelen = 80,
fill_ratio = 0.20,
biomes = {"fiery"},
- decoration = "ethereal:dry_shrub",
+ decoration = {"ethereal:dry_shrub"},
+})
+
+-- fire flower
+minetest.register_decoration({
+ deco_type = "simple",
+ place_on = "ethereal:fiery_dirt",
+ sidelen = 80,
+ fill_ratio = 0.02,
+ biomes = {"fiery"},
+ decoration = {"ethereal:fire_flower"},
})
-- snowy grass
diff --git a/plantlife.lua b/plantlife.lua index 44e5281..5a444fe 100644 --- a/plantlife.lua +++ b/plantlife.lua @@ -1,3 +1,31 @@ +-- Fire Flower +minetest.register_node("ethereal:fire_flower", { + description = "Fire Flower", + drawtype = "plantlike", + tiles = { "ethereal_fire_flower.png" }, + inventory_image = "ethereal_fire_flower.png", + wield_image = "ethereal_fire_flower.png", + paramtype = "light", + light_source = 5, + sunlight_propagates = true, + walkable = false, + damage_per_second = 2, + groups = {snappy = 1, oddly_breakable_by_hand = 3, igniter = 2}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, + }, + on_punch = function(pos, node, puncher) + --local item = puncher:get_wielded_item() + --local itemname = item:get_name() + puncher:punch(puncher, 1.0, { + full_punch_interval = 1.0, + damage_groups = {fleshy = 2} + }, nil) + end, +}) + -- Fern (boston) minetest.register_node("ethereal:fern", { description = "Fern", diff --git a/textures/ethereal_fire_flower.png b/textures/ethereal_fire_flower.png Binary files differnew file mode 100644 index 0000000..929af74 --- /dev/null +++ b/textures/ethereal_fire_flower.png |