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:
parent
932988af46
commit
b9e8e20c9c
8 changed files with 61 additions and 162 deletions
|
@ -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
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue