mirror of
https://github.com/pyrollo/digiterms.git
synced 2024-08-20 21:16:15 +02:00
Added scifi monitors crafts
This commit is contained in:
parent
ece5251186
commit
f81d33dba5
10
init.lua
10
init.lua
@ -23,17 +23,15 @@ digiterms.name = minetest.get_current_modname()
|
|||||||
digiterms.path = minetest.get_modpath(digiterms.name)
|
digiterms.path = minetest.get_modpath(digiterms.name)
|
||||||
digiterms.font = "mozart"
|
digiterms.font = "mozart"
|
||||||
|
|
||||||
|
display_api.register_display_entity("digiterms:screen")
|
||||||
|
|
||||||
dofile(digiterms.path.."/font_mozart.lua")
|
dofile(digiterms.path.."/font_mozart.lua")
|
||||||
dofile(digiterms.path.."/functions.lua")
|
dofile(digiterms.path.."/functions.lua")
|
||||||
dofile(digiterms.path.."/nodes.lua")
|
dofile(digiterms.path.."/nodes.lua")
|
||||||
dofile(digiterms.path.."/crafts.lua")
|
dofile(digiterms.path.."/crafts.lua")
|
||||||
|
|
||||||
if minetest.get_modpath("scifi_nodes") then
|
if minetest.get_modpath("scifi_nodes") then
|
||||||
print ('[digiterms] scifi_nodes present, adding some more nodes')
|
print ('[digiterms] scifi_nodes mod present, adding some more nodes')
|
||||||
dofile(digiterms.path.."/scifi_nodes.lua")
|
dofile(digiterms.path.."/scifi_nodes.lua")
|
||||||
else
|
dofile(digiterms.path.."/scifi_crafts.lua")
|
||||||
print ('[digiterms] scifi_nodes absent')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
display_api.register_display_entity("digiterms:screen")
|
|
||||||
|
45
scifi_crafts.lua
Normal file
45
scifi_crafts.lua
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
--[[
|
||||||
|
digiterms mod for Minetest - Digilines monitors using Display API / Font API
|
||||||
|
(c) Pierre-Yves Rollo
|
||||||
|
|
||||||
|
This file is part of digiterms.
|
||||||
|
|
||||||
|
signs is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
signs is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with signs. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local wire = 'digilines:wire_std_00000000'
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "digiterms:scifi_glassscreen",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "scifi_nodes:glassscreen", "digilines:wire_std_00000000" }
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "digiterms:scifi_widescreen",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "scifi_nodes:widescreen", "digilines:wire_std_00000000" }
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "digiterms:scifi_tallscreen",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "scifi_nodes:tallscreen", "digilines:wire_std_00000000" }
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "digiterms:scifi_keysmonitor",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = { "scifi_nodes:keysmonitor", "digilines:wire_std_00000000" }
|
||||||
|
})
|
@ -17,7 +17,7 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
digiterms.register_monitor('digiterms:scifi_glassscreen', {
|
digiterms.register_monitor("digiterms:scifi_glassscreen", {
|
||||||
description = "Digiline glassscreen",
|
description = "Digiline glassscreen",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
Loading…
Reference in New Issue
Block a user