mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-12-26 02:30:21 +01:00
add some 0.4.15 default nodes to table saw, including farming:straw (#69)
* add some 0.4.15 default nodes to table saw including farming:straw * fix hard-coded drop
This commit is contained in:
parent
6a1ffa7651
commit
f4b68fbfd7
@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
intllib?
|
intllib?
|
||||||
|
farming?
|
||||||
|
@ -7,6 +7,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
|||||||
|
|
||||||
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
||||||
"stone",
|
"stone",
|
||||||
|
"stone_block",
|
||||||
"cobble",
|
"cobble",
|
||||||
"mossycobble",
|
"mossycobble",
|
||||||
"brick",
|
"brick",
|
||||||
@ -17,6 +18,7 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
|||||||
"bronzeblock",
|
"bronzeblock",
|
||||||
"diamondblock",
|
"diamondblock",
|
||||||
"desert_stone",
|
"desert_stone",
|
||||||
|
"desert_stone_block",
|
||||||
"desert_cobble",
|
"desert_cobble",
|
||||||
"meselamp",
|
"meselamp",
|
||||||
"glass",
|
"glass",
|
||||||
@ -31,20 +33,29 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
|||||||
"aspen_tree",
|
"aspen_tree",
|
||||||
"aspen_wood",
|
"aspen_wood",
|
||||||
"obsidian",
|
"obsidian",
|
||||||
|
"obsidian_block",
|
||||||
|
"obsidianbrick",
|
||||||
"obsidian_glass",
|
"obsidian_glass",
|
||||||
"stonebrick",
|
"stonebrick",
|
||||||
"desert_stonebrick",
|
"desert_stonebrick",
|
||||||
"sandstonebrick",
|
"sandstonebrick",
|
||||||
"obsidianbrick",
|
"sandstone_block",
|
||||||
|
"coral_skeleton",
|
||||||
|
"farming:straw"
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, name in pairs(default_nodes) do
|
for _, name in pairs(default_nodes) do
|
||||||
local nodename = "default:"..name
|
local nodename = "default:"..name
|
||||||
|
local a,b = string.find(name, ":")
|
||||||
|
if b then
|
||||||
|
nodename = name
|
||||||
|
name = string.sub(name, b+1)
|
||||||
|
end
|
||||||
local ndef = minetest.registered_nodes[nodename]
|
local ndef = minetest.registered_nodes[nodename]
|
||||||
if ndef then
|
if ndef then
|
||||||
local drop
|
local drop
|
||||||
if type(ndef.drop) == "string" then
|
if type(ndef.drop) == "string" then
|
||||||
drop = ndef.drop:sub(9)
|
drop = ndef.drop:sub((b or 8)+1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local tiles = ndef.tiles
|
local tiles = ndef.tiles
|
||||||
|
Loading…
Reference in New Issue
Block a user