mirror of
				https://github.com/mt-mods/basic_materials.git
				synced 2025-11-03 22:25:24 +01:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			20200603-1
			...
			30ffac3f12
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					30ffac3f12 | ||
| 
						 | 
					84a5f350d6 | ||
| 
						 | 
					a79dbde087 | ||
| 
						 | 
					fb800f9fc3 | ||
| 
						 | 
					c49b4f1f0a | 
							
								
								
									
										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")
 | 
			
		||||
 | 
			
		||||
basic_materials = {}
 | 
			
		||||
basic_materials.mod = { author = "Vanessa Dannenberg" }
 | 
			
		||||
 | 
			
		||||
dofile(modpath.."/metals.lua")
 | 
			
		||||
dofile(modpath.."/plastics.lua")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
# textdomain: basic_materials
 | 
			
		||||
Silicon lump=Silikonklumpen
 | 
			
		||||
Simple Integrated Circuit=einfacher Integrierter Schaltkreis
 | 
			
		||||
Simple Motor=einfacher Motor
 | 
			
		||||
Silicon lump=Siliziumklumpen
 | 
			
		||||
Simple Integrated Circuit=Einfacher Integrierter Schaltkreis
 | 
			
		||||
Simple Motor=Einfacher Motor
 | 
			
		||||
Heating element=Heizelement
 | 
			
		||||
Simple energy crystal=einfacher Energiekristall
 | 
			
		||||
Simple energy crystal=Einfacher Energiekristall
 | 
			
		||||
 | 
			
		||||
Spool of steel wire=Spule mit Stahldraht
 | 
			
		||||
Spool of copper wire=Spule mit Kupferdraht
 | 
			
		||||
@@ -12,22 +12,22 @@ Spool of gold wire=Spule mit Golddraht
 | 
			
		||||
Steel Strip=Stahlstreifen
 | 
			
		||||
Copper Strip=Kupferstreifen
 | 
			
		||||
Steel Bar=Stahlstab
 | 
			
		||||
Chainlinks (brass)=Messing-Kettenglieder
 | 
			
		||||
Chainlinks (steel)=Stahl-Kettenglieder
 | 
			
		||||
Chainlinks (brass)=Messingkettenglieder
 | 
			
		||||
Chainlinks (steel)=Stahlkettenglieder
 | 
			
		||||
Brass Ingot=Messingbarren
 | 
			
		||||
Steel gear=Stahlzahnrad
 | 
			
		||||
Padlock=Vorhängeschloss
 | 
			
		||||
Chain (steel, hanging)=Stahlkette
 | 
			
		||||
Chain (brass, hanging)=Messingkette
 | 
			
		||||
Chain (steel, hanging)=Hängende Stahlkette
 | 
			
		||||
Chain (brass, hanging)=Hängende Messingkette
 | 
			
		||||
Brass Block=Messingblock
 | 
			
		||||
 | 
			
		||||
Oil extract=raffiniertes Öl
 | 
			
		||||
Unprocessed paraffin=unbearbeitetes Paraffin
 | 
			
		||||
Uncooked Terracotta Base=ungebranntes Terrakotta
 | 
			
		||||
Wet Cement=nasser Zement
 | 
			
		||||
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
 | 
			
		||||
Empty wire spool=Leere Drahtspule
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								metals.lua
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								metals.lua
									
									
									
									
									
								
							@@ -5,31 +5,37 @@ local S = minetest.get_translator("basic_materials")
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:steel_wire", {
 | 
			
		||||
	description = S("Spool of steel wire"),
 | 
			
		||||
	groups = { wire = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_steel_wire.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:copper_wire", {
 | 
			
		||||
	description = S("Spool of copper wire"),
 | 
			
		||||
	groups = { wire = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_copper_wire.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:silver_wire", {
 | 
			
		||||
	description = S("Spool of silver wire"),
 | 
			
		||||
	groups = { wire = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_silver_wire.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:gold_wire", {
 | 
			
		||||
	description = S("Spool of gold wire"),
 | 
			
		||||
	groups = { wire = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_gold_wire.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:steel_strip", {
 | 
			
		||||
	description = S("Steel Strip"),
 | 
			
		||||
	groups = { strip = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_steel_strip.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:copper_strip", {
 | 
			
		||||
	description = S("Copper Strip"),
 | 
			
		||||
	groups = { strip = 1 },
 | 
			
		||||
	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", {
 | 
			
		||||
	description = S("Chainlinks (brass)"),
 | 
			
		||||
	groups = { chainlinks = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_chainlink_brass.png"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:chainlink_steel", {
 | 
			
		||||
	description = S("Chainlinks (steel)"),
 | 
			
		||||
	groups = { chainlinks = 1 },
 | 
			
		||||
	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 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
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", {
 | 
			
		||||
	description = S("Chain (steel, hanging)"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,6 +10,7 @@ minetest.register_craftitem("basic_materials:plastic_sheet", {
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("basic_materials:plastic_strip", {
 | 
			
		||||
	description = S("Plastic strips"),
 | 
			
		||||
	groups = { strip = 1 },
 | 
			
		||||
	inventory_image = "basic_materials_plastic_strip.png",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user