diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-23 11:08:22 -0500 |
---|---|---|
committer | Hugo Locurcio <hugo.l@openmailbox.org> | 2017-02-23 17:08:22 +0100 |
commit | f4b68fbfd7226af2e0aced6bb8f921b2a8662b75 (patch) | |
tree | e4ab4cd111b7a4d5e3e42e6b96edd0b0f062e890 /stairsplus | |
parent | 6a1ffa7651125476067a6410d44af7939ffdf1d8 (diff) | |
download | moreblocks-f4b68fbfd7226af2e0aced6bb8f921b2a8662b75.tar.gz moreblocks-f4b68fbfd7226af2e0aced6bb8f921b2a8662b75.tar.bz2 moreblocks-f4b68fbfd7226af2e0aced6bb8f921b2a8662b75.zip |
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
Diffstat (limited to 'stairsplus')
-rw-r--r-- | stairsplus/registrations.lua | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index ccadedc..be08b43 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -7,6 +7,7 @@ Licensed under the zlib license. See LICENSE.md for more information. local default_nodes = { -- Default stairs/slabs/panels/microblocks: "stone", + "stone_block", "cobble", "mossycobble", "brick", @@ -17,6 +18,7 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: "bronzeblock", "diamondblock", "desert_stone", + "desert_stone_block", "desert_cobble", "meselamp", "glass", @@ -31,20 +33,29 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: "aspen_tree", "aspen_wood", "obsidian", + "obsidian_block", + "obsidianbrick", "obsidian_glass", "stonebrick", "desert_stonebrick", "sandstonebrick", - "obsidianbrick", + "sandstone_block", + "coral_skeleton", + "farming:straw" } 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] if ndef then local drop if type(ndef.drop) == "string" then - drop = ndef.drop:sub(9) + drop = ndef.drop:sub((b or 8)+1) end local tiles = ndef.tiles |