From 97dafe87cebd27daad93569d1d8cfb6272e10f2d Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 9 Jun 2015 17:59:08 +0200 Subject: [PATCH] Got back lily_pads - Solves #88 --- minetestforfun_game/mods/flowers/init.lua | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/minetestforfun_game/mods/flowers/init.lua b/minetestforfun_game/mods/flowers/init.lua index dd0147cc..3ddd57a9 100755 --- a/minetestforfun_game/mods/flowers/init.lua +++ b/minetestforfun_game/mods/flowers/init.lua @@ -57,6 +57,30 @@ for _,item in pairs(flowers.datas) do add_simple_flower(unpack(item)) end +minetest.register_node("flowers:lily_pad", { + description = "Lily Pad", + drawtype = "nodebox", + tiles = { "flowers_lily_pad.png" }, + inventory_image = "flowers_lily_pad.png", + wield_image = "flowers_lily_pad.png", + wield_scale = {x = 1, y = 1, z = 0.001}, + is_ground_content = true, + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + groups = {snappy = 3, flammable = 2, flower = 1, flora = 1}, + sounds = default.node_sound_leaves_defaults(), + node_box = { + type = "fixed", + fixed = {-0.5, -0.45, -0.5, 0.5, -0.4375, 0.5}, + }, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, + }, +}) + minetest.register_abm({ nodenames = {"group:flora"}, neighbors = {"default:dirt_with_grass", "default:desert_sand"},