2019-08-09 22:28:19 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-08-31 09:26:53 -04:00
|
|
|
local minetest, nodecore
|
|
|
|
= minetest, nodecore
|
2019-08-09 22:28:19 -04:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
nodecore.register_lode("Bar", {
|
2019-08-31 09:26:53 -04:00
|
|
|
["type"] = "node",
|
2019-08-27 19:14:51 -04:00
|
|
|
description = "## Lode Bar",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = nodecore.fixedbox(-1/16, -0.5, -1/16, 1/16, 0, 1/16),
|
2019-12-01 11:08:12 -05:00
|
|
|
tiles = {modname .. "_#.png"},
|
2019-08-27 19:14:51 -04:00
|
|
|
light_source = 1,
|
|
|
|
crush_damage = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {
|
2020-03-29 21:32:15 -04:00
|
|
|
falling_repose = 1,
|
|
|
|
chisel = 1
|
2019-08-27 19:14:51 -04:00
|
|
|
}
|
|
|
|
})
|
2019-08-09 22:28:19 -04:00
|
|
|
|
|
|
|
nodecore.register_craft({
|
2019-08-27 19:14:51 -04:00
|
|
|
label = "anvil making lode bar",
|
|
|
|
priority = -1,
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {thumpy = 3},
|
|
|
|
nodes = {
|
|
|
|
{
|
|
|
|
match = modname .. ":prill_annealed",
|
|
|
|
replace = "air"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
y = -1,
|
|
|
|
match = modname .. ":block_tempered"
|
|
|
|
}
|
2019-08-09 22:28:19 -04:00
|
|
|
},
|
2019-08-27 19:14:51 -04:00
|
|
|
items = {
|
|
|
|
modname .. ":bar_annealed"
|
2019-08-09 22:28:19 -04:00
|
|
|
}
|
2019-08-27 19:14:51 -04:00
|
|
|
})
|
2019-08-09 22:28:19 -04:00
|
|
|
|
|
|
|
nodecore.register_craft({
|
2019-08-27 19:14:51 -04:00
|
|
|
label = "anvil recycle lode bar",
|
|
|
|
priority = -1,
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {thumpy = 3},
|
|
|
|
normal = {y = 1},
|
|
|
|
nodes = {
|
|
|
|
{
|
|
|
|
match = modname .. ":bar_annealed",
|
|
|
|
replace = "air"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
y = -1,
|
|
|
|
match = modname .. ":block_tempered"
|
|
|
|
}
|
2019-08-09 22:28:19 -04:00
|
|
|
},
|
2019-08-27 19:14:51 -04:00
|
|
|
items = {
|
|
|
|
modname .. ":prill_annealed"
|
2019-08-09 22:28:19 -04:00
|
|
|
}
|
2019-08-27 19:14:51 -04:00
|
|
|
})
|
2019-08-09 22:28:19 -04:00
|
|
|
|
|
|
|
nodecore.register_lode("Rod", {
|
2019-08-31 09:26:53 -04:00
|
|
|
["type"] = "node",
|
2019-08-27 19:14:51 -04:00
|
|
|
description = "## Lode Rod",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = nodecore.fixedbox(-1/16, -0.5, -1/16, 1/16, 0.5, 1/16),
|
2019-12-01 11:08:12 -05:00
|
|
|
tiles = {modname .. "_#.png"},
|
2019-08-27 19:14:51 -04:00
|
|
|
light_source = 2,
|
|
|
|
crush_damage = 2,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {
|
2020-03-29 21:32:15 -04:00
|
|
|
falling_repose = 2,
|
|
|
|
chisel = 2
|
2019-08-27 19:14:51 -04:00
|
|
|
}
|
|
|
|
})
|
2019-08-09 22:28:19 -04:00
|
|
|
|
|
|
|
nodecore.register_craft({
|
2019-08-27 19:14:51 -04:00
|
|
|
label = "anvil making lode rod",
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {thumpy = 3},
|
|
|
|
nodes = {
|
|
|
|
{
|
2019-12-01 11:08:12 -05:00
|
|
|
match = {name = modname .. ":bar_annealed", count = 2},
|
2019-08-27 19:14:51 -04:00
|
|
|
replace = "air"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
y = -1,
|
|
|
|
match = modname .. ":block_tempered"
|
|
|
|
}
|
2019-08-09 22:28:19 -04:00
|
|
|
},
|
2019-08-27 19:14:51 -04:00
|
|
|
items = {
|
|
|
|
modname .. ":rod_annealed"
|
2019-08-09 22:28:19 -04:00
|
|
|
}
|
2019-08-27 19:14:51 -04:00
|
|
|
})
|
2019-08-09 22:28:19 -04:00
|
|
|
|
|
|
|
nodecore.register_craft({
|
2019-08-27 19:14:51 -04:00
|
|
|
label = "recycle lode rod",
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {choppy = 3},
|
|
|
|
nodes = {
|
|
|
|
{
|
|
|
|
match = modname .. ":rod_annealed",
|
|
|
|
replace = "air"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
items = {
|
2019-12-01 11:08:12 -05:00
|
|
|
{name = modname .. ":bar_annealed", count = 2}
|
2019-08-09 22:28:19 -04:00
|
|
|
}
|
2019-08-27 19:14:51 -04:00
|
|
|
})
|