promotional bannermobile promotional banner

ToughAnvils

Allows you to create anvils that don't wear out.

ToughAnvils

ToughAnvils allows anyone with the right permissions to mark an anvil as 'indestructible'. The anvil may still be broken by a pickaxe, but normal usage will not wear it out. This plugin was created to fill a request, and as it turns out, it's quite difficult to accomplish due to a lack of Bukkit API for locating the actual Anvil block involved in an Anvil Inventory action. ToughAnvils currently works with all 1.7.2-1.7.4 and will be backported to the 1.6.x series soon.

Commands

  • /toughanvils [set|unset]

Use 'set' or 'unset' to make an anvil indestructible, or destructible, respectively. after entering the command you will be prompted to hit the anvil you wish to select, once you've done this the change will take effect immediately.

Permissions

  • toughanvils.command - required to have any access to the /toughanvils command
  • toughanvils.command.set - allows usage of /toughanvils set
  • toughanvils.command .unset- allows usage of /toughanvils unset

Developers

Other Developers may wish to hook into ToughAnvils solely for it's Anvil-Locating functionality, ToughAnvils provides a public method directly on the plugin instance:

public Location getAnvilLocation(AnvilInventory inv) {
    ToughAnvils toughAnvilsPlugin = (ToughAnvils) getPluginManager().getPlugin("ToughAnvils");
    if (toughAnvilsPlugin != null && toughAnvilsPlugin.isEnabled()) {
        return toughAnvilsPlugin.getAnvilLocation(inv);
    }    
    return null;
}

Source Code

This plugin is open source, and is available on GitHub.

The ToughAnvils Team

profile avatar
  • 19
    Projects
  • 170.2K
    Downloads

More from _ForgeUser9678359View all

  • JukeLoopRevived project image

    JukeLoopRevived

    • 789
    • Bukkit Plugins

    Juke boxes will loop.

    • 789
    • October 20, 2016
    • Bukkit Plugins
  • DigForDollars project image

    DigForDollars

    • 1.8K
    • Bukkit Plugins

    get paid for mining!

    • 1.8K
    • August 7, 2014
    • Bukkit Plugins
  • Scribe project image

    Scribe

    • 9.0K
    • Bukkit Plugins

    Transfer enchantments from tools and armor into books.

    • 9.0K
    • July 17, 2014
    • Bukkit Plugins
    • +1
  • PortableHorses project image

    PortableHorses

    • 23.6K
    • Bukkit Plugins

    Carry your horse in your back pocket.

    • 23.6K
    • June 22, 2014
    • Bukkit Plugins
    • +1
  • JukeLoopRevived project image

    JukeLoopRevived

    • 789
    • Bukkit Plugins

    Juke boxes will loop.

    • 789
    • October 20, 2016
    • Bukkit Plugins
  • DigForDollars project image

    DigForDollars

    • 1.8K
    • Bukkit Plugins

    get paid for mining!

    • 1.8K
    • August 7, 2014
    • Bukkit Plugins
  • Scribe project image

    Scribe

    • 9.0K
    • Bukkit Plugins

    Transfer enchantments from tools and armor into books.

    • 9.0K
    • July 17, 2014
    • Bukkit Plugins
    • +1
  • PortableHorses project image

    PortableHorses

    • 23.6K
    • Bukkit Plugins

    Carry your horse in your back pocket.

    • 23.6K
    • June 22, 2014
    • Bukkit Plugins
    • +1