Compare commits
3 Commits
main
...
4445d8a7b4
| Author | SHA1 | Date | |
|---|---|---|---|
| 4445d8a7b4 | |||
| 2fce391b9a | |||
| d176e89ab4 |
@@ -221,7 +221,7 @@ if industrialtest.mclAvailable then
|
|||||||
count=2
|
count=2
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
industrialtest.api.registerResourceDust("diamond","Diamond",resources,"#90e2c9ff",true)
|
industrialtest.api.registerResourceDust("diamond","Diamond",resources,"#2fffbfff",true)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="cooking",
|
type="cooking",
|
||||||
output=industrialtest.elementKeys.diamond,
|
output=industrialtest.elementKeys.diamond,
|
||||||
@@ -293,7 +293,7 @@ if industrialtest.mclAvailable then
|
|||||||
count=2
|
count=2
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
industrialtest.api.registerResourceDust("gold","Gold",resources,"#e4e526ff",true)
|
industrialtest.api.registerResourceDust("gold","Gold",resources,"#edcb00ff",true)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="cooking",
|
type="cooking",
|
||||||
output=industrialtest.elementKeys.goldIngot,
|
output=industrialtest.elementKeys.goldIngot,
|
||||||
@@ -320,7 +320,7 @@ if industrialtest.mclAvailable then
|
|||||||
count=2
|
count=2
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
industrialtest.api.registerResourceDust("copper","Copper",resources,"#a45e25ff",true)
|
industrialtest.api.registerResourceDust("copper","Copper",resources,"#b85d12ff",true)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="cooking",
|
type="cooking",
|
||||||
output=industrialtest.elementKeys.copperIngot,
|
output=industrialtest.elementKeys.copperIngot,
|
||||||
@@ -347,7 +347,7 @@ if industrialtest.mclAvailable then
|
|||||||
count=2
|
count=2
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
industrialtest.api.registerResourceDust("tin","Tin",resources,"#f1f1f1ff",true)
|
industrialtest.api.registerResourceDust("tin","Tin",resources,"#fcdaa7ff",true)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="cooking",
|
type="cooking",
|
||||||
output=industrialtest.elementKeys.tinIngot,
|
output=industrialtest.elementKeys.tinIngot,
|
||||||
@@ -404,7 +404,7 @@ industrialtest.api.registerResourceDust("bronze","Bronze",{
|
|||||||
count=9
|
count=9
|
||||||
},
|
},
|
||||||
{resource=industrialtest.elementKeys.bronzeIngot}
|
{resource=industrialtest.elementKeys.bronzeIngot}
|
||||||
},"#e48e88ff",true)
|
},"#f63118ff",true)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="shaped",
|
type="shaped",
|
||||||
output="industrialtest:bronze_dust 9",
|
output="industrialtest:bronze_dust 9",
|
||||||
|
|||||||
@@ -357,29 +357,9 @@ function industrialtest.internal.registerMachine(config)
|
|||||||
if config.sounds=="metal" then
|
if config.sounds=="metal" then
|
||||||
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
||||||
end
|
end
|
||||||
definition.groups={
|
definition.groups={pickaxey=1}
|
||||||
pickaxey=1,
|
|
||||||
container=2
|
|
||||||
}
|
|
||||||
definition._mcl_blast_resistance=3.5
|
definition._mcl_blast_resistance=3.5
|
||||||
definition._mcl_hardness=3.9
|
definition._mcl_hardness=3.9
|
||||||
definition._mcl_hoppers_on_try_pull=function(pos, hop_pos, hop_inv, hop_list)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
local stack = inv:get_stack("dst", 1)
|
|
||||||
if not stack:is_empty() and hop_inv:room_for_item(hop_list, stack) then
|
|
||||||
return inv, "dst", 1
|
|
||||||
end
|
|
||||||
return nil, nil, nil
|
|
||||||
end
|
|
||||||
definition._mcl_hoppers_on_try_push=function(pos, hop_pos, hop_inv, hop_list)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
return inv, "src", mcl_util.select_stack(hop_inv, hop_list, inv, "src")
|
|
||||||
end
|
|
||||||
definition._mcl_hoppers_on_after_push=function(pos)
|
|
||||||
minetest.get_node_timer(pos):start(1.0)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
definition.groups._industrialtest_wrenchUnmountable=1
|
definition.groups._industrialtest_wrenchUnmountable=1
|
||||||
if config.requiresWrench then
|
if config.requiresWrench then
|
||||||
|
|||||||
@@ -292,7 +292,6 @@ if industrialtest.mtgAvailable then
|
|||||||
return not (inv:get_list("src")[1]:get_count()>0 or inv:get_list("fuel")[1]:get_count()>0 or inv:get_list("dst")[1]:get_count()>0)
|
return not (inv:get_list("src")[1]:get_count()>0 or inv:get_list("fuel")[1]:get_count()>0 or inv:get_list("dst")[1]:get_count()>0)
|
||||||
end
|
end
|
||||||
elseif industrialtest.mclAvailable then
|
elseif industrialtest.mclAvailable then
|
||||||
definition.groups={pickaxey=1}
|
|
||||||
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
definition.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
industrialtest.internal.mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
industrialtest.internal.mclAfterDigNode(pos,oldmeta,{"src","fuel","dst"})
|
||||||
end
|
end
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 332 B |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 392 B |