3
9
Fork
You've already forked farming
14

Some plants not generating #18

Closed
opened 2024年11月02日 18:28:20 +01:00 by monk-afk · 1 comment

There have been reports from players unable to find some crops in the wild. Spinach, Eggplant, Ginger, Asparagus.

It might be due to the registration definitions, maybe the offset, or param2 without having a paramtype2 defined by the node, or name. I couldn't say for sure.

After changing or removing these definitions, mapgen was spawning these crops again.

-- spinach.lua
minetest.register_decoration({
	deco_type = "simple",
	place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
	sidelen = 16,
	noise_params = {
		offset = 0, -- offset = -0.1,
		scale = farming.spinach,
		spread = {x = 100, y = 100, z = 100},
		seed = 910,
		octaves = 3,
		persist = 0.6
	},
	y_min = 1, y_max = 100,
	decoration = "farming:spinach_4",
	-- param2 = 3
})
-- eggplant.lua
minetest.register_decoration({
 deco_type = "simple",
 place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
 sidelen = 16,
 noise_params = {
 offset = 0, --	offset = -0.1,
 scale = farming.eggplant,
 spread = {x = 100, y = 100, z = 100},
 seed = 356,
 octaves = 3,
 persist = 0.6
 },
 y_min = 1, y_max = 40,
 decoration = "farming:eggplant_3",
	-- param2 = 3
})
-- asparagus
minetest.register_decoration({
 -- name = "farming:asparagus_5",
	deco_type = "simple",
	place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
	sidelen = 16,
	noise_params = {
		offset = 0,		-- offset = -0.1,
		scale = farming.asparagus,
		spread = {x = 100, y = 100, z = 100},
		seed = 234,
		octaves = 3,
		persist = 0.6
	},
	y_min = 8, y_max = 32,
	decoration = "farming:asparagus_5",
	-- param2 = 3
})
-- ginger.lua
minetest.register_decoration({
	-- name = "farming:ginger_4",
	deco_type = "simple",
	place_on = {
		"default:dirt_with_rainforest_litter", "mcl_core:dirt_with_grass",
		"ethereal:prairie_dirt"
	},
	sidelen = 16,
	noise_params = {
		offset = 0,
		scale = farming.ginger,
		spread = {x = 100, y = 100, z = 100},
		seed = 999,
		octaves = 3,
		persist = 0.6
	},
	y_min = 1, y_max = 80,
	decoration = "farming:ginger_3",
	-- param2 = 3
})
There have been reports from players unable to find some crops in the wild. Spinach, Eggplant, Ginger, Asparagus. It might be due to the registration definitions, maybe the offset, or param2 without having a paramtype2 defined by the node, or name. I couldn't say for sure. After changing or removing these definitions, mapgen was spawning these crops again. ```lua -- spinach.lua minetest.register_decoration({ deco_type = "simple", place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, -- offset = -0.1, scale = farming.spinach, spread = {x = 100, y = 100, z = 100}, seed = 910, octaves = 3, persist = 0.6 }, y_min = 1, y_max = 100, decoration = "farming:spinach_4", -- param2 = 3 }) -- eggplant.lua minetest.register_decoration({ deco_type = "simple", place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, -- offset = -0.1, scale = farming.eggplant, spread = {x = 100, y = 100, z = 100}, seed = 356, octaves = 3, persist = 0.6 }, y_min = 1, y_max = 40, decoration = "farming:eggplant_3", -- param2 = 3 }) -- asparagus minetest.register_decoration({ -- name = "farming:asparagus_5", deco_type = "simple", place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, -- offset = -0.1, scale = farming.asparagus, spread = {x = 100, y = 100, z = 100}, seed = 234, octaves = 3, persist = 0.6 }, y_min = 8, y_max = 32, decoration = "farming:asparagus_5", -- param2 = 3 }) -- ginger.lua minetest.register_decoration({ -- name = "farming:ginger_4", deco_type = "simple", place_on = { "default:dirt_with_rainforest_litter", "mcl_core:dirt_with_grass", "ethereal:prairie_dirt" }, sidelen = 16, noise_params = { offset = 0, scale = farming.ginger, spread = {x = 100, y = 100, z = 100}, seed = 999, octaves = 3, persist = 0.6 }, y_min = 1, y_max = 80, decoration = "farming:ginger_3", -- param2 = 3 }) ```

The -0.1 offset stopped them from spawning, changing it to 0 works fine and they spawn after a little searching :)

The -0.1 offset stopped them from spawning, changing it to 0 works fine and they spawn after a little searching :)
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tenplus1/farming#18
Reference in a new issue
tenplus1/farming
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?