Aaron Suen d1a937e973 Add crude glass.
This makes glassmaking more challenging, as glass that is quenched
when not molded, or left wandering too long, will tend to quench to
crude glass, which is inferior.

This also prevents molten glass from wandering the countryside
forever from failed glassmaking attempts, and precludes keeping
molten glass in "captivity" as a crude infinite light source.
2019-04-07 09:12:44 -04:00

72 lines
1.4 KiB
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
nodecore.register_craft({
label = "hammer prism from glass",
action = "pummel",
toolgroups = {thumpy = 5},
nodes = {
{
match = modname .. ":glass_opaque",
replace = modname .. ":prism"
}
}
})
nodecore.register_craft({
label = "cleave lenses from glass",
action = "pummel",
toolgroups = {choppy = 5},
nodes = {
{
match = modname .. ":glass_opaque",
replace = "air"
}
},
items = {
{name = modname .. ":lens", count = 2, scatter = 5}
}
})
nodecore.register_craft({
label = "hammer glass to crude",
action = "pummel",
priority = -1,
toolgroups = {thumpy = 3},
nodes = {
{
match = modname .. ":glass",
replace = modname .. ":glass_crude"
}
}
})
nodecore.register_craft({
label = "hammer glass back to sand",
action = "pummel",
priority = -2,
toolgroups = {thumpy = 3},
nodes = {
{
match = {groups = {silica = true}},
replace = "nc_terrain:sand_loose"
}
}
})
nodecore.register_craft({
label = "hammer lenses back to sand",
action = "pummel",
toolgroups = {thumpy = 3},
nodes = {
{
match = {groups = {silica_lens = true}, count = 2},
replace = "nc_terrain:sand_loose"
}
}
})