58109d30e7
It should now be possible to obtain the new optical stuff given only resources in-game. The molten glass casting process, in particular, should be at least a little interesing. These recipes aren't very interesting and may be subject to refinements in the future.
34 lines
739 B
Lua
34 lines
739 B
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}
|
|
}
|
|
})
|