---Version: 5.18 ---@meta ---@class NodeDefinition.Groups : ItemDefinition.Groups ---@field [string] integer? local NodeDefinition = {} --- Luanti groups --- ---The node is `'attached'` to a neighboring node. --- ---It checks whether the node it is attached to is walkable. ---If it isn't, the node will drop as an item. --- --- * `1`: if the node is wallmounted, the node is attached in the wallmounted direction. --- Otherwise, the node is attached to the node below. --- * `2`: if the node is facedir or 4dir, the facedir or 4dir direction is checked. --- No effect for other nodes. Note: The "attaching face" of this node is tile № 5 (back face). --- * `3`: the node is always attached to the node below. --- * `4`: the node is always attached to the node above. ---@type integer? NodeDefinition.attached_node = nil ---Value is bounce speed in percent. --- ---If positive, jump/sneak on floor impact will increase/decrease bounce height. --- ---Negative value is the same bounciness, but non-controllable. ---@type integer? NodeDefinition.bouncy = nil ---Makes nodes of raillike drawtype with same group value connect to each other ---@type integer? NodeDefinition.connect_to_raillike = nil ---Player can always pick up node without reducing tool wear --- * `2`: the node always gets the digging time 0.5 seconds (rail, sign) --- * `3`: the node always gets the digging time 0 seconds (torch) ---@type integer? NodeDefinition.connect_to_raillike = nil ---Player (and possibly other things) cannot jump from node or ---if their feet are in the node. --- ---**Note**: not supported for `new_move = false`. ---@type integer? NodeDefinition.disable_jump = nil ---Player (and possibly other things) cannot actively descend in node using `Sneak` or `Aux1` ---key (for liquids and climbable nodes only). --- ---**Note**: not supported for `new_move = false`. ---@type integer? NodeDefinition.disable_descend = nil ---Modifies the fall damage suffered when hitting the top of this node. --- ---There's also an armor group with the same name. --- ---The final player damage is determined by the following formula: ---```lua --- damage = --- collision speed --- * ((node_fall_damage_add_percent + 100) / 100) -- node group --- * ((player_fall_damage_add_percent + 100) / 100) -- player armor group --- - (14) ---``` --- ---Negative damage values are discarded as no damage. ---@type integer? NodeDefinition.fall_damage_add_percent = nil ---If there is no walkable node under the node it will fall. --- ---It also falls if the node below is `buildable_to`. ---@type integer? NodeDefinition.falling_node = nil ---The node will not fall through liquids (liquidtype ~= "none") --- ---A liquid source with `groups = {falling_node = 1, float = 1}` ---will fall through flowing liquids. ---@type integer? NodeDefinition.float = nil ---Can be used to give an additional sense of progression in the game. ---@type integer? NodeDefinition.level = nil ---Players and items will slide on the node. --- ---Slipperiness rises steadily with `slippery` value, starting at `1`. ---@type integer? NodeDefinition.slippery = nil ---Can be added to nodes that shouldn't logically be breakable by the hand but are. --- ---Somewhat similar to dig_immediate, but times are more like `{[1]=3.50,[2]=2.00,[3]=0.70}` ---and this does not override the digging speed of an item if it can dig at ---a faster speed than this suggests for the hand. NodeDefinition.oddly_breakable_by_hand = nil --- SMC groups digging time defining group --- ---Digging time defining group. --- ---Suitable for items that can be cut (режущийся). ---@type integer? NodeDefinition.cutting = nil ---Digging time defining group. --- ---Suitable for items that can be crash (раскалываемый). ---@type integer? NodeDefinition.crushing = nil ---Digging time defining group. --- ---Suitable for items that can be chop (рубящийся). ---@type integer? NodeDefinition.chopping = nil ---Digging time defining group. --- ---Suitable for items that can be dig (вскапывающийся). ---@type integer? NodeDefinition.digging = nil --- SMC node types groups --- ---@type integer? NodeDefinition.slabs = nil ---@type integer? NodeDefinition.stairs = nil --- SMC special groups --- ---A group for the automatic registration of node segments (slabs and stairs). --- * `1`: registration only slabs --- * `2`: registration only stairs --- * `3`: registration slabs & stairs ---@type integer? NodeDefinition.segments = nil