1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2025-07-13 13:30:28 +02:00

11 Commits

5 changed files with 8 additions and 7 deletions

View File

@ -4,6 +4,7 @@
![](https://github.com/D00Med/scifi_nodes/workflows/luacheck/badge.svg) ![](https://github.com/D00Med/scifi_nodes/workflows/luacheck/badge.svg)
![](https://github.com/D00Med/scifi_nodes/workflows/integration-test/badge.svg) ![](https://github.com/D00Med/scifi_nodes/workflows/integration-test/badge.svg)
[![ContentDB](https://content.minetest.net/packages/D00Med/scifi_nodes/shields/downloads/)](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.

View File

@ -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"}
} }
}) })

View File

@ -22,3 +22,5 @@ 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") dofile(MP.."/octagon_panes.lua")
minetest.log("action", "[scifi_nodes] loaded.")

View File

@ -1080,10 +1080,9 @@ minetest.register_node("scifi_nodes:itemholder", {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
if name == meta:get_string("owner") or if name == meta:get_string("owner") or
minetest.check_player_privs(name, "protection_bypass") then minetest.check_player_privs(name, "protection_bypass") then
local wield_item = clicker:get_wielded_item():get_name()
local taken = item:take_item() local taken = item:take_item()
if taken and not taken:is_empty() then if taken and not taken:is_empty() then
minetest.add_item(pos, wield_item) minetest.add_item(pos, taken:to_string())
return item return item
end end
end end

View File

@ -19,7 +19,7 @@ local function register(basename, description, texture)
is_ground_content = false, is_ground_content = false,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {{-0.5, -0.5, 0, 0.5, 0.5, 0}}, fixed = {{-0.5, -0.5, -0.03125, 0.5, 0.5, 0.03125}},
}, },
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -44,7 +44,7 @@ local function register(basename, description, texture)
is_ground_content = false, is_ground_content = false,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {{-0.5, -0.5, 0, 0.5, 1.5, 0}}, fixed = {{-0.5, -0.5, -0.03125, 0.5, 1.5, 0.03125}},
}, },
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -69,7 +69,7 @@ local function register(basename, description, texture)
is_ground_content = false, is_ground_content = false,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {{-0.5, -0.5, 1, 0.5, 0.5, 1}}, fixed = {{-0.5, -0.5, 0.96875, 0.5, 0.5, 1.03125}},
}, },
selection_box = { selection_box = {
type = "fixed", type = "fixed",