1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Script-defined creative inventory

This commit is contained in:
Perttu Ahola 2011-12-02 12:43:57 +02:00
parent 932988af46
commit b9e8e20c9c
8 changed files with 61 additions and 162 deletions

View file

@ -327,6 +327,16 @@ minetest.craftitem_eat = function(hp_change)
end
end
--
-- Creative inventory
--
minetest.creative_inventory = {}
minetest.add_to_creative_inventory = function(itemstring)
table.insert(minetest.creative_inventory, itemstring)
end
--
-- Callback registration
--