Tool: create tool class

This commit is contained in:
Van
2026-02-27 20:57:54 +03:00
parent 51e6763457
commit c7cfe26335
10 changed files with 116 additions and 18 deletions

View File

@@ -64,7 +64,10 @@ core.register_on_player_receive_fields(function(player, formname, fields)
return
end
core.log(tostring(stack))
---@type ItemStack
stack = ItemStack(stack)
core.log(dump(stack:get_definition()))
---@type InvRef
local inv = player:get_inventory()