mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-06-29 14:40:55 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
eed0d601be | |||
16ff4dcdb8 | |||
b54333d56b | |||
6492d311c8 | |||
03d097abf8 |
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
[](https://content.minetest.net/packages/D00Med/scifi_nodes/)
|
||||||
|
|
||||||
Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
|
Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
|
||||||
|
|
||||||
|
@ -1680,7 +1680,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'scifi_nodes:stripes2top 3',
|
output = 'scifi_nodes:stripes2top 3',
|
||||||
recipe = {
|
recipe = {
|
||||||
{"scifi_nodes:black","scifi_noedes:black","scifi_nodes:black"},
|
{"scifi_nodes:black","scifi_nodes:black","scifi_nodes:black"},
|
||||||
{"default:silver_sand","default:silver_sand","default:silver_sand"}
|
{"default:silver_sand","default:silver_sand","default:silver_sand"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1692,4 +1692,3 @@ minetest.register_craft({
|
|||||||
{"scifi_nodes:stripes"}
|
{"scifi_nodes:stripes"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
1
init.lua
1
init.lua
@ -21,3 +21,4 @@ dofile(MP.."/palm_scanner.lua")
|
|||||||
dofile(MP.."/digicode.lua")
|
dofile(MP.."/digicode.lua")
|
||||||
dofile(MP.."/models.lua")
|
dofile(MP.."/models.lua")
|
||||||
dofile(MP.."/crafts.lua")
|
dofile(MP.."/crafts.lua")
|
||||||
|
dofile(MP.."/octagon_panes.lua")
|
||||||
|
111
octagon_panes.lua
Normal file
111
octagon_panes.lua
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
|
||||||
|
local function register(basename, description, texture)
|
||||||
|
local nodename_single = "scifi_nodes:" .. basename .. "_pane"
|
||||||
|
local nodename_double = "scifi_nodes:" .. basename .. "_pane_double"
|
||||||
|
local nodename_offset = "scifi_nodes:" .. basename .. "_pane_offset"
|
||||||
|
local recipe_ingredient = "scifi_nodes:" .. basename
|
||||||
|
|
||||||
|
-- single height
|
||||||
|
minetest.register_node(nodename_single, {
|
||||||
|
description = description,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
texture
|
||||||
|
},
|
||||||
|
wield_image = texture,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, -0.03125, 0.5, 0.5, 0.03125}},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, -0.25, 0.5, 0.5, 0.25}},
|
||||||
|
},
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
sounds = default.node_sound_glass_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
-- double height
|
||||||
|
minetest.register_node(nodename_double, {
|
||||||
|
description = description,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
texture
|
||||||
|
},
|
||||||
|
wield_image = texture,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, -0.03125, 0.5, 1.5, 0.03125}},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, -0.25, 0.5, 1.5, 0.25}},
|
||||||
|
},
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
sounds = default.node_sound_glass_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
-- single height with offset
|
||||||
|
minetest.register_node(nodename_offset, {
|
||||||
|
description = description,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
texture
|
||||||
|
},
|
||||||
|
wield_image = texture,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, 0.96875, 0.5, 0.5, 1.03125}},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.5, -0.5, 0.75, 0.5, 0.5, 1.25}},
|
||||||
|
},
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
sounds = default.node_sound_glass_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
-- register recipes
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = nodename_single .. " 16",
|
||||||
|
recipe = {
|
||||||
|
{recipe_ingredient}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = nodename_double .. " 16",
|
||||||
|
recipe = {
|
||||||
|
{recipe_ingredient},
|
||||||
|
{recipe_ingredient}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = nodename_offset,
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {nodename_single},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
register("octrng", "Orange Octagon Glass pane", "scifi_nodes_octrng.png")
|
||||||
|
register("octgrn", "Green Octagon Glass pane", "scifi_nodes_octgrn.png")
|
||||||
|
register("octbl", "Blue Octagon Glass pane", "scifi_nodes_octbl.png")
|
||||||
|
register("octppl", "Purple Octagon Glass pane", "scifi_nodes_octppl.png")
|
||||||
|
register("glass", "Dark Glass pane", "scifi_nodes_glass.png")
|
Reference in New Issue
Block a user