diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 12:12:15 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 12:12:15 -0400 |
commit | aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b (patch) | |
tree | 379775ce76eb855a3ea65906727d828d1696cece /ropes/ropeboxes.lua | |
parent | ba470a69750df16eac4278c30471d813c2581202 (diff) | |
download | dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.gz dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.bz2 dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.xz dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.zip |
updated castles, coloredwood, digistuff, locks, mesecons,
pipeworks, steel, unified dyes, unified mesecons, and worldedit
Diffstat (limited to 'ropes/ropeboxes.lua')
-rw-r--r-- | ropes/ropeboxes.lua | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ropes/ropeboxes.lua b/ropes/ropeboxes.lua index 9049bb1..626b158 100644 --- a/ropes/ropeboxes.lua +++ b/ropes/ropeboxes.lua @@ -134,6 +134,17 @@ 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} @@ -225,9 +236,8 @@ 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 = "ropes_creak", + footstep = {name = "ropes_creak", gain = 0.8, max_hear_distance = 6}, dig = "__group", dug = "__group", }, @@ -262,7 +272,7 @@ local rope_bottom_def = { drawtype = "nodebox", groups = {choppy=2, flammable=2, not_in_creative_inventory=1}, sounds = { - footstep = "ropes_creak", + footstep = {name = "ropes_creak", gain = 0.8, max_hear_distance = 6}, dig = "__group", dug = "__group", }, |