Rename a lot of nodes
This commit is contained in:
@@ -83,7 +83,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
|
||||
})
|
||||
|
||||
minetest.register_node(id_block, PyuTest.util.tableconcat({
|
||||
description = Translate(desc .. " Block"),
|
||||
description = Translate(desc),
|
||||
tiles = tex,
|
||||
groups = PyuTest.util.tableconcat(groups, {
|
||||
solid = 1
|
||||
|
@@ -8,7 +8,7 @@ PyuTest.make_wood = function(id, desc, ltiles, btiles)
|
||||
is_ground_content = false
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks(id .. "_wood", desc .. " Wood", btiles, nil, {
|
||||
PyuTest.make_building_blocks(id .. "_wood", desc .. " Planks", btiles, nil, {
|
||||
choppy = PyuTest.BLOCK_NORMAL,
|
||||
acid_vulnerable = 1,
|
||||
flammable = 1,
|
||||
@@ -17,7 +17,7 @@ PyuTest.make_wood = function(id, desc, ltiles, btiles)
|
||||
})
|
||||
|
||||
local log_id = id .. "_log_block"
|
||||
local wood_id = id .. "_wood_block"
|
||||
local planks_id = id .. "_wood_block"
|
||||
|
||||
minetest.override_item(log_id, {
|
||||
groups = PyuTest.util.tableconcat(minetest.registered_nodes[log_id].groups, {
|
||||
@@ -28,22 +28,22 @@ PyuTest.make_wood = function(id, desc, ltiles, btiles)
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.override_item(wood_id, {
|
||||
groups = PyuTest.util.tableconcat(minetest.registered_nodes[wood_id].groups, {
|
||||
minetest.override_item(planks_id, {
|
||||
groups = PyuTest.util.tableconcat(minetest.registered_nodes[planks_id].groups, {
|
||||
wooden_planks = 1,
|
||||
fuel = 1
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = id .. "_wood_block 4",
|
||||
recipe = { id .. "_log_block" },
|
||||
output = planks_id .. " 4",
|
||||
recipe = { log_id },
|
||||
type = "shapeless"
|
||||
})
|
||||
|
||||
PyuTest.registered_wood[id] = {
|
||||
log = log_id,
|
||||
wood = wood_id
|
||||
wood = planks_id
|
||||
}
|
||||
end
|
||||
|
||||
|
@@ -149,7 +149,12 @@ PyuTest.make_ore_and_item = function(id, desc, item_id_suffix, item_description_
|
||||
} or nil
|
||||
}))
|
||||
|
||||
local bid = id.."_block"
|
||||
local bid = id .. "_block"
|
||||
|
||||
minetest.override_item(bid, {
|
||||
description = desc .. " Block"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = bid,
|
||||
recipe = {
|
||||
|
Reference in New Issue
Block a user