I am new so maybe I am overlooking a solution in the forum as I am not searching with the right terms.
I would like to write a new mod which includes different types of coal ores which can then be used to craft different items of different quality. The second part (the crafting and the differences in quality works quite well already)
However, my Lua code to add these new ore types is not working as no new ores are being created in the world (although I could create them by myself in Creative mode), what do I need to change or add to the code?
mintest 5.6.1.
mod-name advanced_coal
Code: Select all
minetest.register_node("advanced_coal:anthracite", {
description = "Anthracite Coal Ore",
tiles = {"default_stone.png^default_mineral_anthracite.png"},
is_ground_content = true,
groups = {cracky = 3},
drop = "advanced_coal:anthracite_lump 1",
})
minetest.register_ore({
ore_type = "scatter",
ore = "advanced_coal:anthracite",
wherein = "default:stone",
clust_scarcity = 8 * 8 * 8,
clust_num_ores = 8,
clust_size = 3,
y_min = -31000,
y_max = -124,
})