mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
Merge pull request #10 from acmgit/master
Recipes for various Nodes added. Registered some Nodes for stairsplus…
This commit is contained in:
commit
7408d5c085
@ -3,9 +3,10 @@ Minetest mod that adds scifi themed nodes
|
||||
|
||||
**Adding Recipes for the unfinished scifi_nodes**
|
||||
|
||||
** Added support for stairsplus **
|
||||
|
||||
# Attributions
|
||||
|
||||
CC BY-NC 3.0
|
||||
* scifi_nodes_door_normal.ogg tlwmdbt https://freesound.org/people/tlwmdbt/sounds/165862/
|
||||
* scifi_nodes_door_mechanic.ogg primeval_polypod https://freesound.org/people/primeval_polypod/sounds/156507/
|
||||
* scifi_nodes_door_mechanic.ogg primeval_polypod https://freesound.org/people/primeval_polypod/sounds/156507/
|
||||
|
426
crafts.lua
426
crafts.lua
@ -10,6 +10,27 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:super_white",
|
||||
recipe = {
|
||||
{"scifi_nodes:white2", "default:torch", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:ultra_white",
|
||||
recipe = {
|
||||
{"default:torch", "scifi_nodes:white2", "default:torch"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:ultra_white",
|
||||
recipe = {
|
||||
{"scifi_nodes:super_white", "default:torch", ""}
|
||||
}
|
||||
})
|
||||
|
||||
-- 6 plastic wall from 6 plastic
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:white 6",
|
||||
@ -1257,3 +1278,408 @@ minetest.register_craft({
|
||||
{"scifi_nodes:glass","",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:powered_stand",
|
||||
recipe = {
|
||||
{"", "default:junglewood", ""},
|
||||
{"default:fence_junglewood", "default:fence_junglewood", "default:fence_junglewood"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:door3a 2",
|
||||
recipe = {
|
||||
{"scifi_nodes:white2", "scifi_nodes:white2", ""},
|
||||
{"scifi_nodes:white2", "scifi_nodes:white2", "scifi_nodes:white_pad"},
|
||||
{"scifi_nodes:white2", "scifi_nodes:white2", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:door4a 2",
|
||||
recipe = {
|
||||
{"scifi_nodes:doomwall2"},
|
||||
{"scifi_nodes:doomwall2"},
|
||||
{"scifi_nodes:doomwall2"}
|
||||
}
|
||||
})
|
||||
|
||||
--[[
|
||||
-- 1 metal plant pot from 1 greybolts and 1 clean glass
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:pot",
|
||||
recipe = {
|
||||
{"moreblocks:clean_glass"},
|
||||
{"default:dirt"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
]]--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:flower1",
|
||||
recipe = {
|
||||
{"flowers:viola"},
|
||||
{"default:dirt"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:flower2",
|
||||
recipe = {
|
||||
{"flowers:dandelion_white","flowers:rose"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:flower3",
|
||||
recipe = {
|
||||
{"flowers:mushroom_brown"},
|
||||
{"default:dirt"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:flower4",
|
||||
recipe = {
|
||||
{"flowers:viola","default:junglegrass"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant1",
|
||||
recipe = {
|
||||
{"flowers:geranium"},
|
||||
{"default:dirt"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant2",
|
||||
recipe = {
|
||||
{"flowers:mushroom_red","default:grass_1"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant3",
|
||||
recipe = {
|
||||
{"flowers:geranium","default:grass_1","flowers:geranium"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant4",
|
||||
recipe = {
|
||||
{"flowers:dandelion_white","default:grass_1","flowers:dandelion_white"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant5",
|
||||
recipe = {
|
||||
{"default:grass_1"},
|
||||
{"default:dirt"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant6",
|
||||
recipe = {
|
||||
{"flowers:viola","default:grass_1"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant7",
|
||||
recipe = {
|
||||
{"flowers:mushroom_brown","default:grass_1","flowers:mushroom_brown"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant8",
|
||||
recipe = {
|
||||
{"flowers:viola","default:junglegrass"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant9",
|
||||
recipe = {
|
||||
{"flowers:viola","default:grass_1","flowers:dandelion"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant10",
|
||||
recipe = {
|
||||
{"default:grass_1","flowers:dandelion","default:grass_1"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:grassblk",
|
||||
recipe = {
|
||||
{"default:grass_1","default:junglegrass","default:grass_1"},
|
||||
{"","default:dirt",""},
|
||||
{"","scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:grass",
|
||||
recipe = {
|
||||
{"default:grass_1","default:junglegrass"},
|
||||
{"default:dirt",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:egg",
|
||||
recipe = {
|
||||
{"default:clay_lump","default:clay_lump","default:clay_lump"},
|
||||
{"default:clay_lump","dye:blue","default:clay_lump"},
|
||||
{"default:clay_lump","default:clay_lump","default:clay_lump"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:eyetree",
|
||||
recipe = {
|
||||
{"scifi_nodes:egg"},
|
||||
{"default:sapling"},
|
||||
{"scifi_nodes:greybolts"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:gloshroom",
|
||||
recipe = {
|
||||
{"default:grass_1","flowers:mushroom_red"},
|
||||
{"default:tin_ingot",""},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:plant_trap",
|
||||
recipe = {
|
||||
{"vessels:drinking_glass","scifi_nodes:lightbars"},
|
||||
{"scifi_nodes:greybolts",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:gblock 3",
|
||||
recipe = {
|
||||
{"dye:white","scifi_nodes:greenmetal","dye:green"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:gblock2 4",
|
||||
recipe = {
|
||||
{"scifi_nodes:disc","scifi_nodes:disc","scifi_nodes:disc"},
|
||||
{"","scifi_nodes:gblock",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:gblock3",
|
||||
recipe = {
|
||||
{"default:sign_wall_wood"},
|
||||
{"scifi_nodes:gblock"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:bluegrid 4",
|
||||
recipe = {
|
||||
{"scifi_nodes:bluemetal","", "scifi_nodes:bluemetal"},
|
||||
{"scifi_nodes:bluemetal","default:obsidian_glass", "scifi_nodes:bluemetal"},
|
||||
{"scifi_nodes:bluemetal","", "scifi_nodes:bluemetal"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:red 4",
|
||||
recipe = {
|
||||
{"scifi_nodes:blackplate","", "scifi_nodes:blackplate"},
|
||||
{"","dye:red",""},
|
||||
{"scifi_nodes:blackplate","", "scifi_nodes:blackplate"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:wallpipe 3",
|
||||
recipe = {
|
||||
{"default:papyrus","scifi_nodes:grnpipe", "scifi_nodes:liquid_pipe"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall41 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","dye:blue","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","dye:blue","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall42 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","dye:black","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","dye:yellow","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall43 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","dye:black","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","dye:yellow","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall43 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","scifi_nodes:white","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall431 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","scifi_nodes:white","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall44 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:doomwall44 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"},
|
||||
{"scifi_nodes:black","dye:dark_green","scifi_nodes:black"},
|
||||
{"scifi_nodes:white","default:grass_1","scifi_nodes:white"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:pipe 8',
|
||||
recipe = {
|
||||
{"scifi_nodes:greenmetal","scifi_nodes:vent2","scifi_nodes:greenmetal"},
|
||||
{"scifi_nodes:greenmetal","","scifi_nodes:greenmetal"},
|
||||
{"scifi_nodes:greenmetal","scifi_nodes:vent2","scifi_nodes:greenmetal"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:pipeside 8',
|
||||
recipe = {
|
||||
{"scifi_nodes:greenmetal","scifi_nodes:greenmetal","scifi_nodes:greenmetal"},
|
||||
{"scifi_nodes:vent2","","scifi_nodes:vent2"},
|
||||
{"scifi_nodes:greenmetal","scifi_nodes:greenmetal","scifi_nodes:greenmetal"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:computer',
|
||||
recipe = {
|
||||
{"default:bookshelf","default:diamond","default:copper_ingot"},
|
||||
{"","scifi_nodes:black_lights",""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:cover',
|
||||
recipe = {
|
||||
{"scifi_nodes:dent","default:wood","scifi_nodes:dent"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:pipen',
|
||||
recipe = {
|
||||
{"scifi_nodes:black","","scifi_nodes:black"},
|
||||
{"scifi_nodes:black","scifi_nodes:vent2","scifi_nodes:black"},
|
||||
{"scifi_nodes:black","","scifi_nodes:black"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:alienslope 6',
|
||||
recipe = {
|
||||
{"scifi_nodes:screen3",""},
|
||||
{"scifi_nodes:grnpipe","scifi_nodes:vent2"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:stripes2top 3',
|
||||
recipe = {
|
||||
{"scifi_nodes:black","scifi_noedes:black","scifi_nodes:black"},
|
||||
{"default:silver_sand","default:silver_sand","default:silver_sand"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'scifi_nodes:stripes2 2',
|
||||
recipe = {
|
||||
{"scifi_nodes:stripes2top"},
|
||||
{"scifi_nodes:stripes"}
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,8 +1,11 @@
|
||||
default
|
||||
basic_materials
|
||||
xpanes?
|
||||
moreblocks?
|
||||
mesecons?
|
||||
mesecons_microcontroller?
|
||||
mesecons_button?
|
||||
mesecons_torch?
|
||||
mesecons_receiver?
|
||||
dye?
|
||||
|
||||
|
12
init.lua
12
init.lua
@ -499,6 +499,8 @@ node.types = {
|
||||
{"blue", "blue lines", "blue"},
|
||||
{"holes", "metal with holes","holes"},
|
||||
{"white2", "plastic", "white2"},
|
||||
{"super_white", "Super Plastic", "super_white", 11},
|
||||
{"ultra_white", "Ultra Plastic", "ultra_white", default.LIGHT_MAX},
|
||||
{"engine", "engine", "engine"},
|
||||
{"wall", "metal wall", "wall"},
|
||||
{"white", "plastic wall", "white"},
|
||||
@ -564,10 +566,10 @@ node.types = {
|
||||
{"monitorwall", "Wall monitors", "monitorwall"},
|
||||
{"screen3", "Wall monitor", "screen3"},
|
||||
{"doomlight", "Doom light", "doomlight", 12},
|
||||
{"bluwllight", "Blue wall light", "capsule3", 20},
|
||||
{"bluwllight", "Blue wall light", "capsule3", default.LIGHT_MAX},
|
||||
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
||||
{"fan", "Fan", "fan"},
|
||||
{"ppllght", "Purple wall light", "", 50},
|
||||
{"ppllght", "Purple wall light", "", default.LIGHT_MAX},
|
||||
{"pplwll", "Purple wall", "", 0},
|
||||
{"pplwll2", "Purple wall2", "", 0},
|
||||
{"pplwll3", "Purple wall3", "", 0},
|
||||
@ -596,12 +598,12 @@ for _, row in ipairs(node.types) do
|
||||
end
|
||||
|
||||
node.plants = {
|
||||
{"flower1", "Glow Flower", 1,0, 50},
|
||||
{"flower1", "Glow Flower", 1,0, default.LIGHT_MAX},
|
||||
{"flower2", "Pink Flower", 1.5,0, 10},
|
||||
{"flower3", "Triffid", 2,5, 0},
|
||||
{"flower4", "Weeping flower", 1.5,0, 0},
|
||||
{"plant1", "Bulb Plant", 1,0, 0},
|
||||
{"plant2", "Trap Plant", 1.5,0, 30},
|
||||
{"plant2", "Trap Plant", 1.5,0, default.LIGHT_MAX},
|
||||
{"plant3", "Blue Jelly Plant", 1.2,0, 10},
|
||||
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
||||
{"plant5", "Fern Plant", 1.7,0, 0},
|
||||
@ -790,7 +792,7 @@ minetest.register_node("scifi_nodes:lightstp", {
|
||||
tiles = {
|
||||
"scifi_nodes_lightstripe.png"
|
||||
},
|
||||
light_source = 14,
|
||||
light_source = default.LIGHT_MAX,
|
||||
paramtype = "light",
|
||||
groups = {cracky=1}
|
||||
})
|
||||
|
4
mod.conf
Normal file
4
mod.conf
Normal file
@ -0,0 +1,4 @@
|
||||
name = scifi_nodes
|
||||
description = A mod which the vegan kitchen to Minetest.
|
||||
depends = default,dye,basic_materials
|
||||
optional_depends = xpanes,moreblocks,mesecons,mesecons_microcontroller,mesecons_button,mesecons_torch,mesecons_receiver
|
140
models.lua
140
models.lua
@ -37,33 +37,12 @@ minetest.register_node("scifi_nodes:slope_"..name, {
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- register some blocks in stairsplus if available (part of moreblocks)
|
||||
local has_moreblocks = minetest.get_modpath("moreblocks")
|
||||
if has_moreblocks then
|
||||
-- register black tile 2 in stairsplus
|
||||
stairsplus:register_all("scifi_nodes", "blacktile2", "scifi_nodes:blacktile2", {
|
||||
description = "black tile 2",
|
||||
tiles = {"scifi_nodes_blacktile2.png"},
|
||||
groups = {cracky=1}
|
||||
})
|
||||
|
||||
-- register white block in stairsplus
|
||||
-- previous "local" slope has the same name and does not need to be aliased
|
||||
stairsplus:register_all("scifi_nodes", "white", "scifi_nodes:white", {
|
||||
description = "White",
|
||||
tiles = {"scifi_nodes_white.png"},
|
||||
groups = {cracky=1}
|
||||
})
|
||||
|
||||
|
||||
else
|
||||
-- register local slope
|
||||
scifi_nodes.register_slope("white", "White", {"scifi_nodes_white.png",}, 0)
|
||||
end
|
||||
|
||||
scifi_nodes.register_slope("white2", "Plastic", {"scifi_nodes_white2.png",}, 0)
|
||||
scifi_nodes.register_slope("super_white", "Super Plastic", {"scifi_nodes_super_white.png",}, 11)
|
||||
scifi_nodes.register_slope("ultra_white", "Super Plastic", {"scifi_nodes_ultra_white.png",}, default.LIGHT_MAX)
|
||||
scifi_nodes.register_slope("black", "Black", {"scifi_nodes_black.png",}, 0)
|
||||
scifi_nodes.register_slope("white", "White", {"scifi_nodes_white.png",}, 0)
|
||||
scifi_nodes.register_slope("grey", "Grey", {"scifi_nodes_grey.png",}, 0)
|
||||
scifi_nodes.register_slope("bluebars", "Blue bars", {"scifi_nodes_bluebars.png",}, 0)
|
||||
scifi_nodes.register_slope("mesh2", "Metal floormesh", {"scifi_nodes_mesh2.png",}, 0)
|
||||
@ -76,8 +55,8 @@ scifi_nodes.register_slope("holes", "Holes", {"scifi_nodes_holes.png",}, 0)
|
||||
scifi_nodes.register_slope("pipe", "Pipe", {"scifi_nodes_pipe.png",}, 0)
|
||||
scifi_nodes.register_slope("stripes", "Stripes", {"scifi_nodes_stripes.png",}, 0)
|
||||
scifi_nodes.register_slope("screen", "Screen", {"scifi_nodes_screen3.png",}, 5)
|
||||
scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, 20)
|
||||
scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, 20)
|
||||
scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, default.LIGHT_MAX)
|
||||
scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, default.LIGHT_MAX)
|
||||
scifi_nodes.register_slope("wallpipe", "Alien Pipe", {"scifi_nodes_wallpipe.png",}, 0)
|
||||
scifi_nodes.register_slope("alien", "Alien Wall", {"scifi_nodes_alnslp.png",}, 0)
|
||||
scifi_nodes.register_slope("purple", "Purple", {"scifi_nodes_purple.png",}, 0)
|
||||
@ -87,3 +66,112 @@ scifi_nodes.register_slope("bluemetal", "Blue metal", {"scifi_nodes_bluemetal.pn
|
||||
scifi_nodes.register_slope("wall", "Metal wall", {"scifi_nodes_wall.png",}, 0)
|
||||
scifi_nodes.register_slope("rough", "Rough metal", {"scifi_nodes_rough.png",}, 0)
|
||||
scifi_nodes.register_slope("blklt2", "Black stripe light", {"scifi_nodes_black_light2.png",}, 10)
|
||||
|
||||
-- Register Nodes for Stairsplus
|
||||
local node = {}
|
||||
|
||||
node.types = {
|
||||
{"blue", "blue lines", "blue"},
|
||||
{"holes", "metal with holes","holes"},
|
||||
{"white2", "plastic", "white2"},
|
||||
{"super_white", "Super Plastic", "super_white", 11},
|
||||
{"ultra_white", "Ultra Plastic", "ultra_white", default.LIGHT_MAX},
|
||||
-- {"engine", "engine", "engine"},
|
||||
{"wall", "metal wall", "wall"},
|
||||
{"white", "plastic wall", "white"},
|
||||
{"stripes2top", "dirty metal block","metal2"},
|
||||
{"rough", "rough metal", "rough"},
|
||||
{"lighttop", "metal block", "metal"},
|
||||
{"red", "red lines", "red"},
|
||||
{"green", "green lines", "green"},
|
||||
{"vent2", "vent", "vent"},
|
||||
{"stripes", "hazard stripes", "stripes"},
|
||||
{"rust", "rusty metal", "rust"},
|
||||
{"mesh", "metal mesh", "mesh"},
|
||||
{"black", "black wall", "black"},
|
||||
{"blackoct", "black octagon", "blackoct"},
|
||||
{"blackpipe", "black pipe", "blackpipe"},
|
||||
{"blacktile", "black tile", "blktl"},
|
||||
{"blacktile2", "black tile 2", "blktl2"},
|
||||
{"blackvent", "black vent", "blkvnt"},
|
||||
{"bluebars", "blue bars", "bluebars"},
|
||||
{"bluemetal", "blue metal", "blumtl"},
|
||||
{"bluetile", "blue tile", "blutl"},
|
||||
{"greytile", "grey tile", "grytl"},
|
||||
{"mesh2", "metal floormesh", "mesh2"},
|
||||
{"white", "plastic wall", "white"},
|
||||
{"pipe", "wall pipe", "pipe2"},
|
||||
{"pipeside", "side pipe", "pipe3"},
|
||||
{"tile", "white tile", "tile"},
|
||||
{"whiteoct", "white octagon", "whiteoct"},
|
||||
{"whitetile", "white tile2", "whttl"},
|
||||
{"black_detail", "black detail", "blckdtl"},
|
||||
{"green_square", "green metal block", "grnblck"},
|
||||
{"red_square", "red metal block", "redblck"},
|
||||
{"grey_square", "grey metal block", "greyblck"},
|
||||
{"blue_square", "blue metal block", "blublck"},
|
||||
{"black_mesh", "black vent block", "blckmsh"},
|
||||
{"dent", "dented metal block", "dent"},
|
||||
{"greenmetal", "green metal wall", "grnmetl"},
|
||||
{"greenmetal2", "green metal wall2", "grnmetl2"},
|
||||
{"greenlights", "green wall lights", "grnlt", 10},
|
||||
{"greenlights2", "green wall lights2", "grnlt2", 10},
|
||||
{"greenbar", "green light bar", "grnlghtbr", 10},
|
||||
{"green2", "green wall panel", "grn2"},
|
||||
{"greentubes", "green pipes", "grntubes"},
|
||||
{"grey", "grey wall", "gry"},
|
||||
{"greybolts", "grey wall bolts", "gryblts"},
|
||||
{"greybars", "grey bars", "grybrs"},
|
||||
{"greydots", "grey wall dots", "grydts"},
|
||||
{"greygreenbar", "gray power pipe", "grygrnbr", 10},
|
||||
{"octofloor", "Doom floor", "octofloor"},
|
||||
{"octofloor2", "Brown Doom floor", "octofloor2"},
|
||||
{"doomwall1", "Doom wall 1", "doomwall1"},
|
||||
{"doomwall2", "Doom wall 2", "doomwall2"},
|
||||
{"doomwall3", "Doom wall 3", "doomwall3"},
|
||||
{"doomwall4", "Doom wall 4", "doomwall4"},
|
||||
{"doomwall41", "Doom wall 4.1", "doomwall4.1"},
|
||||
{"doomwall42", "Doom wall 4.2", "doomwall4.2"},
|
||||
{"doomwall43", "Doom wall 4.3", "doomwall4.3"},
|
||||
{"doomwall431", "Doom wall 4.3.1", "doomwall4.3.1"},
|
||||
{"doomwall44", "Doom wall 4.4", "doomwall4.4"},
|
||||
{"blackdmg", "Damaged black wall", "blckdmg"},
|
||||
{"blackdmgstripe", "Damaged black wall(stripes)", "blckdmgstripe"},
|
||||
{"doomengine", "Doom engine wall", "doomengine"},
|
||||
-- {"monitorwall", "Wall monitors", "monitorwall"},
|
||||
{"screen3", "Wall monitor", "screen3"},
|
||||
{"doomlight", "Doom light", "doomlight", 12},
|
||||
{"bluwllight", "Blue wall light", "capsule3", default.LIGHT_MAX},
|
||||
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
||||
{"fan", "Fan", "fan"},
|
||||
{"ppllght", "Purple wall light", "", default.LIGHT_MAX},
|
||||
{"pplwll", "Purple wall", "", 0},
|
||||
{"pplwll2", "Purple wall2", "", 0},
|
||||
{"pplwll3", "Purple wall3", "", 0},
|
||||
{"pplwll4", "Purple wall4", "", 0},
|
||||
{"pplblk", "Purple tile", "", 0},
|
||||
{"purple", "Purple node", "", 0},
|
||||
{"rock", "Moonstone", "", 0},
|
||||
{"rock2", "Moonstone2", "", 0},
|
||||
{"blackvnt", "Black vent", "", 0},
|
||||
{"blackplate", "Black plate", "", 0},
|
||||
}
|
||||
|
||||
if minetest.global_exists("stairsplus") then
|
||||
|
||||
for _, row in ipairs(node.types) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
local light = row[4]
|
||||
-- Node Definition
|
||||
stairsplus:register_all("scifi_nodes", row[1], "scifi_nodes:"..name, {
|
||||
description = desc,
|
||||
tiles = {"scifi_nodes_"..name..".png"},
|
||||
groups = {cracky=1},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = light,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
169
nodeboxes.lua
169
nodeboxes.lua
@ -301,7 +301,7 @@ minetest.register_node("scifi_nodes:gloshroom", {
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
light_source = 50,
|
||||
light_source = default.LIGHT_MAX,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
sunlight_propagates = false,
|
||||
@ -444,7 +444,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
light_source = 25,
|
||||
light_source = default.LIGHT_MAX,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
@ -460,52 +460,6 @@ minetest.register_node("scifi_nodes:lightbar", {
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
--wall switch, currently does not do anything
|
||||
minetest.register_node("scifi_nodes:switch_off", {
|
||||
description = "Wall switch",
|
||||
tiles = {
|
||||
"scifi_nodes_switch_off.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_on", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:switch_on", {
|
||||
description = "Wall switch",
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"scifi_nodes_switch_on.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 5,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_off", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
--end of wall switch
|
||||
|
||||
minetest.register_node("scifi_nodes:light_dynamic", {
|
||||
description = "Wall light",
|
||||
@ -521,7 +475,7 @@ minetest.register_node("scifi_nodes:light_dynamic", {
|
||||
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||
},
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 25,
|
||||
light_source = default.LIGHT_MAX,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
@ -568,7 +522,7 @@ minetest.register_node("scifi_nodes:lightbars", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
light_source = 25,
|
||||
light_source = default.LIGHT_MAX,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
@ -589,7 +543,7 @@ tiles = {{
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||
}},
|
||||
use_texture_alpha = true,
|
||||
light_source = 15,
|
||||
light_source = default.LIGHT_MAX,
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
@ -609,7 +563,7 @@ tiles = {
|
||||
"scifi_nodes_orange.png",
|
||||
},
|
||||
use_texture_alpha = true,
|
||||
light_source = 20,
|
||||
light_source = default.LIGHT_MAX,
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
@ -1147,7 +1101,7 @@ minetest.register_node("scifi_nodes:glassscreen", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 15,
|
||||
light_source = default.LIGHT_MAX,
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -1243,3 +1197,112 @@ minetest.register_node("scifi_nodes:windowpanel", {
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
if (mesecon ~= nil) and
|
||||
(mesecon.receptor_on ~= nil) and
|
||||
(mesecon.receptor_off ~= nil) then
|
||||
minetest.register_node("scifi_nodes:switch_off", {
|
||||
description = "Wall switch",
|
||||
tiles = {
|
||||
"scifi_nodes_switch_off.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_on", param2=node.param2})
|
||||
mesecon.receptor_on(pos)
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = { state = mesecon.state.off }}
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:switch_on", {
|
||||
description = "Wall switch",
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"scifi_nodes_switch_on.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 5,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_off", param2=node.param2})
|
||||
mesecon.receptor_off(pos)
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = { state = mesecon.state.on }}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "scifi_nodes:switch_off 2",
|
||||
recipe = {
|
||||
{"mesecons_button:button_off", "scifi_nodes:grey", ""}
|
||||
}
|
||||
})
|
||||
|
||||
else
|
||||
--wall switch, currently does not do anything
|
||||
minetest.register_node("scifi_nodes:switch_off", {
|
||||
description = "Wall switch",
|
||||
tiles = {
|
||||
"scifi_nodes_switch_off.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_on", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("scifi_nodes:switch_on", {
|
||||
description = "Wall switch",
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"scifi_nodes_switch_on.png",
|
||||
},
|
||||
inventory_image = "scifi_nodes_switch_on.png",
|
||||
wield_image = "scifi_nodes_switch_on.png",
|
||||
drawtype = "signlike",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.3, -0.3, -0.45, 0.3, 0.3}
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 5,
|
||||
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
on_rightclick = function(pos, node, clicker, item, _)
|
||||
minetest.set_node(pos, {name="scifi_nodes:switch_off", param2=node.param2})
|
||||
end,
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
--end of wall switch
|
||||
|
||||
end -- if(mesecon.receptor ~= on
|
||||
|
BIN
textures/scifi_nodes_super_white.png
Normal file
BIN
textures/scifi_nodes_super_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 B |
BIN
textures/scifi_nodes_ultra_white.png
Normal file
BIN
textures/scifi_nodes_ultra_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 B |
Loading…
Reference in New Issue
Block a user