AutoEnchanter

Introduction

Auto Enchanter is a plugin to add Items that automatically level based on usage. The plugin is currently in alpha and is under active development. Auto Enchanter is licensed under the LGPL and the code is hosted on github

Updated version 1.1, fixes bows and adds permission nodes

Download version 1.1 here

This plugin will only work if you have craftbukkit 1511 or above

Commands

Currently no commands are needed or used.

Configuration

Example

 DIAMOND_PICKAXE:
     BlockBreakEvent:
         GOLD_ORE:
             enchant: 'LOOT_BONUS_BLOCKS'
             levelFactor: 1
         enchant: 'DIG_SPEED'
         rate: 1.0
         maxLevel: 5
         permission: 'autoenchanter.level'
 DIAMOND_SWORD:
     DealDamageEvent:
         enchant: 'DAMAGE_ALL'
         rate: 1.0
         maxLevel: 2

Options

All item/block names are defined from the enum values used within bukkit's api. They can be found here.

The names used for enchantments can be found here

The objects in subsections will inherit the values from their parents.

Common

These options can be used on all events

  • maxLevel - Int - The maximum AutoEnchater will enchant to. - Default: Variable, depending on enchantment
  • rate - Double - How much xp is gained for this specific enchant - Default: 0.1
  • levelFactor - Double - The rate AutoEnchater will increase the requirered XP to enchant. - Default: 1
  • levelCurveFactor - Double - The exponent AutoEnchater will apply to the current level when determining the required XP to enchant. - Default: 1
  • unsafe - T/F - Allow the use of unsafe enchants - Default: false
  • permission - The permission node to check - Default: autoenchanter.level
  • enchant - String - The specific enchant to use. The names used for the enchant can be found in the bukkit javadoc as the string representation of the enchant values - Default: None, not providing this option will result no action.
  • levelRequirement - Double - The amount of XP required before leveling - Default: 10.0
BlockBreakEvent
  • [BLOCK_NAME] - SubConfiguration - This defines behavior for a particular block type - Default: none
DealDamageEvent
  • [EntityClassName] - SubConfiguration - This defines the behavior for a particular monster, The name used is the exact String name of the entity's class - You can find them here
PlayerFishEvent

N/A - more planned

PlayerInteractEvent
  • [INTERACT_TYPE] - SubConfiguration - This defines behavior for a particular action (like right click) - Default: none

Video - Demonstration

Embed Removed: https://vimeo.com/moogaloop.swf?clip_id=32841362&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=00ADEF&fullscreen=1

Configuration used in the demonstration:

 DIAMOND_PICKAXE:
     BlockBreakEvent:
         LAPIS_ORE:
             enchant: 'WATER_WORKER'
             unsafe: true
             maxLevel: 1
         enchant: 'DIG_SPEED'
         rate: 1.0
         levelFactor: 0.0
         maxLevel: 5
 GOLD_PICKAXE:
     BlockBreakEvent:
         enchant: 'DURABILITY'
         rate: 1.0
         levelFactor: 0.0
         maxLevel: 5
 STONE_SWORD:
     DealDamageEvent:
         enchant: 'DAMAGE_ALL'
         rate: 5.0
         levelFactor: 1.0
         maxLevel: 5
 STONE_PICKAXE:
     BlockBreakEvent:
         GOLD_ORE:
             enchant: 'LOOT_BONUS_BLOCKS'
         rate: 1.0
         levelFactor: 0.0
         maxLevel: 5

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Recent Files