ItemDefinition & NodeDefinition: add luanti & smc groups annotations

This commit is contained in:
Van
2026-11-08 20:05:18 +03:00
parent 195185f1c2
commit a94b014166
5 changed files with 188 additions and 1 deletions

View File

@@ -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'