Aaron Suen c6cabca0e9 Stone bricks by WintersKnight94
- Original texture by WintersKnight94.
- Node definitions and recipes adapted from original.
- Added some hooks in a few other places to make new
  recipes work.

- Chip smooth stone with a lode pick or better to make brick.
- Bricks fall but don't repose.
- Apply mortar (wet aggregate) to bond stone bricks
- Bonded bricks can be moved but don't fall anymore.
2020-03-29 20:55:55 -04:00

55 lines
1.3 KiB
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
minetest.register_node(modname .. ":bricks", {
description = "Stone Bricks",
tiles = {"nc_terrain_stone.png^" .. modname .. "_bricks.png"},
groups = {
stone = 1,
rock = 1,
cracky = 2,
falling_node = 1
},
crush_damage = 2,
sounds = nodecore.sounds("nc_terrain_stony")
})
nodecore.register_craft({
label = "chisel stone into bricks",
action = "pummel",
toolgroups = {cracky = 4},
nodes = {
{
match = {groups = {smoothstone = true}},
replace = modname .. ":bricks"
}
}
})
minetest.register_node(modname .. ":bricks_bonded", {
description = "Bonded Stone Bricks",
tiles = {"nc_terrain_stone.png^(" .. modname .. "_bricks.png^[opacity:128)"},
groups = {
stone = 1,
rock = 1,
cracky = 3
},
crush_damage = 2,
sounds = nodecore.sounds("nc_terrain_stony")
})
nodecore.register_limited_abm({
label = "bond stone bricks",
nodenames = {modname .. ":bricks"},
neighbors = {"group:concrete_wet"},
interval = 1,
chance = 2,
action = function(pos)
nodecore.set_loud(pos, {name = modname .. ":bricks_bonded"})
end
})