aboutsummaryrefslogtreecommitdiff
path: root/data/builtin.lua
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-02 12:43:57 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 12:43:57 +0200
commitb9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f (patch)
tree9ff91e7afb0a90feb0c5380eee75dbfb51610b40 /data/builtin.lua
parent932988af4650cdd844669d4cd238907409413db6 (diff)
downloadminetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.tar.gz
minetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.tar.bz2
minetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.zip
Script-defined creative inventory
Diffstat (limited to 'data/builtin.lua')
-rw-r--r--data/builtin.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/builtin.lua b/data/builtin.lua
index bfdb45d93..a9412a97d 100644
--- a/data/builtin.lua
+++ b/data/builtin.lua
@@ -328,6 +328,16 @@ minetest.craftitem_eat = function(hp_change)
end
--
+-- Creative inventory
+--
+
+minetest.creative_inventory = {}
+
+minetest.add_to_creative_inventory = function(itemstring)
+ table.insert(minetest.creative_inventory, itemstring)
+end
+
+--
-- Callback registration
--