User Tools

Site Tools


tutorial:tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:tools [2021/08/13 13:57] – [Creating Tools] kaloyankystutorial:tools [2021/10/31 09:43] – Updated to fix sentence that said attackDamage was int, while it's float for AxeItem metaltxus
Line 92: Line 92:
 ==== Creating Tools ==== ==== Creating Tools ====
  
-All base tool classes (''PickaxeItem'', ''ShovelItem'', ''HoeItem'', ''AxeItem'', ''SwordItem'') require a ''ToolMaterial'', an attack speed (float), an additional attack damage amount (int), and an ''Item.Settings'' instance.+All base tool classes (''PickaxeItem'', ''ShovelItem'', ''HoeItem'', ''AxeItem'', ''SwordItem'') require a ''ToolMaterial'', an attack speed (float), an additional attack damage amount (float for AxeItem; int for the rest), and an ''Item.Settings'' instance.
  
 <code java [enable_line_numbers=true]> <code java [enable_line_numbers=true]>
tutorial/tools.txt · Last modified: 2023/09/07 05:32 by drakonkinst