Add copper, and the beginnings of a machine system.

This commit is contained in:
Signal 2025-12-29 16:53:50 -05:00
parent 30ba6e5385
commit 1e897665bb
69 changed files with 976 additions and 135 deletions

View file

@ -170,8 +170,22 @@ local function generate_tree(min, max, base_x, base_y, base_z)
end
end
local function tree(min, max, x, y, z)
local function tree(vm, min, max, x, y, z)
apple_tree={
axiom="FFFFFAFFBF",
rules_a="[&&&FFFFF&&FFFF][&&&++++FFFFF&&FFFF][&&&----FFFFF&&FFFF]",
rules_b="[&&&++FFFFF&&FFFF][&&&--FFFFF&&FFFF][&&&------FFFFF&&FFFF]",
trunk="oak_log",
leaves="oak_leaves",
angle=30,
iterations=2,
random_level=0,
trunk_type="single",
thin_branches=true,
fruit_chance=10,
fruit="stone"
}
minetest.spawn_tree_on_vmanip(vm, vector.new(x, y, z), apple_tree)
end
@ -228,9 +242,10 @@ minetest.register_on_generated(function(vm, min, max)
end
end
for _, x in pairs(trees) do
tree(min, max, x.x, x.y, x.z)
end
vm:set_data(vm_data)
for _, x in pairs(trees) do
tree(vm, min, max, x.x, x.y, x.z)
end
vm:calc_lighting()
end)