summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-07-25 18:41:42 +0200
committerWuzzy <almikes@aol.com>2016-07-25 18:41:42 +0200
commit658876f6aa57fdab42808903c393b6027c79577d (patch)
tree454c4d7d2eadd85b540c7556ba5b526e57651a12 /init.lua
parentf60158570bbbd10411441feed61e154aee8515ad (diff)
Add aliases for several plants (grass_1 etc.)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index a33e482..46e6c31 100644
--- a/init.lua
+++ b/init.lua
@@ -276,6 +276,16 @@ doc.new_category("nodes", {
end
})
+-- Add node aliases
+for i=2,5 do
+ doc.add_entry_alias("nodes", "default:grass_1", "default:grass_"..i)
+ doc.add_entry_alias("nodes", "default:dry_grass_1", "default:dry_grass_"..i)
+end
+for i=2,8 do
+ doc.add_entry_alias("nodes", "farming:wheat_1", "farming:wheat_"..i)
+ doc.add_entry_alias("nodes", "farming:cotton_1", "farming:cotton_"..i)
+end
+
doc.new_category("tools", {
name = "Tools and weapons",
build_formspec = function(data)