diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..55879b0 --- /dev/null +++ b/.luacheckrc @@ -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", +} diff --git a/init.lua b/init.lua index 32873a1..348c059 100644 --- a/init.lua +++ b/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") diff --git a/metals.lua b/metals.lua index 37685f8..caf3f41 100644 --- a/metals.lua +++ b/metals.lua @@ -70,14 +70,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",