brutus wrote:RAPHAEL wrote:Uranium possibly. Could be used in the future to make nuclear bombs in minetest? Do we really want that? lol
that would make for an interesting tnt block.
xD
brutus wrote:RAPHAEL wrote:Uranium possibly. Could be used in the future to make nuclear bombs in minetest? Do we really want that? lol
that would make for an interesting tnt block.
numidark wrote:Hello Calinou, i have a problem, i have minetest 0.4 20120320 and i don't no possibility to mine you're ores...
It's a bug ?
Cordialy
The debug :
16:13:43: INFO[main]: Started digging
16:13:43: VERBOSE[ServerThread]: TOSERVER_INTERACT: action=0, item=2, pointed=[node under=113,-5,55 above=113,-5,56]
16:13:43: VERBOSE[main]: Client: time_of_day=5132 time_speed=96 dr=500
16:13:44: INFO[ServerThread]: Server: MapEditEvents:
16:13:44: INFO[ServerThread]: MEET_ADDNODE: - - - - - - - - - - - - - - 100
16:13:44: INFO[ServerThread]: Server: MapEditEvents:
16:13:44: INFO[ServerThread]: MEET_ADDNODE: - - - - - - - - - - - - - - 70
16:13:44: INFO[main]: Left button released (stopped digging)
cosarara97 wrote:Tools have to be updated as well.
numidark wrote:Sorry but i don't possibility to use tool (bronze, gold, silver, mytril)
I must modify init.lua ?
Cordialy
local function generate_ore_perlin(name, wherein, minp, maxp, seed, chunks_per_volume, ore_per_chunk, height_min, height_max, perlin, cut_at_noiseval)
if maxp.y < height_min or minp.y > height_max then
return
end
local y_min = math.max(minp.y, height_min)
local y_max = math.min(maxp.y, height_max)
local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1)
local pr = PseudoRandom(seed)
local num_chunks = math.floor(chunks_per_volume * volume)
local a = 2 * ore_per_chunk/(cut_at_noiseval - 1)
--print("generate_ore num_chunks: "..dump(num_chunks))
for i=1,num_chunks do
local y0 = pr:next(y_min, y_max-2)
if y0 >= height_min and y0 <= height_max then
local x0 = pr:next(minp.x, maxp.x-2)
local z0 = pr:next(minp.z, maxp.z-2)
local p0 = {x=x0, y=y0, z=z0}
local noiseval = perlin:get3d(p0)
-- print("chunk at: "..dump(p0).." noiseval: "..dump(noiseval))
local ore_per_chunk_scaled = a * ( cut_at_noiseval - noiseval)
ore_per_chunk_scaled = math.max(ore_per_chunk_scaled, 0)
ore_per_chunk_scaled = math.min(ore_per_chunk_scaled, ore_per_chunk)
ore_per_chunk_scaled = math.floor(ore_per_chunk_scaled)
-- print("chunk at: "..dump(p0).." noiseval: "..dump(noiseval).." ore_per_chunk: "..dump(ore_per_chunk_scaled))
if ore_per_chunk_scaled > 0 then
local chunk_size = 3
if ore_per_chunk_scaled <= 4 then
chunk_size = 2
end
local inverse_chance = math.floor(chunk_size * chunk_size * chunk_size/ore_per_chunk_scaled)
for x1=0,chunk_size-1 do
for y1=0,chunk_size-1 do
for z1=0,chunk_size-1 do
local p1 = {x=x0 + x1, y = y0 + y1, z = z0 + z1}
if pr:next(1,inverse_chance) == 1 then
-- if minetest.env:get_node(p2).name == wherein then -- COMMENTED FOR DEBUG
minetest.env:set_node(p1, {name=name})
-- end -- COMMENTED FOR DEBUG
end
end
end
end
end
end
end
--print("generate_ore done")
end
minetest.register_on_generated(function(minp, maxp, seed)
local copper_perlin = minetest.env:get_perlin(471, 3, 0.6, 200)
generate_ore_perlin("moreores:mineral_copper", "default:stone", minp, maxp, seed+16, 1/8/8/8, 6, -31000, 64, copper_perlin, 0.2)
local tin_perlin = minetest.env:get_perlin(472, 3, 0.6, 200)
generate_ore_perlin("moreores:mineral_tin", "default:stone", minp, maxp, seed+17, 1/10/10/10, 5, -31000, 64, tin_perlin, 0.3)
end)
bwog wrote:Here's some suggestions:
Silicon (Could be used to make computers, which would be a decoration block)
Sulfur (Could be used to make guns)
Cobalt
Nickel
Platinum
Zinc
Titanium
Lead
hurufu wrote:What do you think about implementing all kinds of stones and ores as in Dwarf Fortress?
http://df.magmawiki.com/index.php/DF2010:Stone
http://df.magmawiki.com/index.php/DF2010:Ore
Users browsing this forum: No registered users and 8 guests