https://www.youtube.com/watch?v=qF_yTnX_s94
That's it: a self-replicating block. I made it by creating a block and applying the following ABM to it:
Code: Select all
minetest.register_abm({ nodenames = {"expanding_orb:orb"}, interval = 5, chance = 5,
action = function(pos)
for x = -1,1,1 do
for y = 0,1,1 do
for z = -1,1,1 do
tempPos = vector.new(pos.x, pos.y, pos.z) -- Vector copy
tempPos.x = tempPos.x + x
tempPos.y = tempPos.y + y
tempPos.z = tempPos.z + z
minetest.add_node(tempPos, {name="expanding_orb:orb"})
end
end
end
end
})
I haven't put this in the "problems" section as I don't really see this as a problem, but I'm curious about specifically why this happens.