Add clam group, fix clam spread
This commit is contained in:
parent
3b8258f7c3
commit
f9a7c7e522
@ -114,6 +114,7 @@ This is the list of all groups used for nodes. Note: If no number/rating is spec
|
||||
* `flower`: Flower
|
||||
* `seagrass`: Seagrass
|
||||
* `alga`: Alga
|
||||
* `clam`: Clam
|
||||
|
||||
* `leaves`: Any leaves
|
||||
* `dry_leaves`: Dry leaves
|
||||
|
@ -997,7 +997,7 @@ minetest.register_abm({
|
||||
end
|
||||
local pos0 = vector.add(pos, {x=-5, y=0, z=-5})
|
||||
local pos1 = vector.add(pos, {x=5, y=2, z=5})
|
||||
if #minetest.find_nodes_in_area(pos0, pos1, "rp_default:clam") >= 1 then
|
||||
if #minetest.find_nodes_in_area(pos0, pos1, "group:clam") >= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -389,7 +389,7 @@ minetest.register_node(
|
||||
{items = {"rp_default:pearl"}, rarity = 20},
|
||||
}
|
||||
},
|
||||
groups = {fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1, food = 2},
|
||||
groups = {clam = 1, fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1, food = 2},
|
||||
on_use = minetest.item_eat({hp = 4, sat = 10}),
|
||||
sounds = rp_sounds.node_sound_defaults(),
|
||||
|
||||
@ -422,7 +422,7 @@ minetest.register_node(
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
floodable = true,
|
||||
groups = {fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1, not_in_creative_inventory = 1},
|
||||
groups = {clam = 1, fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1, not_in_creative_inventory = 1},
|
||||
sounds = rp_sounds.node_sound_defaults(),
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user