mirror of
https://github.com/mt-mods/basic_materials.git
synced 2025-06-29 14:40:41 +02:00
Compare commits
14 Commits
2020-02-16
...
2021-01-30
Author | SHA1 | Date | |
---|---|---|---|
e72665b2ed | |||
c27117d1fa | |||
30ffac3f12 | |||
84a5f350d6 | |||
a79dbde087 | |||
fb800f9fc3 | |||
c49b4f1f0a | |||
c539463fee | |||
a145203944 | |||
a1d7cc21d8 | |||
97e2bd7fb8 | |||
b4571bac33 | |||
bbdfd041fb | |||
4a9ea71342 |
30
.luacheckrc
Normal file
30
.luacheckrc
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
std = "lua51+minetest"
|
||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
max_line_length = 999
|
||||||
|
|
||||||
|
stds.minetest = {
|
||||||
|
read_globals = {
|
||||||
|
"DIR_DELIM",
|
||||||
|
"minetest",
|
||||||
|
"core",
|
||||||
|
"dump",
|
||||||
|
"vector",
|
||||||
|
"nodeupdate",
|
||||||
|
"VoxelManip",
|
||||||
|
"VoxelArea",
|
||||||
|
"PseudoRandom",
|
||||||
|
"ItemStack",
|
||||||
|
"default",
|
||||||
|
table = {
|
||||||
|
fields = {
|
||||||
|
"copy",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
"default",
|
||||||
|
"moreores",
|
||||||
|
}
|
1
init.lua
1
init.lua
@ -7,6 +7,7 @@
|
|||||||
local modpath = minetest.get_modpath("basic_materials")
|
local modpath = minetest.get_modpath("basic_materials")
|
||||||
|
|
||||||
basic_materials = {}
|
basic_materials = {}
|
||||||
|
basic_materials.mod = { author = "Vanessa Dannenberg" }
|
||||||
|
|
||||||
dofile(modpath.."/metals.lua")
|
dofile(modpath.."/metals.lua")
|
||||||
dofile(modpath.."/plastics.lua")
|
dofile(modpath.."/plastics.lua")
|
||||||
|
33
locale/basic_materials.de.tr
Normal file
33
locale/basic_materials.de.tr
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# textdomain: basic_materials
|
||||||
|
Silicon lump=Siliziumklumpen
|
||||||
|
Simple Integrated Circuit=Einfacher Integrierter Schaltkreis
|
||||||
|
Simple Motor=Einfacher Motor
|
||||||
|
Heating element=Heizelement
|
||||||
|
Simple energy crystal=Einfacher Energiekristall
|
||||||
|
|
||||||
|
Spool of steel wire=Spule mit Stahldraht
|
||||||
|
Spool of copper wire=Spule mit Kupferdraht
|
||||||
|
Spool of silver wire=Spule mit Silberdraht
|
||||||
|
Spool of gold wire=Spule mit Golddraht
|
||||||
|
Steel Strip=Stahlstreifen
|
||||||
|
Copper Strip=Kupferstreifen
|
||||||
|
Steel Bar=Stahlstab
|
||||||
|
Chainlinks (brass)=Messingkettenglieder
|
||||||
|
Chainlinks (steel)=Stahlkettenglieder
|
||||||
|
Brass Ingot=Messingbarren
|
||||||
|
Steel gear=Stahlzahnrad
|
||||||
|
Padlock=Vorhängeschloss
|
||||||
|
Chain (steel, hanging)=Hängende Stahlkette
|
||||||
|
Chain (brass, hanging)=Hängende Messingkette
|
||||||
|
Brass Block=Messingblock
|
||||||
|
|
||||||
|
Oil extract=Ölextrakt
|
||||||
|
Unprocessed paraffin=Unverarbeitetes Paraffin
|
||||||
|
Uncooked Terracotta Base=Ungebranntes Terrakotta
|
||||||
|
Wet Cement=Nasser Zement
|
||||||
|
Cement=Zement
|
||||||
|
Concrete Block=Betonblock
|
||||||
|
|
||||||
|
Plastic sheet=Kunststoffplatte
|
||||||
|
Plastic strips=Kunststoffstreifen
|
||||||
|
Empty wire spool=Leere Drahtspule
|
34
locale/basic_materials.it.tr
Normal file
34
locale/basic_materials.it.tr
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# textdomain: basic_materials
|
||||||
|
# Author: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>
|
||||||
|
Silicon lump=Grumo di silicio
|
||||||
|
Simple Integrated Circuit=Circuito integrato semplice
|
||||||
|
Simple Motor=Motore semplice
|
||||||
|
Heating element=Elemento riscaldante
|
||||||
|
Simple energy crystal=Cristallo di energia semplice
|
||||||
|
|
||||||
|
Spool of steel wire=Bobina di filo d'acciaio
|
||||||
|
Spool of copper wire=Bobina di filo di rame
|
||||||
|
Spool of silver wire=Bobina di filo d'argento
|
||||||
|
Spool of gold wire=Bobina di filo d'oro
|
||||||
|
Steel Strip=Striscia d'acciaio
|
||||||
|
Copper Strip=Striscia di rame
|
||||||
|
Steel Bar=Barra d'acciaio
|
||||||
|
Chainlinks (brass)=Catena (ottone)
|
||||||
|
Chainlinks (steel)=Catena (acciaio)
|
||||||
|
Brass Ingot=Lingotto di ottone
|
||||||
|
Steel gear=Ingranaggio d'acciaio
|
||||||
|
Padlock=Catenaccio
|
||||||
|
Chain (steel, hanging)=Catena (acciaio, pendente)
|
||||||
|
Chain (brass, hanging)=Catena (ottone, pendente)
|
||||||
|
Brass Block=Blocco di ottone
|
||||||
|
|
||||||
|
Oil extract=Estratto d'olio
|
||||||
|
Unprocessed paraffin=Paraffina grezza
|
||||||
|
Uncooked Terracotta Base=Argilla cruda
|
||||||
|
Wet Cement=Cemento umido
|
||||||
|
Cement=Cemento
|
||||||
|
Concrete Block=Blocco di calcestruzzo
|
||||||
|
|
||||||
|
Plastic sheet=Foglio di plastica
|
||||||
|
Plastic strips=Striscia di plastica
|
||||||
|
Empty wire spool=Rocchetto vuoto
|
33
locale/basic_materials.ru.tr
Normal file
33
locale/basic_materials.ru.tr
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# textdomain: basic_materials
|
||||||
|
Silicon lump=Кусок Кремния
|
||||||
|
Simple Integrated Circuit=Микросхема
|
||||||
|
Simple Motor=Мотор
|
||||||
|
Heating element=Нить Накала
|
||||||
|
Simple energy crystal=Энергетический Кристалл
|
||||||
|
|
||||||
|
Spool of steel wire=Катушка Стальной Проволоки
|
||||||
|
Spool of copper wire=Катушка Медной Проволоки
|
||||||
|
Spool of silver wire=Катушка Серебрянной Проволоки
|
||||||
|
Spool of gold wire=Катушка Золотой Проволоки
|
||||||
|
Steel Strip=Стальная Полоса
|
||||||
|
Copper Strip=Медная Полоса
|
||||||
|
Steel Bar=Стальной Прут
|
||||||
|
Chainlinks (brass)=Латунные Звенья
|
||||||
|
Chainlinks (steel)=Стальные Звенья
|
||||||
|
Brass Ingot=Латунный Брусок
|
||||||
|
Steel gear=Стальная Шестерня
|
||||||
|
Padlock=Навесной Замок
|
||||||
|
Chain (steel, hanging)=Стальная Цепь
|
||||||
|
Chain (brass, hanging)=Латунная Цепь
|
||||||
|
Brass Block=Латунный Блок
|
||||||
|
|
||||||
|
Oil extract=Масляный Экстракт
|
||||||
|
Unprocessed paraffin=Необработанный Парафин
|
||||||
|
Uncooked Terracotta Base=Ком Мокрого Терракота
|
||||||
|
Wet Cement=Ком Мокрого Цемента
|
||||||
|
Cement=Цемент
|
||||||
|
Concrete Block=Железобетон
|
||||||
|
|
||||||
|
Plastic sheet=Пластиковый Лист
|
||||||
|
Plastic strips=Пластиковая Полоса
|
||||||
|
Empty wire spool=Пустая Катушка
|
28
metals.lua
28
metals.lua
@ -5,31 +5,37 @@ local S = minetest.get_translator("basic_materials")
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:steel_wire", {
|
minetest.register_craftitem("basic_materials:steel_wire", {
|
||||||
description = S("Spool of steel wire"),
|
description = S("Spool of steel wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_steel_wire.png"
|
inventory_image = "basic_materials_steel_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:copper_wire", {
|
minetest.register_craftitem("basic_materials:copper_wire", {
|
||||||
description = S("Spool of copper wire"),
|
description = S("Spool of copper wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_copper_wire.png"
|
inventory_image = "basic_materials_copper_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:silver_wire", {
|
minetest.register_craftitem("basic_materials:silver_wire", {
|
||||||
description = S("Spool of silver wire"),
|
description = S("Spool of silver wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_silver_wire.png"
|
inventory_image = "basic_materials_silver_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:gold_wire", {
|
minetest.register_craftitem("basic_materials:gold_wire", {
|
||||||
description = S("Spool of gold wire"),
|
description = S("Spool of gold wire"),
|
||||||
|
groups = { wire = 1 },
|
||||||
inventory_image = "basic_materials_gold_wire.png"
|
inventory_image = "basic_materials_gold_wire.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:steel_strip", {
|
minetest.register_craftitem("basic_materials:steel_strip", {
|
||||||
description = S("Steel Strip"),
|
description = S("Steel Strip"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_steel_strip.png"
|
inventory_image = "basic_materials_steel_strip.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:copper_strip", {
|
minetest.register_craftitem("basic_materials:copper_strip", {
|
||||||
description = S("Copper Strip"),
|
description = S("Copper Strip"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_copper_strip.png"
|
inventory_image = "basic_materials_copper_strip.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -40,11 +46,13 @@ minetest.register_craftitem("basic_materials:steel_bar", {
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:chainlink_brass", {
|
minetest.register_craftitem("basic_materials:chainlink_brass", {
|
||||||
description = S("Chainlinks (brass)"),
|
description = S("Chainlinks (brass)"),
|
||||||
|
groups = { chainlinks = 1 },
|
||||||
inventory_image = "basic_materials_chainlink_brass.png"
|
inventory_image = "basic_materials_chainlink_brass.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("basic_materials:chainlink_steel", {
|
minetest.register_craftitem("basic_materials:chainlink_steel", {
|
||||||
description = S("Chainlinks (steel)"),
|
description = S("Chainlinks (steel)"),
|
||||||
|
groups = { chainlinks = 1 },
|
||||||
inventory_image = "basic_materials_chainlink_steel.png"
|
inventory_image = "basic_materials_chainlink_steel.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -70,14 +78,6 @@ local chains_sbox = {
|
|||||||
fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 }
|
fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
local topchains_sbox = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{ -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 },
|
|
||||||
{ -0.1, -0.5, -0.1, 0.1, 0.4, 0.1 }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
minetest.register_node("basic_materials:chain_steel", {
|
minetest.register_node("basic_materials:chain_steel", {
|
||||||
description = S("Chain (steel, hanging)"),
|
description = S("Chain (steel, hanging)"),
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
@ -245,6 +245,18 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if not minetest.get_modpath("moreores") then
|
||||||
|
-- Without moreores, there still should be a way to create brass.
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "basic_materials:brass_ingot 9",
|
||||||
|
recipe = {
|
||||||
|
{"default:copper_ingot", "default:tin_ingot", "default:copper_ingot"},
|
||||||
|
{"default:gold_ingot", "default:copper_ingot", "default:gold_ingot"},
|
||||||
|
{"default:copper_ingot", "default:tin_ingot", "default:copper_ingot"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:brass_ingot 9",
|
output = "basic_materials:brass_ingot 9",
|
||||||
|
1
mod.conf
1
mod.conf
@ -1,3 +1,4 @@
|
|||||||
name = basic_materials
|
name = basic_materials
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = moreores
|
optional_depends = moreores
|
||||||
|
min_minetest_version = 5.2.0
|
||||||
|
@ -10,6 +10,7 @@ minetest.register_craftitem("basic_materials:plastic_sheet", {
|
|||||||
|
|
||||||
minetest.register_craftitem("basic_materials:plastic_strip", {
|
minetest.register_craftitem("basic_materials:plastic_strip", {
|
||||||
description = S("Plastic strips"),
|
description = S("Plastic strips"),
|
||||||
|
groups = { strip = 1 },
|
||||||
inventory_image = "basic_materials_plastic_strip.png",
|
inventory_image = "basic_materials_plastic_strip.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user