From cf38d3991eea12fbb470a0be2c06ec2fc1aca7d0 Mon Sep 17 00:00:00 2001 From: The4codeblocks <72419529+The4codeblocks@users.noreply.github.com> Date: Thu, 4 Jun 2026 13:38:13 -0500 Subject: [PATCH 1/5] stone dust is not craftitem --- technic/machines/register/grinder_recipes.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index 7d7e5825..80ecfcda 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -119,7 +119,6 @@ register_dust("Gold", mat.gold_ingot) register_dust("Mithril", mat.mithril_ingot) register_dust("Silver", mat.silver_ingot) register_dust("Stainless Steel", "technic:stainless_steel_ingot") -register_dust("Stone", mat.stone) register_dust("Sulfur", nil) register_dust("Tin", mat.tin_ingot) register_dust("Wrought Iron", "technic:wrought_iron_ingot") From 127ca5c91c90221895016f3f89003ed89364f29c Mon Sep 17 00:00:00 2001 From: The4spaceconsts Date: Thu, 4 Jun 2026 14:19:52 -0500 Subject: [PATCH 2/5] silt --- .gitignore | 7 +++++++ technic/crafts.lua | 2 +- technic/items.lua | 15 +++++++++++++++ technic/locale/template.txt | 1 + technic/machines/register/grinder_recipes.lua | 8 ++++---- technic/textures/technic_silt.png | Bin 0 -> 622 bytes 6 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 technic/textures/technic_silt.png diff --git a/.gitignore b/.gitignore index 227a256d..42b9069a 100644 --- a/.gitignore +++ b/.gitignore @@ -164,3 +164,10 @@ pip-log.txt #gedit backup files *~ +################# +## IntelliJ Idea +################# + +#Project files +.idea + diff --git a/technic/crafts.lua b/technic/crafts.lua index d7a1a25d..2148ea89 100644 --- a/technic/crafts.lua +++ b/technic/crafts.lua @@ -182,7 +182,7 @@ core.register_craft({ type = "shapeless", replacements = {{mat.bucket_water,mat.bucket_empty}}, recipe = { - "technic:stone_dust", + "technic:silt", "group:leaves", mat.bucket_water, "group:sand", diff --git a/technic/items.lua b/technic/items.lua index 574d7b54..7bfd265c 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -121,6 +121,21 @@ core.register_node("technic:machine_casing", { sounds = technic.sounds.node_sound_stone_defaults(), }) +local sand_def = core.registered_items[technic.materials.sand] + +core.register_node("technic:silt", { + description = S("Silt"), + groups = sand_def.groups, + is_ground_content = true, + _mcl_blast_resistance = sand_def._mcl_blast_resistance, + _mcl_hardness = sand_def._mcl_hardness, + drawtype = "allfaces", + tiles = {"technic_silt.png"}, + sounds = sand_def.sounds, +}) + +core.register_alias("technic:stone_dust", "technic:silt") + for p = 0, 35 do local nici = (p ~= 0 and p ~= 7 and p ~= 35) and 1 or nil local psuffix = p == 7 and "" or p diff --git a/technic/locale/template.txt b/technic/locale/template.txt index 505b3e7c..cc0a730e 100644 --- a/technic/locale/template.txt +++ b/technic/locale/template.txt @@ -206,3 +206,4 @@ Wind Mill Frame= Wrought Iron= You are not allowed to edit this!= Zinc= +Silt= diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index 80ecfcda..82ba5bc8 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -25,10 +25,10 @@ local recipes = { {"technic:zinc_lump", "technic:zinc_dust 2"}, {"technic:lead_lump", "technic:lead_dust 2"}, {"technic:sulfur_lump", "technic:sulfur_dust 2"}, - {mat.stone, "technic:stone_dust"}, - {mat.sand, "technic:stone_dust"}, - {mat.desert_sand, "technic:stone_dust"}, - {mat.silver_sand, "technic:stone_dust"}, + {mat.stone, "technic:silt"}, + {mat.sand, "technic:silt"}, + {mat.desert_sand, "technic:silt"}, + {mat.silver_sand, "technic:silt"}, -- Other {mat.cobble, mat.gravel}, diff --git a/technic/textures/technic_silt.png b/technic/textures/technic_silt.png new file mode 100644 index 0000000000000000000000000000000000000000..44bad668562d74621a704d11bf15d4080f93e928 GIT binary patch literal 622 zcmV-!0+IcRP)5CknEe^oUz=xvbT{)gZkY&irEx~HqMGBYArwAj1kGIP27_2(b)cs|KVnbT-3 zW9E1W5k^Xxdn^DvoLV!-b|9)eAOE7y?!z%iU) zYn8|ILRA2#NTzNZZVQhf=Oj!s+!PS5;pCig4_e8HENV$_M;6@o#LRFDj=hkV3u7$4 zzBb0a_~mnF*+4{SwK0ZrT`#5xwPrq#hItSL`Y`fbi(Hg`4L&|L9^W@YFqaW=VxBpU zN(5+1xCdsACdDJr@SvnhDhYtkkByuXttbFlgV#CUGn%0aD7Xio$APx3vE1qBq~C*n zbs$ko;XEgGYqV|0Bj|l%5hQ^zCl-zhhN=P!#rXWlh#F2}-!kLAaGTusBxgke0%6~G zh=l^o(bWmd!caYWj`{#?i zZwI}f Date: Fri, 5 Jun 2026 07:36:45 -0500 Subject: [PATCH 3/5] silt in worldgen, materials in worldgen --- technic/init.lua | 3 --- technic/items.lua | 15 --------------- technic_worldgen/init.lua | 3 +++ {technic => technic_worldgen}/materials.lua | 0 technic_worldgen/nodes.lua | 15 +++++++++++++++ 5 files changed, 18 insertions(+), 18 deletions(-) rename {technic => technic_worldgen}/materials.lua (100%) diff --git a/technic/init.lua b/technic/init.lua index a7fb7d1c..8592b4e4 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -18,9 +18,6 @@ technic.modpath = modpath local S = core.get_translator("technic") technic.getter = S --- Read materials file -dofile(modpath.."/materials.lua") - -- Read configuration file dofile(modpath.."/config.lua") diff --git a/technic/items.lua b/technic/items.lua index 7bfd265c..574d7b54 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -121,21 +121,6 @@ core.register_node("technic:machine_casing", { sounds = technic.sounds.node_sound_stone_defaults(), }) -local sand_def = core.registered_items[technic.materials.sand] - -core.register_node("technic:silt", { - description = S("Silt"), - groups = sand_def.groups, - is_ground_content = true, - _mcl_blast_resistance = sand_def._mcl_blast_resistance, - _mcl_hardness = sand_def._mcl_hardness, - drawtype = "allfaces", - tiles = {"technic_silt.png"}, - sounds = sand_def.sounds, -}) - -core.register_alias("technic:stone_dust", "technic:silt") - for p = 0, 35 do local nici = (p ~= 0 and p ~= 7 and p ~= 35) and 1 or nil local psuffix = p == 7 and "" or p diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 60829988..b5f9aaf5 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -11,6 +11,9 @@ if core.get_modpath("mcl_sounds") then technic.sounds = mcl_sounds end +-- Read materials file +dofile(modpath.."/materials.lua") + dofile(modpath.."/config.lua") dofile(modpath.."/nodes.lua") dofile(modpath.."/oregen.lua") diff --git a/technic/materials.lua b/technic_worldgen/materials.lua similarity index 100% rename from technic/materials.lua rename to technic_worldgen/materials.lua diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index 8b422feb..59aeba47 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -104,6 +104,21 @@ else }) end +local sand_def = core.registered_items[technic.materials.sand] + +core.register_node(":technic:silt", { + description = S("Silt"), + groups = sand_def.groups, + is_ground_content = true, + _mcl_blast_resistance = sand_def._mcl_blast_resistance, + _mcl_hardness = sand_def._mcl_hardness, + drawtype = "allfaces", + tiles = {"technic_silt.png"}, + sounds = sand_def.sounds, +}) + +core.register_alias("technic:stone_dust", "technic:silt") + core.register_node(":technic:uranium_block", { description = S("Uranium Block"), tiles = {"technic_uranium_block.png"}, From 20f6ebb02c0e31e3597441c84b4075a025fd064a Mon Sep 17 00:00:00 2001 From: The4spaceconsts Date: Fri, 5 Jun 2026 12:07:58 -0500 Subject: [PATCH 4/5] no dependence on sand's definition --- technic/init.lua | 3 +++ {technic_worldgen => technic}/materials.lua | 0 technic_worldgen/init.lua | 3 --- technic_worldgen/nodes.lua | 15 +++++++++------ 4 files changed, 12 insertions(+), 9 deletions(-) rename {technic_worldgen => technic}/materials.lua (100%) diff --git a/technic/init.lua b/technic/init.lua index 8592b4e4..a7fb7d1c 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -18,6 +18,9 @@ technic.modpath = modpath local S = core.get_translator("technic") technic.getter = S +-- Read materials file +dofile(modpath.."/materials.lua") + -- Read configuration file dofile(modpath.."/config.lua") diff --git a/technic_worldgen/materials.lua b/technic/materials.lua similarity index 100% rename from technic_worldgen/materials.lua rename to technic/materials.lua diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index b5f9aaf5..60829988 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -11,9 +11,6 @@ if core.get_modpath("mcl_sounds") then technic.sounds = mcl_sounds end --- Read materials file -dofile(modpath.."/materials.lua") - dofile(modpath.."/config.lua") dofile(modpath.."/nodes.lua") dofile(modpath.."/oregen.lua") diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index 59aeba47..e53e1a11 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -104,17 +104,20 @@ else }) end -local sand_def = core.registered_items[technic.materials.sand] - core.register_node(":technic:silt", { description = S("Silt"), - groups = sand_def.groups, + groups = { + falling_node = 1, -- common + crumbly = 3, -- minetest game + handy = 1, shovely = 1, falling_node = 1, enderman_takable = 1, building_block = 1 -- mineclon* + }, is_ground_content = true, - _mcl_blast_resistance = sand_def._mcl_blast_resistance, - _mcl_hardness = sand_def._mcl_hardness, + _mcl_blast_resistance = 0.5, + _mcl_hardness = 0.5, drawtype = "allfaces", tiles = {"technic_silt.png"}, - sounds = sand_def.sounds, + sounds = technic.sounds.node_sound_sand_defaults(), + _tnt_loss = 2, }) core.register_alias("technic:stone_dust", "technic:silt") From 0226b158bac5d7187354469ead3500783528da66 Mon Sep 17 00:00:00 2001 From: The4spaceconsts Date: Fri, 5 Jun 2026 12:09:16 -0500 Subject: [PATCH 5/5] shut luacheck up by removing duped field --- technic_worldgen/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index e53e1a11..7e148f4b 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -109,7 +109,7 @@ core.register_node(":technic:silt", { groups = { falling_node = 1, -- common crumbly = 3, -- minetest game - handy = 1, shovely = 1, falling_node = 1, enderman_takable = 1, building_block = 1 -- mineclon* + handy = 1, shovely = 1, enderman_takable = 1, building_block = 1 -- mineclon* }, is_ground_content = true, _mcl_blast_resistance = 0.5,