forked from luanti-org/minetest_game
		
	Ferns: Add 3 sizes for coniferous forest biome
Remove flowers from coniferous forest. Add 'dirt with coniferous litter' to farming mod overrides.
This commit is contained in:
		| @@ -143,6 +143,10 @@ default:dry_grass_3 | ||||
| default:dry_grass_4 | ||||
| default:dry_grass_5 | ||||
|  | ||||
| default:fern_1 | ||||
| default:fern_2 | ||||
| default:fern_3 | ||||
|  | ||||
| default:bush_stem | ||||
| default:bush_leaves | ||||
| default:bush_sapling | ||||
| @@ -1315,6 +1319,58 @@ for i = 2, 5 do | ||||
| end | ||||
|  | ||||
|  | ||||
| minetest.register_node("default:fern_1", { | ||||
| 	description = "Fern", | ||||
| 	drawtype = "plantlike", | ||||
| 	waving = 1, | ||||
| 	tiles = {"default_fern_1.png"}, | ||||
| 	inventory_image = "default_fern_1.png", | ||||
| 	wield_image = "default_fern_1.png", | ||||
| 	paramtype = "light", | ||||
| 	sunlight_propagates = true, | ||||
| 	walkable = false, | ||||
| 	buildable_to = true, | ||||
| 	groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1}, | ||||
| 	sounds = default.node_sound_leaves_defaults(), | ||||
| 	selection_box = { | ||||
| 		type = "fixed", | ||||
| 		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -0.25, 6 / 16}, | ||||
| 	}, | ||||
|  | ||||
| 	on_place = function(itemstack, placer, pointed_thing) | ||||
| 		-- place a random fern node | ||||
| 		local stack = ItemStack("default:fern_" .. math.random(1, 3)) | ||||
| 		local ret = minetest.item_place(stack, placer, pointed_thing) | ||||
| 		return ItemStack("default:fern_1 " .. | ||||
| 			itemstack:get_count() - (1 - ret:get_count())) | ||||
| 	end, | ||||
| }) | ||||
|  | ||||
| for i = 2, 3 do | ||||
| 	minetest.register_node("default:fern_" .. i, { | ||||
| 		description = "Fern", | ||||
| 		drawtype = "plantlike", | ||||
| 		waving = 1, | ||||
| 		visual_scale = 2, | ||||
| 		tiles = {"default_fern_" .. i .. ".png"}, | ||||
| 		inventory_image = "default_fern_" .. i .. ".png", | ||||
| 		wield_image = "default_fern_" .. i .. ".png", | ||||
| 		paramtype = "light", | ||||
| 		sunlight_propagates = true, | ||||
| 		walkable = false, | ||||
| 		buildable_to = true, | ||||
| 		groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1, | ||||
| 			not_in_creative_inventory=1}, | ||||
| 		drop = "default:fern_1", | ||||
| 		sounds = default.node_sound_leaves_defaults(), | ||||
| 		selection_box = { | ||||
| 			type = "fixed", | ||||
| 			fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -0.25, 6 / 16}, | ||||
| 		}, | ||||
| 	}) | ||||
| end | ||||
|  | ||||
|  | ||||
| minetest.register_node("default:bush_stem", { | ||||
| 	description = "Bush Stem", | ||||
| 	drawtype = "plantlike", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user