mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 10:23:44 +01:00
Updated rope box for wood sound and better groups
This commit is contained in:
parent
52c07acb56
commit
bb17aad5a2
11
init.lua
11
init.lua
@ -17,8 +17,7 @@ minetest.register_node("vines:rope_block", {
|
|||||||
"vines_rope_block.png"
|
"vines_rope_block.png"
|
||||||
},
|
},
|
||||||
drawtype = "cube",
|
drawtype = "cube",
|
||||||
groups = { snappy = 3},
|
groups = {choppy=2,oddly_breakable_by_hand=1},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
local p = {x=pos.x, y=pos.y-1, z=pos.z}
|
local p = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||||
local n = minetest.env:get_node(p)
|
local n = minetest.env:get_node(p)
|
||||||
@ -48,7 +47,7 @@ minetest.register_node("vines:rope", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tile_images = { "vines_rope.png" },
|
tile_images = { "vines_rope.png" },
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
groups = {},
|
groups = {flammable=2},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -65,7 +64,7 @@ minetest.register_node("vines:rope_end", {
|
|||||||
drops = "",
|
drops = "",
|
||||||
tile_images = { "vines_rope.png" },
|
tile_images = { "vines_rope.png" },
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
groups = {},
|
groups = {flammable=2},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
yesh = {x = pos.x, y= pos.y-1, z=pos.z}
|
yesh = {x = pos.x, y= pos.y-1, z=pos.z}
|
||||||
@ -251,7 +250,7 @@ minetest.register_craftitem("vines:vines", {
|
|||||||
|
|
||||||
plantslib:spawn_on_surfaces({
|
plantslib:spawn_on_surfaces({
|
||||||
avoid_nodes = {"vines:vine", "vines:side"},
|
avoid_nodes = {"vines:vine", "vines:side"},
|
||||||
avoid_radius = 2,
|
avoid_radius = 3,
|
||||||
spawn_delay = spawn_interval,
|
spawn_delay = spawn_interval,
|
||||||
spawn_plants = {"vines:vine"},
|
spawn_plants = {"vines:vine"},
|
||||||
spawn_chance = 10,
|
spawn_chance = 10,
|
||||||
@ -261,7 +260,7 @@ plantslib:spawn_on_surfaces({
|
|||||||
|
|
||||||
plantslib:spawn_on_surfaces({
|
plantslib:spawn_on_surfaces({
|
||||||
avoid_nodes = {"vines:vine", "vines:side"},
|
avoid_nodes = {"vines:vine", "vines:side"},
|
||||||
avoid_radius = 1,
|
avoid_radius = 3,
|
||||||
spawn_delay = spawn_interval,
|
spawn_delay = spawn_interval,
|
||||||
spawn_plants = {"vines:side"},
|
spawn_plants = {"vines:side"},
|
||||||
spawn_chance = 10,
|
spawn_chance = 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user