Aaron Suen 1a1a4255db Rename Glass Tank to Glass Case
This caused copious confusion for new players, who assume the
glass "tank" is like an aquarium tank and can be used to carry
water.  Originally it was intended to seal in "moisture" for
sponge transport, but that has become a far less important use
case (and in fact sponge transport is probably best done just by
building submerged pathways, like the way amalgam transport is
done) and glass "tanks" are more like "display cases" now, or an
intermediate storage container that adds top access (useful for
totes).
2021-10-15 06:46:27 -04:00

86 lines
1.8 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 = {groups = {silica_clear = true, visinv = false}},
replace = modname .. ":glass_crude"
}
}
})
nodecore.register_craft({
label = "hammer case to crude",
action = "pummel",
priority = -1,
toolgroups = {thumpy = 3},
check = function(pos) return nodecore.stack_get(pos):is_empty() end,
nodes = {
{
match = modname .. ":shelf",
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, silica_molten = false, silica_lens = false, visinv = false}},
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"
}
}
})