Skip to content

Commit

Permalink
Make grass, flowers, fire, crops and torchs floodable.
Browse files Browse the repository at this point in the history
  • Loading branch information
red-001 committed Feb 7, 2016
1 parent a4e144e commit 8b60336
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -934,6 +934,7 @@ minetest.register_node("default:junglegrass", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
Expand All @@ -955,6 +956,7 @@ minetest.register_node("default:grass_1", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
Expand Down Expand Up @@ -983,6 +985,7 @@ for i = 2, 5 do
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
drop = "default:grass_1",
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory = 1},
Expand All @@ -1006,6 +1009,7 @@ minetest.register_node("default:dry_grass_1", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
Expand Down Expand Up @@ -1034,6 +1038,7 @@ for i = 2, 5 do
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory=1},
drop = "default:dry_grass_1",
Expand Down Expand Up @@ -1374,6 +1379,7 @@ minetest.register_node("default:torch", {
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
floodable = true,
light_source = default.LIGHT_MAX - 1,
selection_box = {
type = "wallmounted",
Expand Down
1 change: 1 addition & 0 deletions mods/farming/api.lua
Expand Up @@ -250,6 +250,7 @@ farming.register_plant = function(name, def)
paramtype = "light",
walkable = false,
buildable_to = true,
floodable = true,
drop = drop,
selection_box = {
type = "fixed",
Expand Down
2 changes: 2 additions & 0 deletions mods/fire/init.lua
Expand Up @@ -26,6 +26,7 @@ minetest.register_node("fire:basic_flame", {
light_source = 14,
walkable = false,
buildable_to = true,
floodable = true,
sunlight_propagates = true,
damage_per_second = 4,
groups = {igniter = 2, dig_immediate = 3},
Expand Down Expand Up @@ -62,6 +63,7 @@ minetest.register_node("fire:permanent_flame", {
light_source = 14,
walkable = false,
buildable_to = true,
floodable = true,
sunlight_propagates = true,
damage_per_second = 4,
groups = {igniter = 2, dig_immediate = 3},
Expand Down
4 changes: 4 additions & 0 deletions mods/flowers/init.lua
Expand Up @@ -47,6 +47,7 @@ local function add_simple_flower(name, desc, box, f_groups)
paramtype = "light",
walkable = false,
buildable_to = true,
floodable = true,
stack_max = 99,
groups = f_groups,
sounds = default.node_sound_leaves_defaults(),
Expand Down Expand Up @@ -134,6 +135,7 @@ minetest.register_node("flowers:mushroom_red", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 3, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(-5),
Expand All @@ -153,6 +155,7 @@ minetest.register_node("flowers:mushroom_brown", {
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
groups = {snappy = 3, flammable = 3, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
on_use = minetest.item_eat(1),
Expand Down Expand Up @@ -217,6 +220,7 @@ minetest.register_node("flowers:waterlily", {
wield_image = "flowers_waterlily.png",
liquids_pointable = true,
walkable = false,
floodable = true,
buildable_to = true,
groups = {snappy = 3, flower = 1},
sounds = default.node_sound_leaves_defaults(),
Expand Down
1 change: 1 addition & 0 deletions mods/xpanes/init.lua
Expand Up @@ -86,6 +86,7 @@ local pane_def_fields = {
pointable = false,
diggable = false,
buildable_to = true,
floodable = true,
air_equivalent = true,
}

Expand Down

0 comments on commit 8b60336

Please sign in to comment.