Aktualizovat „basic_machines/grinder.lua“

This commit is contained in:
Milan2018 2020-06-26 14:21:15 +02:00
parent 1b6da1ce04
commit 34ce85e6ba

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