master
tenplus1 2015-05-30 12:31:05 +01:00
parent 87316b5083
commit 22a7bed688
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ local onion_def = {
drop = { drop = {
items = { items = {
{items = {"ethereal:wild_onion_plant"},rarity=1}, {items = {"ethereal:wild_onion_plant"},rarity=1},
} }
}, },
selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},}, selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},},
groups = {snappy=3,flammable=2,plant=1,attached_node=1,onion=1,growing=1,not_in_creative_inventory=1}, groups = {snappy=3,flammable=2,plant=1,attached_node=1,onion=1,growing=1,not_in_creative_inventory=1},
@ -65,6 +65,7 @@ minetest.register_abm({
interval = 50, interval = 50,
chance = 3, chance = 3,
action = function(pos, node) action = function(pos, node)
-- return if already full grown -- return if already full grown
if minetest.get_item_group(node.name, "growing") < 1 then if minetest.get_item_group(node.name, "growing") < 1 then
return return

View File

@ -50,7 +50,7 @@ minetest.register_abm({
-- If Crystal Spike, Crystal Dirt, Snow near Water, change Water to Ice -- If Crystal Spike, Crystal Dirt, Snow near Water, change Water to Ice
minetest.register_abm({ minetest.register_abm({
nodenames = {"ethereal:crystal_spike", "ethereal:crystal_dirt", "default:snow", "default:snowblock", "ethereal:snowbrick"}, nodenames = {"ethereal:crystal_spike", "default:snow", "default:snowblock", "ethereal:snowbrick"},
neighbors = {"default:water_source"}, neighbors = {"default:water_source"},
interval = 15, interval = 15,
chance = 2, chance = 2,