ToolModifiers

ToolModifiers

370 Downloads

Tools:

  • Hammer - mines 3x3 area (3x5 versions mine 3x5 area)
  • Excavator - digs 3x3 area
  • Lumberaxe - chops 3x3 area or cuts down a tree (experimental)

Commands:

  • tm - alias for toolmodifiers
  • toolmodifiers itemlist - lists all modified tools
  • toolmodifiers territoryhook - displays which territory plugin is being used (Factions or Towny)
  • toolmodifiers give <itemname> - give yourself a tool from itemlist (ex. diamondhammer)
  • toolmodifiers give <playername> <itemname> - give player a tool from itemlist

Permissions:

  • toolmodifiers.hammer.use - can use hammers (default: true)
  • toolmodifiers.hammer.craft - can craft hammers (default: true)
  • toolmodifiers.excavator.use - can use excavators (default: true)
  • toolmodifiers.excavator.craft - can craft excavators (default: true)
  • toolmodifiers.lumberaxe.use - can use lumberaxes for chopping a 3x3 area (default: true)
  • toolmodifiers.lumberaxe.tree - can cut down trees (default: true)
  • toolmodifiers.lumberaxe.craft - can craft lumberaxes (default: true)
  • toolmodifiers.command - access to /tm command (default: op)
  • toolmodifiers.command.give.(hammer|excavator|lumberaxe) - can use /tm give command (default: op)

Crafting recipes:

  • Hammers - pickaxe recipe but instead of ingots/gems you must use blocks of that ingot/gem (except for netherite tools)
  • Excavator - shovel recipe ...
  • Lumberaxe - axe recipe ...
  • Netherite tools can be obtained by upgrading their diamond counterparts.

You can only craft iron, gold, diamond and netherite tier tools.

Also, there is a bug where netherite tools don't update their name in smithing table's resulting slot, but when you get the upgrade, it should be renamed properly (except if you have already renamed your tool in an anvil). It should be fixable, and you can do it if you really want to, although my code is a bit messy right now, - git repo is given below.

Config:

# Example:
hardness_threshold: 1.5
lumberaxe:
  tree_branch_radius: 4
  drop_tree_logs_at_source: true
hook:
  factions:
    default_faction_name: Wilderness
  towny:
    protect_wild: false
display:
  names:
    diamond:
      hammer: §r§6Diamond Hammer
      excavator: §r§6Diamond Excavator
      lumberaxe: §r§6Diamond Lumberaxe
    iron:
      hammer: §r§6Iron Hammer
      excavator: §r§6Iron Excavator
      lumberaxe: §r§6Iron Lumberaxe
    gold:
      hammer: §r§6Golden Hammer
      excavator: §r§6Golden Excavator
      lumberaxe: §r§6Golden Lumberaxe
    netherite:
      hammer: §r§6Netherite Hammer
      excavator: §r§6Netherite Excavator
      lumberaxe: §r§6Netherite Lumberaxe

Experimental integration with factions and towny plugins - use at your own risk.

You can freely modify or create your own versions of this plugin as it is under the MIT license.

Git repo: https://github.com/KristiansKaneps/ToolModifiers