milan2018 #21

Merged
milan merged 3 commits from milan2018 into master 2020-06-27 12:49:30 +02:00

View file

@ -279,9 +279,27 @@ local function register_dust(name,input_node_name,ingot,grindcost,cooktime,R,G,B
}) })
end end
basic_machines.grinder_recipes[input_node_name] = {grindcost,"basic_machines:"..name.."_dust_".. purity_table[1].." 2",1} -- register grinder recipe -- basic_machines.grinder_recipes[input_node_name] = {grindcost,"basic_machines:"..name.."_dust_".. purity_table[1].." 2",1} -- register grinder recipe
if ingot~="" then basic_machines.grinder_recipes[input_node_name] = {grindcost, "basic_machines:"..name.."_dust 2", 1}
minetest.register_craftitem("basic_machines:"..name.."_dust", {
description = name.." dust",
inventory_image = "basic_machines_dust.png^[colorize:#"..R..G..B..":180",
groups = {not_in_creative_inventory=1},
})
if ingot ~= "" then
minetest.register_craft({
type = "cooking",
recipe = "basic_machines:"..name.."_dust",
output = ingot,
cooktime = cooktime*2,
})
minetest.register_craft({
type = "cooking",
recipe = ingot,
output = ingot,
cooktime = 1,
})
for i = 1,#purity_table-1 do for i = 1,#purity_table-1 do
minetest.register_craft({ minetest.register_craft({