ItemDefinition & NodeDefinition: add luanti & smc groups annotations
This commit is contained in:
20
definitions/ItemDefinition/Groups.lua
Normal file
20
definitions/ItemDefinition/Groups.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
---Version: 5.18
|
||||
---@meta
|
||||
|
||||
---@class ItemDefinition.Groups
|
||||
---@field [string] integer?
|
||||
local ItemDefinition = {}
|
||||
|
||||
--- Luanti groups ---
|
||||
|
||||
---Special group for inventory mods to indicate that the item should be hidden in item lists.
|
||||
---@type integer?
|
||||
ItemDefinition.not_in_creative_inventory = nil
|
||||
|
||||
---If set to 1 for a tool, it cannot be repaired using the `"toolrepair"` crafting recipe.
|
||||
---@type integer?
|
||||
ItemDefinition.disable_repair = nil
|
||||
|
||||
|
||||
|
||||
--- SMC groups ---
|
||||
Reference in New Issue
Block a user