Mod Developing
Posted: Wed May 06, 2020 05:16
hello
So i am creating a mod with a assortment of random items and things. one of them being aluminum ingots and aluminum tools. i want to make a aluminum ore generate in the world. How would i do that
here is my code so far
So i am creating a mod with a assortment of random items and things. one of them being aluminum ingots and aluminum tools. i want to make a aluminum ore generate in the world. How would i do that
here is my code so far
Code: Select all
minetest.register_node("aluminum:aluminum_ore", {
description = "aluminum Ore",
tiles = {"defaulth_stone.png^aluminum_mineral.png"},
groups = {cracky = 3, stone = 1},
drop = 'aluminum:aluminum_lump',
legacy_mineral = true
})
minetest.register_craftitem("aluminum:aluminum_lump", {
description = "aluminum Lump",
inventory_image = "aluminum_Lump.png"
})
minetest.register_ore({
ore_type = "vein",
ore = "aluminum:aluminum_ore",
wherein = "default:stone",
clust_scarcity = 8*8*8,
clust_num_ores = 8,
clust_size = 3,
y_min = -31000,
y_max = 64,
})