summaryrefslogtreecommitdiff
path: root/ropes/ropeboxes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ropes/ropeboxes.lua')
-rw-r--r--ropes/ropeboxes.lua16
1 files changed, 3 insertions, 13 deletions
diff --git a/ropes/ropeboxes.lua b/ropes/ropeboxes.lua
index 626b158..9049bb1 100644
--- a/ropes/ropeboxes.lua
+++ b/ropes/ropeboxes.lua
@@ -134,17 +134,6 @@ local function register_rope_block(multiple, max_multiple, name_prefix, node_pre
selection_box = {type="regular"},
collision_box = {type="regular"},
groups = {choppy=2, oddly_breakable_by_hand=1, rope_block = 1},
-
- on_place = function(itemstack, placer, pointed_thing)
- if pointed_thing.type == "node" then
- local target_node = minetest.get_node(pointed_thing.under)
- local target_def = minetest.registered_nodes[target_node.name]
- if target_def.walkable == false then
- return itemstack
- end
- end
- return minetest.item_place(itemstack, placer, pointed_thing)
- end,
after_place_node = function(pos, placer)
local pos_below = {x=pos.x, y=pos.y-1, z=pos.z}
@@ -236,8 +225,9 @@ local rope_def = {
drop = "",
tiles = { "ropes_3.png", "ropes_3.png", "ropes_3.png", "ropes_3.png", "ropes_5.png", "ropes_5.png" },
groups = {choppy=2, flammable=2, not_in_creative_inventory=1},
+ sounds = default.node_sound_leaves_defaults(),
sounds = {
- footstep = {name = "ropes_creak", gain = 0.8, max_hear_distance = 6},
+ footstep = "ropes_creak",
dig = "__group",
dug = "__group",
},
@@ -272,7 +262,7 @@ local rope_bottom_def = {
drawtype = "nodebox",
groups = {choppy=2, flammable=2, not_in_creative_inventory=1},
sounds = {
- footstep = {name = "ropes_creak", gain = 0.8, max_hear_distance = 6},
+ footstep = "ropes_creak",
dig = "__group",
dug = "__group",
},