master #23

Merged
milan merged 7 commits from master into milan2018 2020-07-04 16:35:34 +02:00
Showing only changes of commit 613925054f - Show all commits

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({