summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-10 07:48:03 +0200
committerWuzzy <almikes@aol.com>2016-08-10 07:48:03 +0200
commit28e81859bbf5e4790a0dbaaa9bdf59e4ae805313 (patch)
treea3069b943c1401f89636c0bd730d8ae3684bd078 /init.lua
parent047258113f5851c38137c7db18bb1080d88000c8 (diff)
Fix all door and fence gate entries
... which also move doors to the nodes category
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua26
1 files changed, 25 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 43270f7..8078863 100644
--- a/init.lua
+++ b/init.lua
@@ -41,6 +41,17 @@ local forced_items = {
"fire:basic_flame",
"farming:wheat_8",
"farming:cotton_8",
+ "doors:door_wood_a",
+ "doors:door_steel_a",
+ "doors:door_glass_a",
+ "doors:door_obsidian_glass_a",
+}
+
+local suppressed_items = {
+ "doors:door_wood",
+ "doors:door_steel",
+ "doors:door_glass",
+ "doors:door_obsidian_glass",
}
local item_name_overrides = {
@@ -51,12 +62,17 @@ local item_name_overrides = {
["default:lava_source"] = "Lava",
["default:water_source"] = "Water",
["default:river_water_source"] = "River Water",
+ ["doors:door_wood_a"] = minetest.registered_items["doors:door_wood"].description,
+ ["doors:door_steel_a"] = minetest.registered_items["doors:door_steel"].description,
+ ["doors:door_glass_a"] = minetest.registered_items["doors:door_glass"].description,
+ ["doors:door_obsidian_glass_a"] = minetest.registered_items["doors:door_obsidian_glass"].description,
}
doc.sub.items.add_real_group_names(groupdefs)
doc.sub.items.add_notable_groups(miscgroups)
doc.sub.items.add_mining_groups(mininggroups)
doc.sub.items.add_forced_item_entries(forced_items)
+doc.sub.items.add_suppressed_item_entries(suppressed_items)
doc.sub.items.add_item_name_overrides(item_name_overrides)
@@ -131,7 +147,15 @@ doc.add_entry_alias("nodes", "default:lava_source", "default:lava_flowing")
doc.add_entry_alias("nodes", "default:water_source", "default:water_flowing")
doc.add_entry_alias("nodes", "default:river_water_source", "default:river_water_flowing")
doc.add_entry_alias("nodes", "default:furnace", "default:furnace_active")
--- FIXME: Door aliases are missing because doors are draftitems
+doc.add_entry_alias("nodes", "doors:door_wood_a", "doors:door_wood_b")
+doc.add_entry_alias("nodes", "doors:door_steel_a", "doors:door_steel_b")
+doc.add_entry_alias("nodes", "doors:door_glass_a", "doors:door_glass_b")
+doc.add_entry_alias("nodes", "doors:door_obsidian_glass_a", "doors:door_obsidian_glass_b")
+doc.add_entry_alias("nodes", "doors:gate_wood_closed", "doors:gate_wood_open")
+doc.add_entry_alias("nodes", "doors:gate_junglewood_closed", "doors:gate_junglewood_open")
+doc.add_entry_alias("nodes", "doors:gate_acacia_wood_closed", "doors:gate_acacia_wood_open")
+doc.add_entry_alias("nodes", "doors:gate_aspen_wood_closed", "doors:gate_aspen_wood_open")
+doc.add_entry_alias("nodes", "doors:gate_pine_wood_closed", "doors:gate_pine_wood_open")
doc.add_entry_alias("nodes", "doors:trapdoor", "doors:trapdoor_open")
doc.add_entry_alias("nodes", "doors:trapdoor_steel", "doors:trapdoor_steel_open")
doc.add_entry_alias("nodes", "tnt:tnt", "tnt:tnt_burning")