Make crops and music box attached
This commit is contained in:
parent
db45ccf4c8
commit
dbf02685c9
@ -25,7 +25,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, attached_node=1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -50,7 +50,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -75,7 +75,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -103,7 +103,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -130,7 +130,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, attached_node=1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -155,7 +155,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -180,7 +180,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults()
|
sounds=default.node_sound_leaves_defaults()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -208,7 +208,7 @@ minetest.register_node(
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
groups = {dig_immediate=2, attached_node=1, not_in_craft_guide = 1, not_in_creative_inventory = 1},
|
||||||
sounds=default.node_sound_leaves_defaults(),
|
sounds=default.node_sound_leaves_defaults(),
|
||||||
on_punch = function(pos, node, player)
|
on_punch = function(pos, node, player)
|
||||||
local name = player:get_wielded_item():get_name()
|
local name = player:get_wielded_item():get_name()
|
||||||
|
@ -120,7 +120,7 @@ if minetest.settings:get_bool("music_enable") then
|
|||||||
music.toggle(pos)
|
music.toggle(pos)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
groups = {oddly_breakable_by_hand = 3}
|
groups = {oddly_breakable_by_hand = 3, attached_node = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
local function step(dtime)
|
local function step(dtime)
|
||||||
@ -176,7 +176,7 @@ else
|
|||||||
meta:set_string("infotext", S("Music Player (disabled by server)"))
|
meta:set_string("infotext", S("Music Player (disabled by server)"))
|
||||||
end,
|
end,
|
||||||
|
|
||||||
groups = {oddly_breakable_by_hand = 3}
|
groups = {oddly_breakable_by_hand = 3, attached_node = 1}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user