diff options
Diffstat (limited to 'rhubarb.lua')
| -rw-r--r-- | rhubarb.lua | 33 | 
1 files changed, 20 insertions, 13 deletions
| diff --git a/rhubarb.lua b/rhubarb.lua index 37bd401..1f1f404 100644 --- a/rhubarb.lua +++ b/rhubarb.lua @@ -32,12 +32,14 @@ minetest.register_node("farming:rhubarb_1", {  	tiles = {"farming_rhubarb_1.png"},  	paramtype = "light",  	sunlight_propagates = true, -	waving = 1,  	walkable = false,  	buildable_to = true,  	drop = "", -	selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},}, -	groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,growing=1}, +	selection_box = farming.select, +	groups = { +		snappy = 3, flammable = 2, plant = 1, attached_node = 1, +		not_in_creative_inventory = 1, growing = 1 +	},  	sounds = default.node_sound_leaves_defaults(),  }) @@ -50,12 +52,15 @@ minetest.register_node("farming:rhubarb_2", {  	walkable = false,  	buildable_to = true,  	drop = "", -	selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},}, -	groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1,growing=1}, +	selection_box = farming.select, +	groups = { +		snappy = 3, flammable = 2, plant = 1, attached_node = 1, +		not_in_creative_inventory = 1, growing = 1 +	},  	sounds = default.node_sound_leaves_defaults(),  }) --- Last stage of Rhubarb growth doesnnot have growing=1 so abm never has to check these +-- Last stage of growth does not have growing group so abm never checks these  minetest.register_node("farming:rhubarb_3", {  	drawtype = "plantlike", @@ -65,15 +70,17 @@ minetest.register_node("farming:rhubarb_3", {  	waving = 1,  	walkable = false,  	buildable_to = true, -	is_ground_content = true,  	drop = {  		items = { -			{items = {'farming:rhubarb 2'},rarity=1}, -			{items = {'farming:rhubarb'},rarity=2}, -			{items = {'farming:rhubarb'},rarity=3}, +			{items = {'farming:rhubarb 2'}, rarity = 1}, +			{items = {'farming:rhubarb'}, rarity = 2}, +			{items = {'farming:rhubarb'}, rarity = 3},  		}  	}, -	selection_box = {type = "fixed",fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},}, -	groups = {snappy=3,flammable=2,plant=1,not_in_creative_inventory=1,attached_node=1}, +	selection_box = farming.select, +	groups = { +		snappy = 3, flammable = 2, plant = 1, attached_node = 1, +		not_in_creative_inventory = 1 +	},  	sounds = default.node_sound_leaves_defaults(), -}) +})
\ No newline at end of file | 
