You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: defns.lua
+11-5
Original file line number
Diff line number
Diff line change
@@ -511,11 +511,17 @@ function InvRef:get_location() end
511
511
---@classPlayerMetaRef:MetaDataRef
512
512
localPlayerMetaRef= {}
513
513
514
+
---@classToolGroupEntry
515
+
---@fieldmaxlevelinteger Indicates the maximum level of a node of this group that the item will be able to dig.
516
+
---@fieldusesinteger
517
+
---@fieldtimesnumber[] List of digging times for different ratings of the group, for nodes of the maximum level. For example, as a Lua table, `times={2=2.00, 3=0.70}`. This would result in the item to be able to dig nodes that have a rating of `2` or `3` for this group, and unable to dig the rating `1`, which is the toughest. Unless there is a matching group that enables digging otherwise. If the result digging time is 0, a delay of 0.15 seconds is added between digging nodes; If the player releases LMB after digging, this delay is set to 0, i.e. players can more quickly click the nodes away instead of holding LMB.
518
+
localToolGroupEntry= { }
519
+
514
520
---@classToolCapabilities
515
-
---@fieldfull_punch_intervalnumber
516
-
---@fieldmax_drop_levelinteger
517
-
---@fieldgroupcapstable
518
-
---@fielddamage_groupstable
521
+
---@fieldfull_punch_intervalnumber When used as a weapon, the item will do full damage if this time is spent between punches. If e.g. half the time is spent, the item will do half damage.
522
+
---@fieldmax_drop_levelinteger Suggests the maximum level of node, when dug with the item, that will drop its useful item. (e.g. iron ore to drop a lump of iron). This is not automated; it is the responsibility of the node definition to implement this.
523
+
---@fieldgroupcapstable<string, ToolGroupEntry>
524
+
---@fielddamage_groupstable<string, number>
519
525
---@fieldpunch_attack_usesinteger | nil
520
526
localToolCapabilities= { }
521
527
@@ -674,7 +680,7 @@ function PlayerObjectRef:get_player_control_bits() end
674
680
functionPlayerObjectRef:set_physics_override(override_table) end
0 commit comments