diff options
author | PilzAdam <adam-k@outlook.com> | 2012-12-01 13:32:32 +0100 |
---|---|---|
committer | PilzAdam <adam-k@outlook.com> | 2012-12-01 13:32:32 +0100 |
commit | fa76057e7f6811a8e7388a70d6fde7af61aa0bee (patch) | |
tree | 4e24bbecd4951a116d97405225149f14ac8c92d9 /games/minimal/mods | |
parent | bb454b184656735b51fea17a0cb6276514b1c8c1 (diff) | |
download | minetest-fa76057e7f6811a8e7388a70d6fde7af61aa0bee.tar.gz minetest-fa76057e7f6811a8e7388a70d6fde7af61aa0bee.tar.bz2 minetest-fa76057e7f6811a8e7388a70d6fde7af61aa0bee.zip |
Add the group attached_node
Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable.
Diffstat (limited to 'games/minimal/mods')
-rw-r--r-- | games/minimal/mods/default/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 5f4d8e063..9900b98a5 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -837,7 +837,7 @@ minetest.register_node("default:junglegrass", { wield_image = "default_junglegrass.png", paramtype = "light", walkable = false, - groups = {snappy=3}, + groups = {snappy=3,attached_node=1}, sounds = default.node_sound_leaves_defaults(), }) @@ -1106,7 +1106,7 @@ minetest.register_node("default:torch", { wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1}, }, - groups = {choppy=2,dig_immediate=3}, + groups = {choppy=2,dig_immediate=3,attached_node=1}, legacy_wallmounted = true, sounds = default.node_sound_defaults(), }) @@ -1127,7 +1127,7 @@ minetest.register_node("default:sign_wall", { --wall_bottom = <default> --wall_side = <default> }, - groups = {choppy=2,dig_immediate=2}, + groups = {choppy=2,dig_immediate=2,attached_node=1}, legacy_wallmounted = true, sounds = default.node_sound_defaults(), on_construct = function(pos) @@ -1495,7 +1495,7 @@ minetest.register_node("default:sapling", { wield_image = "default_sapling.png", paramtype = "light", walkable = false, - groups = {snappy=2,dig_immediate=3}, + groups = {snappy=2,dig_immediate=3,attached_node=1}, sounds = default.node_sound_defaults(), }) |