mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Flowerlike place restriction for tallgrass/fern
This commit is contained in:
parent
b7bc1a38b1
commit
13ce8fcf1a
@ -96,6 +96,8 @@ minetest.register_node("mcl_flowers:tallgrass", {
|
|||||||
groups = {dig_immediate=3, flammable=3,attached_node=1,plant=1,non_mycelium_plant=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1},
|
groups = {dig_immediate=3, flammable=3,attached_node=1,plant=1,non_mycelium_plant=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1},
|
||||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||||
drop = wheat_seed_drop,
|
drop = wheat_seed_drop,
|
||||||
|
node_placement_prediction = "",
|
||||||
|
on_place = on_place_flower,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
||||||
local item = user:get_wielded_item()
|
local item = user:get_wielded_item()
|
||||||
if item:get_name() == "mcl_tools:shears" then
|
if item:get_name() == "mcl_tools:shears" then
|
||||||
@ -122,6 +124,8 @@ minetest.register_node("mcl_flowers:fern", {
|
|||||||
groups = {dig_immediate=3,flammable=2,attached_node=1,plant=1,non_mycelium_plant=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1},
|
groups = {dig_immediate=3,flammable=2,attached_node=1,plant=1,non_mycelium_plant=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1},
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||||
|
node_placement_prediction = "",
|
||||||
|
on_place = on_place_flower,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
||||||
local item = user:get_wielded_item()
|
local item = user:get_wielded_item()
|
||||||
if item:get_name() == "mcl_tools:shears" then
|
if item:get_name() == "mcl_tools:shears" then
|
||||||
|
Loading…
Reference in New Issue
Block a user