ItemDefinition & NodeDefinition: add luanti & smc groups annotations
This commit is contained in:
@@ -4,6 +4,22 @@
|
||||
---@class NodeDefinition.Settings : ItemDefinition.Settings
|
||||
local Settings = {}
|
||||
|
||||
---Table of groups-characteristics of Item.
|
||||
---```
|
||||
--- key = name, value = rating; rating = number.
|
||||
---```
|
||||
---If rating not applicable, use 1.
|
||||
---
|
||||
---e.g.:
|
||||
---```
|
||||
--- {wool = 1, fluffy = 3}
|
||||
--- {soil = 2, outerspace = 1, crumbly = 1}
|
||||
--- {bendy = 2, snappy = 1},
|
||||
--- {hard = 1, metal = 1, spikes = 1}
|
||||
---```
|
||||
---@type NodeDefinition.Groups?
|
||||
Settings.groups = nil
|
||||
|
||||
---@alias Node.Settings.drawtype
|
||||
---|'normal'
|
||||
---|'airlike'
|
||||
|
||||
Reference in New Issue
Block a user