From 658876f6aa57fdab42808903c393b6027c79577d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 25 Jul 2016 18:41:42 +0200 Subject: Add aliases for several plants (grass_1 etc.) --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init.lua') 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) -- cgit v1.2.3