8 Commits

Author SHA1 Message Date
c3f11977c7 remove default checks from before loading craft files (#19) 2024-04-21 22:30:48 -04:00
640bc42ae5 improve game agnostic ism (#18)
* start work on xcompating this

* make items digable in farlands

* remove reduntant if check

* use xcompat for copperblock and remove checks that prevent issues on non mtg before

* computers crafting

* last two crafts
2024-04-14 06:23:58 -04:00
4b5e58331c nodes that aren't ground content (#16) 2024-02-29 18:48:45 -05:00
8102117572 Cleanup translation files (#15) 2023-12-17 15:58:10 +01:00
94836144db Fix use_texture_alpha warnings in Minetest 5.9 (#14) 2023-12-16 14:47:22 -05:00
1fd279435c fix crash due nil itemstack (#13)
* fix crashes due nil itemstacks
2023-03-10 21:30:49 +01:00
40b911e184 Prevent warning for accessing missing global (#11) 2022-07-26 22:53:26 -04:00
0724b0dda9 fix and add crafting recipes (#10)
* fix and add crafting recipes

* Update home_vending_machines/crafts.lua

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* fix luacheck warning

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2022-06-29 14:02:38 +02:00
36 changed files with 292 additions and 355 deletions

View File

@ -21,5 +21,5 @@ read_globals = {
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",
--mod produced
"default", "screwdriver", "unifieddyes", "computers",
"default", "screwdriver", "unifieddyes", "computers", "farming", "xcompat",
}

View File

@ -21,8 +21,10 @@ minetest.register_node("computers:vanio", {
tiles = {"computers_laptop.png"},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
light_source = 4,
groups = {snappy=3},
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -41,7 +43,9 @@ minetest.register_node("computers:vanio_off", {
tiles = {"computers_laptop.png"},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3, not_in_creative_inventory=1},
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -79,8 +83,9 @@ minetest.register_node("computers:piepad", {
light_source = 8,
walkable = false,
groups = {oddly_breakable_by_hand=2},
is_ground_content = false,
selection_box = {type = "wallmounted"},
sounds = default and default.node_sound_wood_defaults() or nil
sounds = xcompat.sounds.node_sound_wood_defaults()
})
-- Commodore 64 lookalike
@ -123,6 +128,7 @@ minetest.register_node("computers:monitor", {
paramtype2 = "facedir",
walkable = false,
groups = {snappy=3},
is_ground_content = false,
selection_box = mo_sbox,
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computers:monitor_on"
@ -145,6 +151,7 @@ minetest.register_node("computers:monitor_on", {
light_source = 9,
walkable = false,
groups = {snappy=3, not_in_creative_inventory=1},
is_ground_content = false,
selection_box = mo_sbox,
drop = "computers:monitor",
on_rightclick = function(pos, node, clicker, itemstack)
@ -171,9 +178,11 @@ minetest.register_node("computers:router", {
}, --"computers_router_f.png"},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
walkable = false,
groups = {snappy=3},
sound = default and default.node_sound_wood_defaults() or nil,
is_ground_content = false,
sound = xcompat.sounds.node_sound_wood_defaults(),
drawtype = "nodebox",
node_box = {
type = "fixed",
@ -201,7 +210,8 @@ minetest.register_node("computers:tower", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
sound = default and default.node_sound_wood_defaults() or nil,
is_ground_content = false,
sound = xcompat.sounds.node_sound_wood_defaults(),
selection_box = pct_cbox,
collision_box = pct_cbox
})
@ -221,7 +231,9 @@ minetest.register_node("computers:server", {
inventory_image = "computers_server_inv.png",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3},
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
@ -230,7 +242,7 @@ minetest.register_node("computers:server", {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
},
sounds = default and default.node_sound_wood_defaults() or nil,
sounds = xcompat.sounds.node_sound_wood_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computers:server_on"
minetest.set_node(pos, node)
@ -260,7 +272,9 @@ minetest.register_node("computers:server_on", {
inventory_image = "computers_server_inv.png",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3,not_in_creative_inventory=1},
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
@ -269,7 +283,7 @@ minetest.register_node("computers:server_on", {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
},
sounds = default and default.node_sound_wood_defaults() or nil,
sounds = xcompat.sounds.node_sound_wood_defaults(),
drop = 'computers:server',
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computers:server"
@ -287,9 +301,11 @@ minetest.register_node("computers:printer", {
"computers_printer_r.png","computers_printer_b.png","computers_printer_f.png"},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
walkable = true,
groups = {snappy=3},
sound = default and default.node_sound_wood_defaults() or nil,
is_ground_content = false,
sound = xcompat.sounds.node_sound_wood_defaults(),
drawtype = "nodebox",
node_box = {
type = "fixed",

View File

@ -313,6 +313,7 @@ minetest.register_node("computers:tetris_arcade", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
is_ground_content = false,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
selection_box = {
type = "fixed",

View File

@ -11,9 +11,11 @@ computers.register = function (name, def)
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
description = cdef.description,
inventory_image = cdef.inventory_image,
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
is_ground_content = false,
tiles = {
TEXPFX.."tp.png",
TEXPFX.."bt.png",
@ -37,7 +39,9 @@ computers.register = function (name, def)
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
is_ground_content = false,
tiles = {
(TEXPFX.."tp"..(cdef.tiles_off.top and "_off" or "")..".png"),
(TEXPFX.."bt"..(cdef.tiles_off.bottom and "_off" or "")..".png"),
@ -96,6 +100,6 @@ dofile(MODPATH.."/computers.lua")
dofile(MODPATH.."/gaming.lua")
dofile(MODPATH.."/aliases.lua")
if minetest.get_modpath("default") and minetest.get_modpath("basic_materials") then
if minetest.get_modpath("basic_materials") then
dofile(MODPATH.."/recipes.lua")
end
end

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=Admiral 128
SheFriendSOO=Freundin S00
Pony Vanio=Pony Oiva
SX Specter=Z Inspektor
Snapple Piepad=Apfel-Ei-Pat
Admiral64=Admiral 64
Computer Tower=Computerturm
HUEG Box=YBOX
Admiral128=Admiral 128
Monitor and keyboard=Bildschirm und Tastatur
Nientiendo Wee=Tinnendo iiW
WIFI Router=WiFi-Router
Computer Tower=Computerturm
Rack Server=Serverschrank
Not enough vertical space to place a server!=Es gibt nicht genug vertikalen Platz, um einen Server zu platzieren!
Printer-Scanner Combo=Multifunktionsdrucker
Pony SlayStation=Pony Slaystation
Pony SlayStation 2=Pony Slaystation 2
Pony Vanio=Pony Oiva
Rack Server=Serverschrank
SX Specter=Z Inspektor
SheFriendSOO=Freundin S00
Snapple Piepad=Apfel-Ei-Pat
WIFI Router=WiFi-Router
Printer-Scanner Combo=Multifunktionsdrucker
### tetris.lua ###
Nientiendo Wee=Tinnendo iiW
HUEG Box=YBOX
L=L
R=R
New Game=Neues Spiel
Next...=Nächster…
No room for place the Arcade!=Kein Platz, um den Arkadeautomaten zu platzieren!
R=R
Score: =Punktzahl:
Tetris Arcade=Tetris-Arkadeautomat
No room for place the Arcade!=Kein Platz, um den Arkadeautomaten zu platzieren!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Torre de ordenador
HUEG Box=
Admiral128=
Monitor and keyboard=Monitor y teclado
Nientiendo Wee=
WIFI Router=Enrutador WIFI
Computer Tower=Torre de ordenador
Rack Server=Servidor en rack
Not enough vertical space to place a server!=¡No hay suficiente espacio para colocar un servidor!
Printer-Scanner Combo=Impresora y escáner combinados
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Servidor en rack
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=Enrutador WIFI
Printer-Scanner Combo=Impresora y escáner combinados
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=Juego Nuevo
Next...=
No room for place the Arcade!=¡No hay lugar para colocar el arcade!
R=
Score: =
Tetris Arcade=Arcade Tetris
No room for place the Arcade!=¡No hay lugar para colocar el arcade!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Ordinateur (tour)
HUEG Box=
Admiral128=
Monitor and keyboard=Écran et clavier
Nientiendo Wee=
WIFI Router=Routeur WiFi
Computer Tower=Ordinateur (tour)
Rack Server=Serveur en rack
Not enough vertical space to place a server!=Pas assez d'espace vertical pour placer un serveur !
Printer-Scanner Combo=Imprimante multi-fonction
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Serveur en rack
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=Routeur WiFi
Printer-Scanner Combo=Imprimante multi-fonction
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=G
R=D
New Game=Nouveau Jeu
Next...=Suivant…
No room for place the Arcade!=Pas assez de place pour placer la borne d'arcade !
R=D
Score: =Score :
Tetris Arcade=Borne Tetris
No room for place the Arcade!=Pas assez de place pour placer la borne d'arcade !

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=
HUEG Box=
Admiral128=
Monitor and keyboard=
Nientiendo Wee=
WIFI Router=
Computer Tower=
Rack Server=
Not enough vertical space to place a server!=Non c'è abbastanza spazio verticale per mettere un frigorifero!
Printer-Scanner Combo=
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=
Printer-Scanner Combo=
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=
Next...=
No room for place the Arcade!=
R=
Score: =
Tetris Arcade=
No room for place the Arcade!=

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Sistem Unit
HUEG Box=
Admiral128=
Monitor and keyboard=Monitor dan Papan Kekunci
Nientiendo Wee=
WIFI Router=Penghala WIFI
Computer Tower=Sistem Unit
Rack Server=Rak Pelayan
Not enough vertical space to place a server!=Tidak cukup ruang menegak untuk letak rak pelayan!
Printer-Scanner Combo=Pencetak Semua Dalam Satu
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Rak Pelayan
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=Penghala WIFI
Printer-Scanner Combo=Pencetak Semua Dalam Satu
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=Main Baru
Next...=Seterusnya...
No room for place the Arcade!=Tiada ruang untuk letak Arked!
R=
Score: =Markah:
Tetris Arcade=Arked Tetris
No room for place the Arcade!=Tiada ruang untuk letak Arked!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Gabinete do Computador
HUEG Box=
Admiral128=
Monitor and keyboard=Tela e teclado
Nientiendo Wee=
WIFI Router=Roteador WIFI
Computer Tower=Gabinete do Computador
Rack Server=Rack para Servidor
Not enough vertical space to place a server!=Sem espaço vertical suficiente para colocar um servidor.
Printer-Scanner Combo=Tudo em Um Impressora-Scaner
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Rack para Servidor
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=Roteador WIFI
Printer-Scanner Combo=Tudo em Um Impressora-Scaner
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=Novo Jogo
Next...=
No room for place the Arcade!=Sem espaço para colocar o Fliperama!
R=
Score: =
Tetris Arcade=Fliperama Tetris
No room for place the Arcade!=Sem espaço para colocar o Fliperama!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Gabinete do Computador
HUEG Box=
Admiral128=
Monitor and keyboard=Tela e teclado
Nientiendo Wee=
WIFI Router=Roteador WIFI
Computer Tower=Gabinete do Computador
Rack Server=Rack para Servidor
Not enough vertical space to place a server!=Sem espaço vertical suficiente para colocar um servidor.
Printer-Scanner Combo=Tudo em Um Impressora-Scaner
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Rack para Servidor
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=Roteador WIFI
Printer-Scanner Combo=Tudo em Um Impressora-Scaner
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=Novo Jogo
Next...=
No room for place the Arcade!=Sem espaço para colocar o Fliperama!
R=
Score: =
Tetris Arcade=Fliperama Tetris
No room for place the Arcade!=Sem espaço para colocar o Fliperama!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=Системный блок
HUEG Box=
Admiral128=
Monitor and keyboard=Монитор и клавиатура
Nientiendo Wee=
WIFI Router=WIFI-роутер
Computer Tower=Системный блок
Rack Server=Стоечный сервер
Not enough vertical space to place a server!=Недостаточно вертикального пространства для размещения сервера!
Printer-Scanner Combo=МФУ
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=Стоечный сервер
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=WIFI-роутер
Printer-Scanner Combo=МФУ
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=Новая игра
Next...=Далее...
No room for place the Arcade!=Недостаточно места для размещения игрового автомата!
R=
Score: =Счёт:
Tetris Arcade=Игровой автомат Тетрис
No room for place the Arcade!=Недостаточно места для размещения игрового автомата!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=计算机箱
HUEG Box=
Admiral128=
Monitor and keyboard=显示器和键盘
Nientiendo Wee=
WIFI Router=无线路由器
Computer Tower=计算机箱
Rack Server=机架式服务器
Not enough vertical space to place a server!=高度不足,无法放置服务器!
Printer-Scanner Combo=打印扫描一体机
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=机架式服务器
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=无线路由器
Printer-Scanner Combo=打印扫描一体机
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=新游戏
Next...=下一个。。。
No room for place the Arcade!=没有地方放游戏机!
R=
Score: =分数:
Tetris Arcade=俄罗斯方块游戏机
No room for place the Arcade!=没有地方放游戏机!

View File

@ -1,31 +1,24 @@
# textdomain: computers
### computers.lua ###
Admiral128=
SheFriendSOO=
Pony Vanio=
SX Specter=
Snapple Piepad=
Admiral64=
Computer Tower=
HUEG Box=
Admiral128=
Monitor and keyboard=
Nientiendo Wee=
WIFI Router=
Computer Tower=
Rack Server=
Not enough vertical space to place a server!=
Printer-Scanner Combo=
Pony SlayStation=
Pony SlayStation 2=
Pony Vanio=
Rack Server=
SX Specter=
SheFriendSOO=
Snapple Piepad=
WIFI Router=
Printer-Scanner Combo=
### tetris.lua ###
Nientiendo Wee=
HUEG Box=
L=
R=
New Game=
Next...=
No room for place the Arcade!=
R=
Score: =
Tetris Arcade=
No room for place the Arcade!=

View File

@ -1,2 +1,3 @@
name = computers
depends = xcompat
optional_depends = screwdriver, default, basic_materials

View File

@ -1,10 +1,11 @@
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
local materials = xcompat.materials
minetest.register_craft({
output = "computers:shefriendSOO",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", materials.glass, "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "group:wood", "basic_materials:plastic_sheet" }
}
})
@ -21,7 +22,7 @@ minetest.register_craft({
output = "computers:vanio",
recipe = {
{ "basic_materials:plastic_sheet", "", "" },
{ "default:glass", "", "" },
{ materials.glass, "", "" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
}
})
@ -39,7 +40,7 @@ minetest.register_craft({
output = "computers:slaystation2",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" }
}
})
@ -55,7 +56,7 @@ minetest.register_craft({
output = "computers:admiral128",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
}
})
@ -63,7 +64,7 @@ minetest.register_craft({
output = "computers:wee",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:copper_ingot", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.copper_ingot, "basic_materials:plastic_sheet" }
}
})
@ -71,7 +72,7 @@ minetest.register_craft({
output = "computers:piepad",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.glass, "basic_materials:plastic_sheet" }
}
})
@ -80,45 +81,45 @@ minetest.register_craft({
minetest.register_craft({
output = "computers:monitor",
recipe = {
{ "basic_materials:plastic_sheet", "default:glass","" },
{ "basic_materials:plastic_sheet", "default:glass","" },
{ "basic_materials:plastic_sheet", "default:mese_crystal_fragment", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.glass,"" },
{ "basic_materials:plastic_sheet", materials.glass,"" },
{ "basic_materials:plastic_sheet", materials.mese_crystal_fragment, "basic_materials:plastic_sheet" }
}
})
minetest.register_craft({
output = "computers:router",
recipe = {
{ "default:steel_ingot","","" },
{ "default:steel_ingot" ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "default:mese_crystal_fragment","basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
{ materials.steel_ingot,"","" },
{ materials.steel_ingot ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ materials.mese_crystal_fragment,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
}
})
minetest.register_craft({
output = "computers:tower",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" }
}
})
minetest.register_craft({
output = "computers:printer",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:coal_lump", "basic_materials:plastic_sheet" }
{ "basic_materials:plastic_sheet", materials.steel_ingot,"" },
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", materials.coal_lump, "basic_materials:plastic_sheet" }
}
})
minetest.register_craft({
output = "computers:printer",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "dye:black", "basic_materials:plastic_sheet", }
{ "basic_materials:plastic_sheet", materials.steel_ingot,"" },
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", materials.dye_black, "basic_materials:plastic_sheet", }
}
})
@ -135,7 +136,7 @@ minetest.register_craft({
output = "computers:tetris_arcade",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal_simple", "basic_materials:plastic_sheet", },
{ "dye:black", "default:glass", "dye:black" },
{ materials.dye_black, materials.glass, materials.dye_black },
{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal_simple", "basic_materials:plastic_sheet" }
}
})

View File

@ -12,7 +12,8 @@ local function reg_simple(name, def)
tiles = def.tiles,
paramtype = "light",
paramtype2 = "facedir",
groups = def.groups or {snappy=3},
groups = def.groups or {snappy=3, dig_tree=2},
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
@ -28,6 +29,7 @@ local function reg_simple(name, def)
end
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
if not itemstack then return end
local pname = clicker:get_player_name()
local iname = itemstack:get_name()
local dpos = vector.add((vector.multiply(minetest.facedir_to_dir(node.param2), -1)), pos)
@ -56,4 +58,4 @@ function home_vending_machines.register_machine(type, name, def)
reg_simple(name, def)
end
--TODO: add more complex machine type with formspec and selections
end
end

View File

@ -1,32 +1,26 @@
if minetest.get_modpath("default") then
if minetest.get_modpath("dye") then
minetest.register_craft({
output = "home_workshop_misc:soda_machine",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "dye:red", "default:steel_ingot"},
{"default:steel_ingot", "default:copperblock", "default:steel_ingot"},
},
})
end
if minetest.get_modpath("vessel") then
minetest.register_craft({
output = "home_vending_machines:drink_machine",
recipe = {
{"default:steel_ingot", "group:vessel", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:copperblock", "default:steel_ingot"},
},
})
end
if minetest.get_modpath("farming") then
minetest.register_craft({
output = "home_vending_machines:sweet_machine",
recipe = {
{"default:steel_ingot", "group:food_sugar", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:copperblock", "default:steel_ingot"},
},
})
end
end
local materials = xcompat.materials
minetest.register_craft({
output = "home_workshop_misc:soda_machine",
recipe = {
{materials.steel_ingot, materials.steel_ingot, materials.steel_ingot},
{materials.steel_ingot, materials.dye_red, materials.steel_ingot},
{materials.steel_ingot, materials.copper_block, materials.steel_ingot},
},
})
minetest.register_craft({
output = "home_vending_machines:drink_machine",
recipe = {
{materials.steel_ingot, "group:vessel", materials.steel_ingot},
{materials.steel_ingot, materials.steel_ingot, materials.steel_ingot},
{materials.steel_ingot, materials.copper_block, materials.steel_ingot},
},
})
minetest.register_craft({
output = "home_vending_machines:sweet_machine",
recipe = {
{materials.steel_ingot, "group:food_sugar", materials.steel_ingot},
{materials.steel_ingot, materials.steel_ingot, materials.steel_ingot},
{materials.steel_ingot, materials.copper_block, materials.steel_ingot},
},
})

View File

@ -1 +1,3 @@
optional_depends = screwdriver
name = home_vending_machines
depends = xcompat
optional_depends = screwdriver, default, dye, vessels, farming

View File

@ -1,4 +1,5 @@
local S = minetest.get_translator("home_workshop_machines")
local materials = xcompat.materials
-- "bedflinger" style 3D Printer (Prusa i3 or equivalent)
@ -16,8 +17,9 @@ minetest.register_node("home_workshop_machines:3dprinter_bedflinger", {
},
paramtype = "light",
walkable = true,
groups = {snappy=3, ud_param2_colorable = 1},
sound = default and default.node_sound_wood_defaults() or nil,
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2},
is_ground_content = false,
sound = xcompat.sounds.node_sound_wood_defaults(),
drawtype = "mesh",
mesh = "home_workshop_machines_3dprinter_bedflinger.obj",
paramtype2 = "colorwallmounted",
@ -46,8 +48,9 @@ minetest.register_node("home_workshop_machines:3dprinter_corexy", {
},
paramtype = "light",
walkable = true,
groups = {snappy=3, ud_param2_colorable = 1},
sound = default and default.node_sound_wood_defaults() or nil,
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2},
is_ground_content = false,
sound = xcompat.sounds.node_sound_wood_defaults(),
drawtype = "mesh",
mesh = "home_workshop_machines_3dprinter_corexy.obj",
paramtype2 = "colorwallmounted",
@ -61,6 +64,26 @@ minetest.register_node("home_workshop_machines:3dprinter_corexy", {
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
})
if minetest.get_modpath("basic_materials") then
minetest.register_craft({
output = "home_workshop_machines:3dprinter_bedflinger",
recipe = {
{"basic_materials:plastic_sheet", materials.dye_white, "basic_materials:plastic_sheet"},
{"basic_materials:motor", "basic_materials:heating_element", "basic_materials:motor"},
{materials.steel_ingot, materials.steel_ingot, materials.steel_ingot},
},
})
minetest.register_craft({
output = "home_workshop_machines:3dprinter_corexy",
recipe = {
{materials.steel_ingot, "basic_materials:motor", "basic_materials:plastic_sheet"},
{materials.glass, "basic_materials:heating_element", materials.glass},
{materials.steel_ingot, "basic_materials:motor", materials.steel_ingot},
},
})
end
minetest.register_alias("computer:3dprinter_bedflinger", "home_workshop_machines:3dprinter_bedflinger")
minetest.register_alias("computers:3dprinter_bedflinger", "home_workshop_machines:3dprinter_bedflinger")
minetest.register_alias("computer:3dprinter_corexy", "home_workshop_machines:3dprinter_corexy")

View File

@ -1,6 +1,3 @@
# textdomain: home_workshop_machines
### init.lua ###
3D Printer ("bedflinger" design)=3D Drucker ("Bettschubser")
3D Printer (CoreXY design)=

View File

@ -1,6 +1,3 @@
# textdomain: home_workshop_machines
### init.lua ###
3D Printer ("bedflinger" design)=
3D Printer (CoreXY design)=

View File

@ -1,4 +1,3 @@
name = home_workshop_machines
depends = unifieddyes
optional_depends = default
optional_depends = screwdriver
depends = unifieddyes, xcompat
optional_depends = default, screwdriver, dye, basic_materials

View File

@ -1,17 +1,19 @@
local materials = xcompat.materials
minetest.register_craft({
output = "home_workshop_misc:tool_cabinet",
recipe = {
{ "basic_materials:motor", "default:axe_steel", "default:pick_steel" },
{ "default:steel_ingot", "home_workshop_misc:drawer_small", "default:steel_ingot" },
{ "default:steel_ingot", "home_workshop_misc:drawer_small", "default:steel_ingot" }
{ "basic_materials:motor", materials.axe_steel, materials.pick_steel },
{ materials.steel_ingot, "home_workshop_misc:drawer_small", materials.steel_ingot },
{ materials.steel_ingot, "home_workshop_misc:drawer_small", materials.steel_ingot }
},
})
minetest.register_craft({
output = "home_workshop_misc:beer_tap",
recipe = {
{ "group:stick", "default:steel_ingot", "group:stick" },
{ "basic_materials:steel_bar", "default:steel_ingot", "basic_materials:steel_bar" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
{ "group:stick", materials.steel_ingot, "group:stick" },
{ "basic_materials:steel_bar", materials.steel_ingot, "basic_materials:steel_bar" },
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
},
})

View File

@ -18,7 +18,8 @@ minetest.register_node("home_workshop_misc:tool_cabinet", {
paramtype2="facedir",
inventory_image = "home_workshop_misc_tool_cabinet_inv.png",
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
groups = { snappy=3 },
groups = { snappy=3, dig_tree=2 },
is_ground_content = false,
expand = { top="placeholder" },
inventory = {
size=24,
@ -36,7 +37,8 @@ minetest.register_node("home_workshop_misc:beer_tap", {
inventory_image = "home_workshop_misc_beertap_inv.png",
paramtype = "light",
paramtype2 = "facedir",
groups = { snappy=3 },
groups = { snappy=3, dig_tree=2 },
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -44,6 +46,7 @@ minetest.register_node("home_workshop_misc:beer_tap", {
},
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local inv = clicker:get_inventory()
if not itemstack then return end
local wieldname = itemstack:get_name()
if wieldname == "vessels:drinking_glass" then
@ -75,8 +78,9 @@ minetest.register_node("home_workshop_misc:beer_mug", {
paramtype = "light",
paramtype2 = "facedir",
groups = { snappy=3, oddly_breakable_by_hand=3 },
is_ground_content = false,
walkable = false,
sounds = default and default.node_sound_glass_defaults() or nil,
sounds = xcompat.sounds.node_sound_glass_defaults(),
selection_box = beer_cbox,
on_use = function(itemstack, user, pointed_thing)
if not minetest.is_creative_enabled(user:get_player_name()) then
@ -96,7 +100,7 @@ else
end
local MODPATH = minetest.get_modpath("home_workshop_misc")
if minetest.get_modpath("default") and minetest.get_modpath("basic_materials") then
if minetest.get_modpath("basic_materials") then
dofile(MODPATH.."/crafts.lua")
end

View File

@ -1,12 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Metallwerkzeugschrank und Arbeitstisch
Ahh, a frosty cold beer - look in your inventory for it!=Ahh ein kühles Bier sehen Sie in Ihrem Inventar nach!
Beer mug=Bierkrug
Beer tap=Bierzapfhahn
Soda Can=Limodose
Soda vending machine=Limoautomat
Ahh, a frosty cold beer - look in your inventory for it!=Ahh ein kühles Bier sehen Sie in Ihrem Inventar nach!
No room in your inventory to add a beer mug!=Kein Platz im Inventar für einen Bierkrug!
Please insert a 25 Mg cent coin in the machine.=Bitte Münze in Automaten einwerfen.
Beer mug=Bierkrug
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Mesa de trabajo y gabinete en hierro
Ahh, a frosty cold beer - look in your inventory for it!=¡Ah, una cerveza fría! La encontrarás en tu inventario.
Beer mug=Jarra de cerveza
Beer tap=Grifo de cerveza
Soda Can=Lata de refresco
Soda vending machine=Máquina expendedora de refrescos
Ahh, a frosty cold beer - look in your inventory for it!=¡Ah, una cerveza fría! La encontrarás en tu inventario.
No room in your inventory to add a beer mug!=¡No hay lugar para tomar una jarra de cerveza!
Please insert a 25 Mg cent coin in the machine.=Por favor introduzca una moneda en la máquina.
Beer mug=Jarra de cerveza
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Établi pour le travail du métal
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, une bière bien fraîche - regardez dans votre inventaire !
Beer mug=Pinte de bière
Beer tap=Pompe à bière
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, une bière bien fraîche - regardez dans votre inventaire !
No room in your inventory to add a beer mug!=Pas de place dans votre inventaire pour ajouter une pinte de bière !
Please insert a 25 Mg cent coin in the machine.=Veuillez insérer une pce dans la machine.
Soda Can=Canette de soda
Soda vending machine=Distributeur de boissons
Beer mug=Pinte de bre
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Kabinet Alatan Logam dan Meja Kerja
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, bir sejuk dingin - cari dalam inventori anda!
Beer mug=Kole Bir
Beer tap=Paip Bir
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, bir sejuk dingin - cari dalam inventori anda!
No room in your inventory to add a beer mug!=Tiada ruang dalam inventori anda untuk menambah kole bir!
Please insert a 25 Mg cent coin in the machine.=Sila masukkan duit syiling ke dalam mesin.
Soda Can=Tin Soda
Soda vending machine=Mesin Soda Layan Diri
Beer mug=Kole Bir
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Gabinete de ferramentas metálicas e mesa de trabalho
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, uma cerveja bem gelada - procure por ela em seu inventário!
Beer mug=Caneca de cerveja
Beer tap=Torneira de cerveja
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, uma cerveja bem gelada - procure por ela em seu inventário!
No room in your inventory to add a beer mug!=Sem espaço no inventário para colocar uma caneca de cerveja
Please insert a 25 Mg cent coin in the machine.=Por favor insira uma moeda na máquina.
Soda Can=Lata de Refrigerante
Soda vending machine=Máquina de refrigerante
Beer mug=Caneca de cerveja
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Gabinete de ferramentas metálicas e mesa de trabalho
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, uma cerveja bem gelada - procure por ela em seu inventário!
Beer mug=Caneca de cerveja
Beer tap=Torneira de cerveja
Ahh, a frosty cold beer - look in your inventory for it!=Ahh, uma cerveja bem gelada - procure por ela em seu inventário!
No room in your inventory to add a beer mug!=Sem espaço no inventário para colocar uma caneca de cerveja
Please insert a 25 Mg cent coin in the machine.=Por favor insira uma moeda na máquina.
Soda Can=Lata de Refrigerante
Soda vending machine=Máquina de refrigerante
Beer mug=Caneca de cerveja
Small Wooden Drawer=

View File

@ -1,11 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=Шкаф с металлическим инструментом и рабочий стол
Ahh, a frosty cold beer - look in your inventory for it!=О, холодное пиво! Ищи его в инвентаре!
Beer mug=Пивная кружка
Beer tap=Пивной кран
Ahh, a frosty cold beer - look in your inventory for it!=О, холодное пиво! Ищи его в инвентаре!
No room in your inventory to add a beer mug!=В инвентаре нет места для пивной кружки!
Please insert a 25 Mg cent coin in the machine.=Вставьте монету в автомат.
Soda Can=Банка газировки
Soda vending machine=Автомат с газировкой
Beer mug=Пивная кружка
Small Wooden Drawer=

View File

@ -1,12 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=金属工具柜及工作台
Ahh, a frosty cold beer - look in your inventory for it!=啊,一杯冰凉的啤酒-看看你的库存吧!
Beer mug=啤酒杯
Beer tap=啤酒龙头
Ahh, a frosty cold beer - look in your inventory for it!=啊,一杯冰凉的啤酒-看看你的库存吧!
No room in your inventory to add a beer mug!=你的库存里没有地方放啤酒杯!
Please insert a 25 Mg cent coin in the machine.=请在机器里放一枚硬币。
Soda Can=易拉罐
Soda vending machine=汽水自动售货机
Beer mug=啤酒杯
Small Wooden Drawer=

View File

@ -1,12 +1,7 @@
# textdomain: home_workshop_misc
### init.lua ###
Metal tool cabinet and work table=
Ahh, a frosty cold beer - look in your inventory for it!=
Beer mug=
Beer tap=
Ahh, a frosty cold beer - look in your inventory for it!=
No room in your inventory to add a beer mug!=
Please insert a 25 Mg cent coin in the machine.=
Soda Can=
Soda vending machine=
Beer mug=
Small Wooden Drawer=

View File

@ -1,2 +1,3 @@
name = home_workshop_misc
depends = xcompat
optional_depends = currency, screwdriver, homedecor_common, default

View File

@ -0,0 +1,2 @@
name = home_workshop_modpack
min_minetest_version = 5.4.0