mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Make flower pots attached
This commit is contained in:
parent
fa6413aa67
commit
b7589f5389
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ minetest.register_node("mcl_flowerpots:flower_pot", {
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
||||||
},
|
},
|
||||||
inventory_image = "mcl_flowerpots_flowerpot_inventory.png",
|
inventory_image = "mcl_flowerpots_flowerpot_inventory.png",
|
||||||
groups = {dig_immediate=3,deco_block=1},
|
groups = {dig_immediate=3,deco_block=1,attached_node=1},
|
||||||
sounds = mcl_core.node_sound_stone_defaults(),
|
sounds = mcl_core.node_sound_stone_defaults(),
|
||||||
on_rightclick = function(pos, node, clicker, itemstack)
|
on_rightclick = function(pos, node, clicker, itemstack)
|
||||||
local item = clicker:get_wielded_item():get_name()
|
local item = clicker:get_wielded_item():get_name()
|
||||||
|
@ -102,7 +102,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
groups = {dig_immediate=3, attached_node=1,not_in_creative_inventory=1},
|
||||||
sounds = mcl_core.node_sound_stone_defaults(),
|
sounds = mcl_core.node_sound_stone_defaults(),
|
||||||
on_rightclick = function(pos, item, clicker)
|
on_rightclick = function(pos, item, clicker)
|
||||||
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
|
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
|
||||||
|
@ -138,7 +138,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
groups = {dig_immediate=3, attached_node=1,not_in_creative_inventory=1},
|
||||||
sounds = mcl_core.node_sound_stone_defaults(),
|
sounds = mcl_core.node_sound_stone_defaults(),
|
||||||
on_rightclick = function(pos, item, clicker)
|
on_rightclick = function(pos, item, clicker)
|
||||||
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
|
minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node)
|
||||||
|
|
Loading…
Reference in a new issue