Version MFF.
Before Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 356 B |
BIN
/frying.mp3
@ -1,2 +0,0 @@
|
||||
frying from http://freesound.org/people/davidkay/sounds/132472/ (WTFPL)
|
||||
cutting from http://freesound.org/people/nhaudio/sounds/192416/ (WTFPL)
|
BIN
/mush45_b.png
Before Width: | Height: | Size: 211 B |
BIN
/mush45_b0.png
Before Width: | Height: | Size: 234 B |
BIN
/mush45_b1.png
Before Width: | Height: | Size: 210 B |
BIN
/mush45_b2.png
Before Width: | Height: | Size: 257 B |
BIN
/mush45_bm.png
Before Width: | Height: | Size: 211 B |
BIN
/mush45_bm2.png
Before Width: | Height: | Size: 211 B |
BIN
/mush45_bm3.png
Before Width: | Height: | Size: 211 B |
BIN
/mush45_bm4.png
Before Width: | Height: | Size: 211 B |
BIN
/mush45_r.png
Before Width: | Height: | Size: 233 B |
BIN
/mush45_r0.png
Before Width: | Height: | Size: 234 B |
BIN
/mush45_rm.png
Before Width: | Height: | Size: 234 B |
BIN
/mush45_rm2.png
Before Width: | Height: | Size: 239 B |
BIN
/mush45_rm3.png
Before Width: | Height: | Size: 234 B |
BIN
/mush45_rm4.png
Before Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 276 B |
203
/old_mapgen.lua
@ -1,203 +0,0 @@
|
||||
--[[
|
||||
function riesenpilz_circle(nam, pos, radius, rand, seed)
|
||||
local ra = seed
|
||||
for i = -radius, radius, 1 do
|
||||
for j = -radius, radius, 1 do
|
||||
if math.floor( math.sqrt(i^2+j^2) +0.5) == radius then
|
||||
random = PseudoRandom(ra)
|
||||
p={x=pos.x+i, y=pos.y, z=pos.z+j}
|
||||
if minetest.get_node(p).name == "air"
|
||||
and random:next(1,rand) == 1
|
||||
and minetest.get_node({x=pos.x+i, y=pos.y-1, z=pos.z+j}).name ~= "air" then
|
||||
minetest.add_node(p, {name=nam})
|
||||
end
|
||||
ra = ra+1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
elseif pr:next(1,80) == 1 then
|
||||
riesenpilz_circle("riesenpilz:brown", boden, pr:next(2,3), 3, seed)
|
||||
elseif pr:next(1,90) == 1 then
|
||||
riesenpilz_circle("riesenpilz:red", boden, pr:next(3,4), 3, seed)
|
||||
elseif pr:next(1,100) == 1 then
|
||||
riesenpilz_circle("riesenpilz:fly_agaric", boden, 3, 3, seed)
|
||||
elseif pr:next(1,4000) == 1 then
|
||||
riesenpilz_circle("riesenpilz:lavashroom", boden, pr:next(4,5), 3, seed)
|
||||
elseif pr:next(1,5000) == 1 then
|
||||
riesenpilz_circle("riesenpilz:glowshroom", boden, 2, 3, seed)
|
||||
]]
|
||||
function riesenpilz_circle(nam, pos, radius, chance)
|
||||
for i = -radius, radius, 1 do
|
||||
for j = -radius, radius, 1 do
|
||||
if math.floor( math.sqrt(i^2+j^2) +0.5) == radius
|
||||
and minetest.get_node({x=pos.x+i, y=pos.y, z=pos.z+j}).name == "air"
|
||||
and math.random(1,chance) == 1
|
||||
and minetest.get_node({x=pos.x+i, y=pos.y-1, z=pos.z+j}).name == "riesenpilz:ground" then
|
||||
minetest.add_node({x=pos.x+i, y=pos.y, z=pos.z+j}, {name=nam})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function find_ground(pos, nodes)
|
||||
for _, evground in ipairs(nodes) do
|
||||
if minetest.get_node(pos).name == evground then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local GROUND = {"default:dirt_with_grass","default:dirt","default:sand","default:desert_sand"}
|
||||
USUAL_STUFF = {"default:leaves","default:apple","default:tree","default:cactus","default:papyrus"}
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
if maxp.y >= -10 then
|
||||
local x0,z0,x1,z1 = minp.x,minp.z,maxp.x,maxp.z -- Assume X and Z lengths are equal
|
||||
local env = minetest.env --Should make things a bit faster.
|
||||
local perlin1 = env:get_perlin(11,3, 0.5, 200) --Get map specific perlin
|
||||
|
||||
--[[if not (perlin1:get2d({x=x0, y=z0}) > 0.53) and not (perlin1:get2d({x=x1, y=z1}) > 0.53)
|
||||
and not (perlin1:get2d({x=x0, y=z1}) > 0.53) and not (perlin1:get2d({x=x1, y=z0}) > 0.53)
|
||||
and not (perlin1:get2d({x=(x1-x0)/2, y=(z1-z0)/2}) > 0.53) then]]
|
||||
if not ( perlin1:get2d( {x=x0, y=z0} ) > 0.53 ) --top left
|
||||
and not ( perlin1:get2d( { x = x0 + ( (x1-x0)/2), y=z0 } ) > 0.53 )--top middle
|
||||
and not (perlin1:get2d({x=x1, y=z1}) > 0.53) --bottom right
|
||||
and not (perlin1:get2d({x=x1, y=z0+((z1-z0)/2)}) > 0.53) --right middle
|
||||
and not (perlin1:get2d({x=x0, y=z1}) > 0.53) --bottom left
|
||||
and not (perlin1:get2d({x=x1, y=z0}) > 0.53) --top right
|
||||
and not (perlin1:get2d({x=x0+((x1-x0)/2), y=z1}) > 0.53) --left middle
|
||||
and not (perlin1:get2d({x=(x1-x0)/2, y=(z1-z0)/2}) > 0.53) --middle
|
||||
and not (perlin1:get2d({x=x0, y=z1+((z1-z0)/2)}) > 0.53) then --bottom middle
|
||||
print("abortsumpf")
|
||||
return
|
||||
end
|
||||
local divs = (maxp.x-minp.x);
|
||||
local pr = PseudoRandom(seed+68)
|
||||
|
||||
--remove usual stuff
|
||||
local trees = env:find_nodes_in_area(minp, maxp, USUAL_STUFF)
|
||||
for i,v in pairs(trees) do
|
||||
env:remove_node(v)
|
||||
end
|
||||
|
||||
--Information:
|
||||
local geninfo = "-#- giant mushrooms generate: x=["..minp.x.."; "..maxp.x.."] z=["..minp.z.."; "..maxp.z.."]"
|
||||
print(geninfo)
|
||||
minetest.chat_send_all(geninfo)
|
||||
|
||||
local smooth = riesenpilz.smooth
|
||||
|
||||
for j=0,divs do
|
||||
for i=0,divs do
|
||||
local x,z = x0+i,z0+j
|
||||
|
||||
--Check if we are in a "riesenpilz biome"
|
||||
local in_biome = false
|
||||
local test = perlin1:get2d({x=x, y=z})
|
||||
--smooth mapgen
|
||||
if smooth and (test > 0.73 or (test > 0.43 and pr:next(0,29) > (0.73 - test) * 100 )) then
|
||||
in_biome = true
|
||||
elseif (not smooth) and test > 0.53 then
|
||||
in_biome = true
|
||||
end
|
||||
|
||||
if in_biome then
|
||||
|
||||
local ground_y = nil --Definition des Bodens:
|
||||
for y=maxp.y,0,-1 do
|
||||
if find_ground({x=x,y=y,z=z}, GROUND) then
|
||||
ground_y = y
|
||||
break
|
||||
end
|
||||
end
|
||||
if ground_y then
|
||||
env:add_node({x=x,y=ground_y,z=z}, {name="riesenpilz:ground"})
|
||||
for i = -1,-5,-1 do
|
||||
local pos = {x=x,y=ground_y+i,z=z}
|
||||
if env:get_node(pos).name == "default:desert_sand" then
|
||||
env:add_node(pos, {name="default:dirt"})
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
local boden = {x=x,y=ground_y+1,z=z}
|
||||
if pr:next(1,15) == 1 then
|
||||
env:add_node(boden, {name="default:dry_shrub"})
|
||||
elseif pr:next(1,80) == 1 then
|
||||
riesenpilz_circle("riesenpilz:brown", boden, pr:next(3,4), 3)
|
||||
elseif pr:next(1,90) == 1 then
|
||||
riesenpilz_circle("riesenpilz:red", boden, pr:next(4,5), 3)
|
||||
elseif pr:next(1,100) == 1 then
|
||||
riesenpilz_circle("riesenpilz:fly_agaric", boden, 4, 3)
|
||||
elseif pr:next(1,4000) == 1 then
|
||||
riesenpilz_circle("riesenpilz:lavashroom", boden, pr:next(5,6), 3)
|
||||
elseif pr:next(1,5000) == 1 then
|
||||
riesenpilz_circle("riesenpilz:glowshroom", boden, 3, 3)
|
||||
--[[elseif pr:next(1,80) == 1 then
|
||||
env:add_node(boden, {name="riesenpilz:brown"})
|
||||
elseif pr:next(1,90) == 1 then
|
||||
env:add_node(boden, {name="riesenpilz:red"})
|
||||
elseif pr:next(1,100) == 1 then
|
||||
env:add_node(boden, {name="riesenpilz:fly_agaric"})
|
||||
elseif pr:next(1,4000) == 1 then
|
||||
env:add_node(boden, {name="riesenpilz:lavashroom"})
|
||||
elseif pr:next(1,5000) == 1 then
|
||||
env:add_node(boden, {name="riesenpilz:glowshroom"})]]
|
||||
elseif pr:next(1,380) == 1 then
|
||||
riesenpilz_hybridpilz(boden)
|
||||
elseif pr:next(1,340) == 10 then
|
||||
riesenpilz_brauner_minecraftpilz(boden)
|
||||
elseif pr:next(1,390) == 20 then
|
||||
riesenpilz_minecraft_fliegenpilz(boden)
|
||||
elseif pr:next(1,6000) == 2 and pr:next(1,200) == 15 then
|
||||
riesenpilz_lavashroom(boden)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if maxp.y < -10 then
|
||||
local x0,z0,x1,z1 = minp.x,minp.z,maxp.x,maxp.z -- Assume X and Z lengths are equal
|
||||
local env = minetest.env --Should make things a bit faster.
|
||||
local perlin1 = env:get_perlin(11,3, 0.5, 200) --Get map specific perlin
|
||||
|
||||
--[[if not (perlin1:get2d({x=x0, y=z0}) > 0.53) and not (perlin1:get2d({x=x1, y=z1}) > 0.53)
|
||||
and not (perlin1:get2d({x=x0, y=z1}) > 0.53) and not (perlin1:get2d({x=x1, y=z0}) > 0.53)
|
||||
and not (perlin1:get2d({x=(x1-x0)/2, y=(z1-z0)/2}) > 0.53) then]]
|
||||
if not ( perlin1:get2d( {x=x0, y=z0} ) > 0.53 ) --top left
|
||||
and not ( perlin1:get2d( { x = x0 + ( (x1-x0)/2), y=z0 } ) > 0.53 )--top middle
|
||||
and not (perlin1:get2d({x=x1, y=z1}) > 0.53) --bottom right
|
||||
and not (perlin1:get2d({x=x1, y=z0+((z1-z0)/2)}) > 0.53) --right middle
|
||||
and not (perlin1:get2d({x=x0, y=z1}) > 0.53) --bottom left
|
||||
and not (perlin1:get2d({x=x1, y=z0}) > 0.53) --top right
|
||||
and not (perlin1:get2d({x=x0+((x1-x0)/2), y=z1}) > 0.53) --left middle
|
||||
and not (perlin1:get2d({x=(x1-x0)/2, y=(z1-z0)/2}) > 0.53) --middle
|
||||
and not (perlin1:get2d({x=x0, y=z1+((z1-z0)/2)}) > 0.53) then --bottom middle
|
||||
print("abortsumpf")
|
||||
return
|
||||
end
|
||||
local divs = (maxp.x-minp.x);
|
||||
local pr = PseudoRandom(seed+68)
|
||||
|
||||
for j=0,divs do
|
||||
for i=0,divs do
|
||||
local x,z = x0+i,z0+j
|
||||
|
||||
for y=minp.y,maxp.y,1 do
|
||||
local pos = {x=x, y=y, z=z}
|
||||
|
||||
if env:get_node(pos).name == "air"
|
||||
and env:get_node({x=x, y=y-1, z=z}).name == "default:stone"
|
||||
and pr:next(1,40) == 33
|
||||
and env:find_node_near(pos, 4, "group:igniter")
|
||||
and not env:find_node_near(pos, 3, "group:igniter") then
|
||||
env:add_node(pos, {name="riesenpilz:lavashroom"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
Before Width: | Height: | Size: 4.4 KiB |
BIN
/smallhead.1.ogg
0
.gitignore
vendored
Normal file → Executable file
0
LICENSE.txt
Normal file → Executable file
1
depends.txt
Normal file → Executable file
@ -1,3 +1,4 @@
|
||||
default
|
||||
vector_extras
|
||||
fence_registration?
|
||||
watershed?
|
||||
|
2
functions.lua
Normal file → Executable file
@ -7,7 +7,7 @@ if riesenpilz.info then
|
||||
else
|
||||
info = "[riesenpilz] "..msg
|
||||
end
|
||||
print(info)
|
||||
minetest.log("action", info)
|
||||
if riesenpilz.inform_all then
|
||||
minetest.chat_send_all(info)
|
||||
end
|
||||
|
2
init.lua
Normal file → Executable file
@ -1092,7 +1092,7 @@ end
|
||||
local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100
|
||||
local msg = "[riesenpilz] loaded after ca. "..time
|
||||
if time > 0.05 then
|
||||
print(msg)
|
||||
minetest.log("warning", msg)
|
||||
else
|
||||
minetest.log("info", msg)
|
||||
end
|
||||
|
0
mapgen.lua
Normal file → Executable file
6
settings.lua
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
--This file contains configuration options for riesenpilz mod.
|
||||
|
||||
riesenpilz.enable_mapgen = true
|
||||
riesenpilz.enable_mapgen = false
|
||||
|
||||
--Generate giant mushroom biomes everywhere
|
||||
riesenpilz.always_generate = false
|
||||
@ -9,10 +9,10 @@ riesenpilz.always_generate = false
|
||||
riesenpilz.smooth = true
|
||||
|
||||
--rarity in %
|
||||
riesenpilz.mapgen_rarity = 0.4
|
||||
riesenpilz.mapgen_rarity = 0.25 -- Modif MFF (default = 1)
|
||||
|
||||
--size of the generated... (has an effect to the rarity, too)
|
||||
riesenpilz.mapgen_size = 200
|
||||
riesenpilz.mapgen_size = 50
|
||||
|
||||
--approximate size of smooth transitions
|
||||
riesenpilz.smooth_trans_size = 2
|
||||
|
0
sounds/riesenpilz_head.0.ogg
Normal file → Executable file
0
sounds/riesenpilz_head.1.ogg
Normal file → Executable file
0
sounds/riesenpilz_head.2.ogg
Normal file → Executable file
0
sounds/riesenpilz_stem.0.ogg
Normal file → Executable file
0
sounds/riesenpilz_stem.1.ogg
Normal file → Executable file
0
sounds/riesenpilz_stem.2.ogg
Normal file → Executable file
0
textures/3apple_apple.png
Normal file → Executable file
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
0
textures/3apple_apple_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
0
textures/3apple_apple_top.png
Normal file → Executable file
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 321 B |
0
textures/riesenpilz_brown45_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
0
textures/riesenpilz_brown45_side.png
Normal file → Executable file
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 105 B |
0
textures/riesenpilz_brown45_top.png
Normal file → Executable file
Before Width: | Height: | Size: 112 B After Width: | Height: | Size: 112 B |
0
textures/riesenpilz_brown_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 182 B |
0
textures/riesenpilz_fly_agaric_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
0
textures/riesenpilz_fly_agaric_side.png
Normal file → Executable file
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
0
textures/riesenpilz_fly_agaric_top.png
Normal file → Executable file
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 220 B |
0
textures/riesenpilz_glowshroom_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
0
textures/riesenpilz_glowshroom_side.png
Normal file → Executable file
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
0
textures/riesenpilz_glowshroom_top.png
Normal file → Executable file
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 109 B |
0
textures/riesenpilz_ground_side.png
Normal file → Executable file
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B |
0
textures/riesenpilz_ground_side_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
0
textures/riesenpilz_ground_top.png
Normal file → Executable file
Before Width: | Height: | Size: 619 B After Width: | Height: | Size: 619 B |
0
textures/riesenpilz_ground_top_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 500 B |
0
textures/riesenpilz_growingtool.png
Normal file → Executable file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
textures/riesenpilz_head.png
Normal file → Executable file
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 695 B |
0
textures/riesenpilz_head_binge.png
Normal file → Executable file
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
0
textures/riesenpilz_head_blue.png
Normal file → Executable file
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 724 B |
0
textures/riesenpilz_head_blue_bright.png
Normal file → Executable file
Before Width: | Height: | Size: 761 B After Width: | Height: | Size: 761 B |
BIN
textures/riesenpilz_head_brown_bright.png
Normal file → Executable file
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 182 B |
0
textures/riesenpilz_head_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
0
textures/riesenpilz_head_orange.png
Normal file → Executable file
Before Width: | Height: | Size: 578 B After Width: | Height: | Size: 578 B |
0
textures/riesenpilz_head_white.png
Normal file → Executable file
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 544 B |
0
textures/riesenpilz_head_yellow.png
Normal file → Executable file
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 535 B |
0
textures/riesenpilz_lamellas.png
Normal file → Executable file
Before Width: | Height: | Size: 1000 B After Width: | Height: | Size: 1000 B |
0
textures/riesenpilz_lamellas_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
0
textures/riesenpilz_lavashroom_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
0
textures/riesenpilz_lavashroom_side.png
Normal file → Executable file
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
0
textures/riesenpilz_lavashroom_top.png
Normal file → Executable file
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 297 B |
BIN
textures/riesenpilz_mush45_meal.png
Normal file → Executable file
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 146 B |
0
textures/riesenpilz_nether_shroom_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
0
textures/riesenpilz_nether_shroom_side.png
Normal file → Executable file
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 184 B |
0
textures/riesenpilz_nether_shroom_top.png
Normal file → Executable file
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 255 B |
0
textures/riesenpilz_parasol_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 236 B |
0
textures/riesenpilz_parasol_side.png
Normal file → Executable file
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 196 B |
0
textures/riesenpilz_parasol_top.png
Normal file → Executable file
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 183 B |
0
textures/riesenpilz_red45_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 140 B |
0
textures/riesenpilz_red45_side.png
Normal file → Executable file
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 131 B |
0
textures/riesenpilz_red45_top.png
Normal file → Executable file
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 98 B |
0
textures/riesenpilz_red_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 302 B |
0
textures/riesenpilz_red_side.png
Normal file → Executable file
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 261 B |
0
textures/riesenpilz_stem_blue.png
Normal file → Executable file
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 633 B |
0
textures/riesenpilz_stem_brown.png
Normal file → Executable file
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
0
textures/riesenpilz_stem_top.png
Normal file → Executable file
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 130 B |
0
textures/riesenpilz_stem_white.png
Normal file → Executable file
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
0
textures/riesenpilz_stem_white_normal.png
Normal file → Executable file
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |