automatic update

This commit is contained in:
HybridDog 2015-03-07 16:02:24 +01:00
parent 751477dee8
commit 087cc358b8

View File

@ -40,19 +40,19 @@ function riesenpilz_hybridpilz(pos)
local br = breite+1 local br = breite+1
local height = breite+2 local height = breite+2
for i = 0, height, 1 do for i = 0, height do
nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem
end end
for l = -br+1, br, 1 do for l = -br+1, br do
for k = -1, 1, 2 do for k = -1, 1, 2 do
nodes[area:index(pos.x+br*k, pos.y+height, pos.z-l*k)] = c.head_red nodes[area:index(pos.x+br*k, pos.y+height, pos.z-l*k)] = c.head_red
nodes[area:index(pos.x+l*k, pos.y+height, pos.z+br*k)] = c.head_red nodes[area:index(pos.x+l*k, pos.y+height, pos.z+br*k)] = c.head_red
end end
end end
for k = -breite, breite, 1 do for k = -breite, breite do
for l = -breite, breite, 1 do for l = -breite, breite do
nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_red nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_red
nodes[area:index(pos.x+l, pos.y+height, pos.z+k)] = c.lamellas nodes[area:index(pos.x+l, pos.y+height, pos.z+k)] = c.lamellas
end end
@ -78,12 +78,12 @@ function riesenpilz_brauner_minecraftpilz(pos)
nodes[i] = c.stem nodes[i] = c.stem
end end
for l = -br, br, 1 do for l = -br, br do
for k = -breite, breite, breite*2 do for k = -breite, breite, breite*2 do
nodes[area:index(pos.x+k, pos.y+height+1, pos.z+l)] = c.head_brown nodes[area:index(pos.x+k, pos.y+height+1, pos.z+l)] = c.head_brown
nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_brown nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_brown
end end
for k = -br, br, 1 do for k = -br, br do
nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_brown nodes[area:index(pos.x+l, pos.y+height+1, pos.z+k)] = c.head_brown
end end
end end
@ -102,15 +102,15 @@ function riesenpilz_minecraft_fliegenpilz(pos)
local height = 3 local height = 3
for i = 0, height, 1 do for i = 0, height do
nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem
end end
for j = -1, 1, 1 do for j = -1, 1 do
for k = -1, 1, 1 do for k = -1, 1 do
nodes[area:index(pos.x+j, pos.y+height+1, pos.z+k)] = c.head_red nodes[area:index(pos.x+j, pos.y+height+1, pos.z+k)] = c.head_red
end end
for l = 1, height, 1 do for l = 1, height do
local y = pos.y+l local y = pos.y+l
for _,p in ipairs({ for _,p in ipairs({
{area:index(pos.x+j, y, pos.z+2), 0}, {area:index(pos.x+j, y, pos.z+2), 0},
@ -153,13 +153,13 @@ function riesenpilz_lavashroom(pos)
for i = -1, 1, 2 do for i = -1, 1, 2 do
local o = 2*i local o = 2*i
for n = 0, height, 1 do for n = 0, height do
nodes[area:index(pos.x+i, pos.y+n, pos.z)] = c.stem_brown nodes[area:index(pos.x+i, pos.y+n, pos.z)] = c.stem_brown
nodes[area:index(pos.x, pos.y+n, pos.z+i)] = c.stem_brown nodes[area:index(pos.x, pos.y+n, pos.z+i)] = c.stem_brown
end end
for l = -1, 1, 1 do for l = -1, 1 do
for k = 2, 3, 1 do for k = 2, 3 do
nodes[area:index(pos.x+k*i, pos.y+height+2, pos.z+l)] = c.head_brown_full nodes[area:index(pos.x+k*i, pos.y+height+2, pos.z+l)] = c.head_brown_full
nodes[area:index(pos.x+l, pos.y+height+2, pos.z+k*i)] = c.head_brown_full nodes[area:index(pos.x+l, pos.y+height+2, pos.z+k*i)] = c.head_brown_full
end end
@ -168,8 +168,8 @@ function riesenpilz_lavashroom(pos)
end end
for m = -1, 1, 2 do for m = -1, 1, 2 do
for k = 2, 3, 1 do for k = 2, 3 do
for j = 2, 3, 1 do for j = 2, 3 do
nodes[area:index(pos.x+j*i, pos.y+height+2, pos.z+k*m)] = ran_node(c.head_yellow, c.head_orange, 7) nodes[area:index(pos.x+j*i, pos.y+height+2, pos.z+k*m)] = ran_node(c.head_yellow, c.head_orange, 7)
end end
end end
@ -177,13 +177,13 @@ function riesenpilz_lavashroom(pos)
nodes[area:index(pos.x+m*2, pos.y+height+1, pos.z+o)] = c.head_brown_full nodes[area:index(pos.x+m*2, pos.y+height+1, pos.z+o)] = c.head_brown_full
end end
for l = -3+1, 3, 1 do for l = -3+1, 3 do
nodes[area:index(pos.x+3*i, pos.y+height+5, pos.z-l*i)] = ran_node(c.head_yellow, c.head_orange, 5) nodes[area:index(pos.x+3*i, pos.y+height+5, pos.z-l*i)] = ran_node(c.head_yellow, c.head_orange, 5)
nodes[area:index(pos.x+l*i, pos.y+height+5, pos.z+3*i)] = ran_node(c.head_yellow, c.head_orange, 5) nodes[area:index(pos.x+l*i, pos.y+height+5, pos.z+3*i)] = ran_node(c.head_yellow, c.head_orange, 5)
end end
for j = 0, 1, 1 do for j = 0, 1 do
for l = -3, 3, 1 do for l = -3, 3 do
nodes[area:index(pos.x+i*4, pos.y+height+3+j, pos.z+l)] = ran_node(c.head_yellow, c.head_orange, 6) nodes[area:index(pos.x+i*4, pos.y+height+3+j, pos.z+l)] = ran_node(c.head_yellow, c.head_orange, 6)
nodes[area:index(pos.x+l, pos.y+height+3+j, pos.z+i*4)] = ran_node(c.head_yellow, c.head_orange, 6) nodes[area:index(pos.x+l, pos.y+height+3+j, pos.z+i*4)] = ran_node(c.head_yellow, c.head_orange, 6)
end end
@ -191,8 +191,8 @@ function riesenpilz_lavashroom(pos)
end end
for k = -2, 2, 1 do for k = -2, 2 do
for l = -2, 2, 1 do for l = -2, 2 do
nodes[area:index(pos.x+k, pos.y+height+6, pos.z+l)] = ran_node(c.head_yellow, c.head_orange, 4) nodes[area:index(pos.x+k, pos.y+height+6, pos.z+l)] = ran_node(c.head_yellow, c.head_orange, 4)
end end
end end
@ -211,29 +211,29 @@ function riesenpilz_glowshroom(pos)
local height = 2+math.random(MAX_SIZE) local height = 2+math.random(MAX_SIZE)
local br = 2 local br = 2
for i = 0, height, 1 do for i = 0, height do
nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem_blue nodes[area:index(pos.x, pos.y+i, pos.z)] = c.stem_blue
end end
for i = -1, 1, 2 do for i = -1, 1, 2 do
for k = -br, br, 2*br do for k = -br, br, 2*br do
for l = 2, height, 1 do for l = 2, height do
nodes[area:index(pos.x+i*br, pos.y+l, pos.z+k)] = c.head_blue nodes[area:index(pos.x+i*br, pos.y+l, pos.z+k)] = c.head_blue
end end
nodes[area:index(pos.x+i*br, pos.y+1, pos.z+k)] = c.head_blue_bright nodes[area:index(pos.x+i*br, pos.y+1, pos.z+k)] = c.head_blue_bright
end end
for l = -br+1, br, 1 do for l = -br+1, br do
nodes[area:index(pos.x+i*br, pos.y+height, pos.z-l*i)] = c.head_blue nodes[area:index(pos.x+i*br, pos.y+height, pos.z-l*i)] = c.head_blue
nodes[area:index(pos.x+l*i, pos.y+height, pos.z+br*i)] = c.head_blue nodes[area:index(pos.x+l*i, pos.y+height, pos.z+br*i)] = c.head_blue
end end
end end
for l = 0, br, 1 do for l = 0, br do
for i = -br+l, br-l, 1 do for i = -br+l, br-l do
for k = -br+l, br-l, 1 do for k = -br+l, br-l do
nodes[area:index(pos.x+i, pos.y+height+1+l, pos.z+k)] = c.head_blue nodes[area:index(pos.x+i, pos.y+height+1+l, pos.z+k)] = c.head_blue
end end
end end
@ -301,20 +301,20 @@ function riesenpilz_apple(pos)
local a = size*2 local a = size*2
local b = size-1 local b = size-1
for l = -b, b, 1 do for l = -b, b do
for j = 1, a-1, 1 do for j = 1, a-1 do
for k = -size, size, a do for k = -size, size, a do
nodes[area:index(pos.x+k, pos.y+j, pos.z+l)] = c.red nodes[area:index(pos.x+k, pos.y+j, pos.z+l)] = c.red
nodes[area:index(pos.x+l, pos.y+j, pos.z+k)] = c.red nodes[area:index(pos.x+l, pos.y+j, pos.z+k)] = c.red
end end
end end
for i = -b, b, 1 do for i = -b, b do
nodes[area:index(pos.x+i, pos.y, pos.z+l)] = c.red nodes[area:index(pos.x+i, pos.y, pos.z+l)] = c.red
nodes[area:index(pos.x+i, pos.y+a, pos.z+l)] = c.red nodes[area:index(pos.x+i, pos.y+a, pos.z+l)] = c.red
end end
end end
for i = a+1, a+b, 1 do for i = a+1, a+b do
nodes[area:index(pos.x, pos.y+i, pos.z)] = c.tree nodes[area:index(pos.x, pos.y+i, pos.z)] = c.tree
end end