mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-07-15 22:40:24 +02:00
Compare commits
11 Commits
1.0.2
...
d66e04f9b1
Author | SHA1 | Date | |
---|---|---|---|
d66e04f9b1 | |||
2e035f37e9 | |||
d3d6a7bf79 | |||
178fd9c48b | |||
e34fdde795 | |||
d2dd770635 | |||
1993068ed1 | |||
436f51ab0d | |||
749d59a530 | |||
bd58dbc48b | |||
4eaba4f6e1 |
@ -1282,10 +1282,13 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- https://forum.minetest.net/viewtopic.php?f=10&t=13125&p=261481#p261481
|
-- https://forum.minetest.net/viewtopic.php?f=10&t=13125&p=261481#p261481
|
||||||
|
-- with modified recipe
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'scifi_nodes:windowpanel 4',
|
output = 'scifi_nodes:windowpanel',
|
||||||
recipe = {
|
recipe = {
|
||||||
{"scifi_nodes:glass","",""}
|
{"scifi_nodes:glass_pane","scifi_nodes:glass_pane",""},
|
||||||
|
{"scifi_nodes:glass_pane","scifi_nodes:glass_pane",""},
|
||||||
|
{"","",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
3
init.lua
3
init.lua
@ -20,5 +20,6 @@ dofile(MP.."/nodeboxes.lua")
|
|||||||
dofile(MP.."/palm_scanner.lua")
|
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.."/octagon_panes.lua")
|
dofile(MP.."/octagon_panes.lua")
|
||||||
|
dofile(MP.."/crafts.lua")
|
||||||
|
minetest.log("action", "[scifi_nodes] loaded.")
|
||||||
|
@ -475,6 +475,12 @@ minetest.register_node("scifi_nodes:light_dynamic", {
|
|||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||||
},
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||||
|
}
|
||||||
|
},
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = default.LIGHT_MAX,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
@ -1080,10 +1086,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
|
||||||
|
Reference in New Issue
Block a user