master
Irremann 2020-03-30 22:15:53 +03:00
parent f616116e7a
commit d69582a39d
6 changed files with 486 additions and 4 deletions

359
base.lua Normal file
View File

@ -0,0 +1,359 @@
local _ = {
name = "air",
prob = 0,
}
local A = {
name = "air",
force_place = true,
}
local M = {
name = "ufowreck:alien_metal",
force_place = true,
}
local L = {
name = "ufowreck:alien_light",
force_place = true,
}
local G = {
name = "ufowreck:alien_glass",
force_place = true,
}
local D1 = {
name = "ufowreck:alien_door_closed", param2=3,
force_place = true,
}
local D2 = {
name = "ufowreck:alien_door_closed", param2=1,
force_place = true,
}
local D3 = {
name = "ufowreck:alien_door_closed_top", param2=3,
force_place = true,
}
local D4 = {
name = "ufowreck:alien_door_closed_top", param2=1,
force_place = true,
}
local D5 = {
name = "ufowreck:alien_door_closed", param2=2,
force_place = true,
}
local D6 = {
name = "ufowreck:alien_door_closed", param2=0,
force_place = true,
}
local D7 = {
name = "ufowreck:alien_door_closed_top", param2=2,
force_place = true,
}
local D8 = {
name = "ufowreck:alien_door_closed_top", param2=0,
force_place = true,
}
local W = {
name = "technic:hv_cable",
force_place = true,
}
local L1 = {
name = "ufowreck:alien_lighter",
force_place = true,
}
local SS = {
name = "technic:switching_station",
force_place = true,
}
local C = {
name = "ufowreck:alien_control",
force_place = true,
}
local E = {
name = "ufowreck:alien_engine",
force_place = true,
}
local H = {
name = "ufowreck:alien_health_charger8", param2=3,
force_place = true,
}
local P1 = {name = "ufowreck:locked_crate",
force_place = true,}
local P2 = {name = "air", force_place = true,}
local P3 = {name = "air", force_place = true,}
local i = math.random(3)
if i == 1 then
P2 = {name = "ufowreck:bar_light", prob = 100,force_place = true,}
elseif i == 2 then
P2 = {name = "ufowreck:crate", prob = 100,force_place = true,}
end;
local j = math.random(4)
if j == 1 then
P3 = {name = "ufowreck:eye_tree", prob = 100,force_place = true,}
elseif j == 2 then
P3 = {name = "ufowreck:predatory_plant", prob = 100,force_place = true,}
elseif j == 3 then
P3 = {name = "ufowreck:alien_egg", prob = 100,force_place = true,}
else
P3 = {name = "ufowreck:glow_plant", prob = 100,force_place = true,}
end
local S = {
name = "ufowreck:floob_spawner",
force_place = true,
}
if math.random(2) == 1 then rotx = '180'
else rotx = '0'
end
ufowreck_base = {
size = {x = 26, y = 7, z = 26},
data = {
--1
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, G, G, G, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--2
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, C, C, C, C, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, A, A, A, A, G, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--3
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, A, A, A, A, A, A, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, A, A, A, A, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--4
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, G, A, A, A, A, A, A, A, A, G, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--5
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--6
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, L, A, A, L, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, L, A, A, L, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, L, A, A, L, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--7
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, M, M, D6, D5, M, M, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, M, M, D8, D7, M, M, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--8
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, A, A, A, A, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--9
_, _, _, _, _, _, _, _, M, M, M, M, S, S, M, M, M, M, _, _, _, _, _, _, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, M, M, M, M, _, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, G, G, G, G, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, A, A, A, A, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, M, M, G, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--10
_, _, _, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, _, _, _,
_, M, M, P2, P2, P2, P2, M, A, A, A, A, A, A, A, A, A, A, M, P3, P3, P3, P3, M, M, _,
_, M, M, P2, P2, P2, P2, M, A, A, A, A, A, A, A, A, A, A, M, A, A, A, A, M, M, _,
_, _, _, M, M, M, M, M, A, A, A, A, A, A, A, A, A, A, M, M, M, M, M, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, A, A, A, A, G, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, M, M, G, _, _, _, _, _, _, _, _, _, _, _,
--11
_, _, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, _, _,
_, M, A, A, A, A, M, A, A, A, A, A, A, A, A, A, A, A, A, M, P3, P3, P3, P3, M, _,
_, M, A, A, A, A, M, A, A, A, A, A, A, A, A, A, A, A, A, M, A, A, A, A, M, _,
_, _, M, A, A, A, M, M, A, A, A, A, A, A, A, A, A, A, M, M, A, A, A, M, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, M, M, M, M, _, _, _,
_, _, _, _, _, _, _, _, _, G, A, A, A, A, A, A, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, G, G, M, M, G, G, _, _, _, _, _, _, _, _, _, _,
--12
_, M, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, M, _,
M, M, A, A, A, L, M, A, A, A, A, L, M, M, L, A, A, A, A, M, P3, P3, P3, P3, M, M,
M, M, A, A, A, L, M, A, A, A, A, L, A, A, L, A, A, A, A, M, A, A, A, A, M, M,
_, M, A, A, A, L, M, M, A, A, A, L, A, A, L, A, A, A, M, M, A, A, A, A, M, _,
_, _, M, M, M, M, M, M, A, A, A, L, A, A, L, A, A, A, M, M, M, M, M, M, _, _,
_, _, _, _, _, _, _, _, G, A, A, L, M, M, L, A, A, G, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, M, G, G, M, G, G, _, _, _, _, _, _, _, _, _,
--13
_, M, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, M, _,
_, D1, A, A, A, A, D1, A, A, A, A, M, W, W, M, A, A, A, A, D1, A, A, A, A, D1, _,
_, D3, A, A, A, A, D3, A, A, A, A, A, E, H, A, A, A, A, A, D3, A, A, A, A, D3, _,
_, M, A, A, A, A, M, M, A, A, A, M, A, A, M, A, A, A, M, M, A, A, A, A, M, _,
_, _, M, M, M, M, M, M, A, A, A, A, A, A, A, A, A, A, M, M, M, M, M, M, _, _,
_, _, _, _, _, _, _, _, M, A, A, M, A, A, M, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, G, M, M, G, M, M, _, _, _, _, _, _, _, _, _,
--center
--14
_, M, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, M, _,
_, D2, A, A, A, A, D2, A, A, A, A, M, W, W, M, A, A, A, A, D2, A, A, A, A, D2, _,
_, D4, A, A, A, A, D4, A, A, A, A, A, L1, SS, A, A, A, A, A, D4, A, A, A, A, D4, _,
_, M, A, A, A, A, M, M, A, A, A, M, A, A, M, A, A, A, M, M, A, A, A, A, M, _,
_, _, M, M, M, M, M, M, A, A, A, A, A, A, A, A, A, A, M, M, M, M, M, M, _, _,
_, _, _, _, _, _, _, _, M, A, A, M, A, A, M, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, G, M, M, G, M, M, _, _, _, _, _, _, _, _, _,
--15
_, M, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, M, _,
M, M, A, A, A, L, M, A, A, A, A, L, M, M, L, A, A, A, A, M, P3, P3, P3, P3, M, M,
M, M, A, A, A, L, M, A, A, A, A, L, A, A, L, A, A, A, A, M, A, A, A, A, M, M,
_, M, A, A, A, L, M, M, A, A, A, L, A, A, L, A, A, A, M, M, A, A, A, A, M, _,
_, _, M, M, M, M, M, M, A, A, A, L, A, A, L, A, A, A, M, M, M, M, M, M, _, _,
_, _, _, _, _, _, _, _, G, A, A, L, M, M, L, A, A, G, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, M, G, G, M, G, G, _, _, _, _, _, _, _, _, _,
--11
_, _, M, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, M, _, _,
_, M, A, A, A, A, M, A, A, A, A, A, A, A, A, A, A, A, A, M, P3, P3, P3, P3, M, _,
_, M, A, A, A, A, M, A, A, A, A, A, A, A, A, A, A, A, A, M, A, A, A, A, M, _,
_, _, M, A, A, A, M, M, A, A, A, A, A, A, A, A, A, A, M, M, A, A, A, M, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, M, M, M, M, _, _, _,
_, _, _, _, _, _, _, _, _, G, A, A, A, A, A, A, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, G, G, M, M, G, G, _, _, _, _, _, _, _, _, _, _,
--10
_, _, _, M, M, M, M, M, M, M, M, M, S, S, M, M, M, M, M, M, M, M, M, _, _, _,
_, M, M, P2, P2, P2, P2, M, A, A, A, A, A, A, A, A, A, A, M, P3, P3, P3, P3, M, M, _,
_, M, M, P2, P2, P2, P2, M, A, A, A, A, A, A, A, A, A, A, M, A, A, A, A, M, M, _,
_, _, _, M, M, M, M, M, A, A, A, A, A, A, A, A, A, A, M, M, M, M, M, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, A, A, A, A, G, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, M, M, G, _, _, _, _, _, _, _, _, _, _, _,
--9
_, _, _, _, _, _, _, _, M, M, M, M, S, S, M, M, M, M, _, _, _, _, _, _, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, M, M, M, M, _, _, _,
_, _, _, M, M, M, M, _, M, A, A, A, A, A, A, A, A, M, _, G, G, G, G, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, A, A, A, A, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, M, M, G, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--8
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, A, A, A, A, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--7
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P1, M, M, D6, D5, M, M, P2, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P2, M, M, D8, D7, M, M, P2, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--6
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P2, A, L, A, A, L, P1, P2, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P2, A, L, A, A, L, A, P2, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, L, A, A, L, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--5
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P2, A, A, A, A, A, A, P1, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, A, A, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--4
_, _, _, _, _, _, _, _, _, M, M, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, M, P1, A, P1, P2, A, A, A, P2, M, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, G, P2, A, P2, A, A, A, A, P2, G, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, A, A, A, A, A, A, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--3
_, _, _, _, _, _, _, _, _, _, M, M, M, M, M, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, P1, A, A, A, A, P1, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, A, A, A, A, A, A, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, M, A, A, A, A, M, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--2
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, M, M, P1, P2, P2, P2, M, M, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, G, G, P1, P2, P2, A, G, G, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
--1
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, M, M, M, M, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, G, G, G, G, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _,
}
}
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:stone", "default:dirt_with_coniferous_litter", "default:dirt_with_rainforest_litter", "default:dirt_with_snow", "default:snow",
"default:permafrost_with_stones", "default:sand", "default:dirt_with_grass"},
biomes = {"sandstone_desert_ocean", "desert_ocean",
"icesheet_ocean", "tundra_ocean", "taiga_ocean", "snowy_grassland_ocean", "grassland_ocean", "coniferous_forest_ocean", "deciduous_forest_ocean", "cold_desert_ocean", "savanna_ocean",
"rainforest_ocean", "underground", "floatland_coniferous_forest", "floatland_coniferous_forest_ocean"},
sidelen = 5,
fill_ratio = 0.0000000000000001,
schematic = ufowreck_base,
rotation = rotx,
y_min = -31000,
y_max = -10,
flags = {place_center_z = true, place_center_x = true},
})

View File

@ -5,12 +5,20 @@ dofile(modpath.."/invader.lua")
dofile(modpath.."/engine.lua")
dofile(modpath.."/tools.lua")
dofile(modpath.."/miniufo.lua")
dofile(modpath.."/lighter.lua")
dofile(modpath.."/base.lua")
local _ = {
name = "air",
prob = 0,
}
local A = {
name = "air",
prob = 0,
force_place = true,
}
local M = {
name = "ufowreck:alien_metal",
force_place = true,
@ -344,5 +352,4 @@ minetest.register_decoration({
y_min = -20,
y_max = 31000,
flags = {place_center_z = true, place_center_x = true},
})
})

112
lighter.lua Normal file
View File

@ -0,0 +1,112 @@
minetest.register_node("ufowreck:alien_lighter", {
description = "Alien Lighter",
tiles = {
"scifi_nodes_lighttop.png",
"scifi_nodes_lighttop.png",
{name="alien_lighter.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
{name="alien_lighter.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
{name="alien_lighter.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},},
{name="alien_lighter.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.00},}
},
light_source = 5,
groups = {cracky=2, technic_machine = 1, technic_hv = 1, technic_mv = 1},
connect_sides = {"top", "bottom"},
sounds = default.node_sound_metal_defaults(),
drop = "ufowreck:alien_lighter",
after_place_node = function(pos,placer,itemstack)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "Alien Lighter")
meta:set_int("HV_EU_demand", 4500)
pos.x = pos.x - 6
pos.y = pos.y + 2
pos.z = pos.z - 6
local xi, yi, zi
for xi = 0, 6 do
for zi = 0, 6 do
if (minetest.get_node(pos)).name == "air" then
minetest.set_node(pos,{name = "ufowreck:airlight"})
-- minetest.set_node(pos,{name = "default:torch"})
end
pos.z = pos.z + 2
end
pos.x = pos.x + 2
pos.z = pos.z - 14
end
end,
after_dig_node = function(pos)
pos.x = pos.x - 6
pos.y = pos.y + 2
pos.z = pos.z - 6
local xi, yi, zi
for xi = 0, 6 do
for zi = 0, 6 do
if (minetest.get_node(pos)).name == "ufowreck:airlight" then
-- if (minetest.get_node(pos)).name == "default:torch" then
minetest.set_node(pos,{name = "air"})
end
pos.z = pos.z + 2
end
pos.x = pos.x + 2
pos.z = pos.z - 14
end
end,
})
technic.register_machine("HV", "ufowreck:alien_lighter", technic.receiver)
minetest.register_node("ufowreck:airlight", {
description = "air light",
paramtype = "light",
drawtype = "airlike",
light_source = 14,
sunlight_propagates = true,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_int("life", 12)
end
})
minetest.register_abm({
nodenames = {"ufowreck:alien_lighter"},
interval = 10,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local meta = minetest.get_meta(pos)
pos.x = pos.x - 6
pos.y = pos.y + 2
pos.z = pos.z - 6
if meta:get_int("HV_EU_input") < 4500 then
local xi, yi, zi
for xi = 0, 6 do
for zi = 0, 6 do
-- if (minetest.get_node(pos)).name == "ufowreck:airlight" then
if (minetest.get_node(pos)).name == "default:torch" then
minetest.set_node(pos,{name = "air"})
end
pos.z = pos.z + 2
end
pos.x = pos.x + 2
pos.z = pos.z - 14
end
else
for xi = 0, 6 do
for zi = 0, 6 do
if (minetest.get_node(pos)).name == "air" then
-- minetest.set_node(pos,{name = "ufowreck:airlight"})
minetest.set_node(pos,{name = "default:torch"})
end
pos.z = pos.z + 2
end
pos.x = pos.x + 2
pos.z = pos.z - 14
end
end
end
})

View File

@ -324,7 +324,11 @@ minetest.register_node("ufowreck:alien_door_opened", {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
drop = closed,
drop = {
items = {
{items = {'ufowreck:alien_door_closed'}},
}
},
groups = {cracky = 1},
node_box = {
type = "fixed",
@ -634,7 +638,7 @@ minetest.register_node("ufowreck:glow_plant", {
}
},
is_ground_content = false,
light_source = 15,
light_source = 14,
})
minetest.register_node("ufowreck:pad", {

BIN
textures/alien_lighter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

BIN
textures/alien_lighter.xcf Normal file

Binary file not shown.