HomeJavaModsUnsafe Enchantment Table
Unsafe Enchantment Table
Description

UnsafeEnchantmentTable adds a new enchanting system that allows you to add unsafe enchantments (higher level than Minecraft's cap) through the enchantment table.

Features
[​IMG]
Basic Setup

Spoiler: Unsafe Enchant Book
Unsafe Enchant
Before we begin enchanting, we need to create a new enchanted book called "Unsafe Enchants". This book can go from levels 1-3.
NOTE: This step can be disabled in the config by setting "simpleSystem" to true.

Crafting
In order to craft the book, you must combine any enchanted book with a netherite ingot in an anvil, like so:

[​IMG]

The more valuable the enchanted book you supply, the higher the Unsafe Enchant level will be. Each level will significantly damage the anvil.

Inner Mechanics
The Unsafe Enchant level is determined by the sum of the enchantment levels in the supplied book.

The levels are:
Unsafe Enchants I - Sum between 1-5
Unsafe Enchants II - Sum between 5-9
Unsafe Enchants III - Sum 10+

For example, if you use an enchanted book with Sharpness 4, Unbreaking 1, and Protection 3 on it, you will get Unsafe Enchants II. (4+1+3 = 8)

Spoiler: Enchantment Table Setup
Basic Enchantment Table
To begin, build the normal enchantment table setup you would normally. This is mine:
[​IMG]
Note: The bookshelves do NOT need to be in any specific pattern, just make sure you have the normal 15 bookshelves activated for a normal enchantment room

Upgraded Table
Next, in order to upgrade the enchantment system to allow for unsafe enchants, you must put a beacon UNDER the enchantment table, and a lectern somewhere within 3 blocks (customizable)
Like this:
[​IMG]

Activation
Now simply place your Unsafe Enchants book in the lectern!
[​IMG]
If everything worked, you should see the animation like above (as well as a bunch of ominous noises). However, if you missed a step, the lectern will play a negative noise to indicate an unsuccessful creation.

Done
You're ready to enchant! Based on the Unsafe Enchant book you put in the lectern, you can get higher levels and more enchants per item! But beware, the higher the Unsafe Enchant, the more likely negative events will occur.

Spoiler: Other Features
NOTE: All of these features are customizable in the config. Each is based on the Unsafe Enchants level. The higher the level, the more likely these features are.
Book Consumption
Unsafely enchanting can consume the bookshelves around the table. The higher the level, the more books will be consumed.
This is what it looks like when books have been consumed:
[​IMG]

Curses
Curses can now be added in the enchantment table! There's only a small chance, though (customizable). Curses can only be applied IF an unsafe enchant was added.
[​IMG]

Explosion
There's a very low chance (customizable) that unsafely enchanting will cause a small explosion (it is an unsafe process, after all). The explosion intensity is correlated with the Unsafe Enchants level.

No picture, I'll let you experience that on your own :devilish:

Command
If you have the permission unsafeenchant.admin you can get unsafe books through the command:
/unsafeenchants give (level) <count>

Configuration

Spoiler: Full Config
Code (Text):
# New max enchantment levels (recommended not to go above 10, as Minecraft doesn't display Roman numerals above 10)
# Numbers provided are the weight for that level (higher the weight, the more likely it is)
# For this example: 'sharpness: [10, 8, 7, 4, 2]', since normally the max level for sharpness is V,
# Sharpness VI has a weight of 10, Sharpness X has a weight of 2
enchantments:

  # Add and remove enchantments (and levels) as you please
  sharpness: [20, 5, 3, 2, 1]
  efficiency: [50, 10, 3, 2, 1]
  fire_aspect: [30, 10, 5]
  looting: [100, 20, 5]
  knockback: [100, 20, 2]
  smite: [20, 5, 2]
  power: [100, 10, 2]
  punch: [100, 10, 2]
  unbreaking: [40, 10, 5]
  fortune: [100, 20, 5]
  protection: [20, 5, 3, 2, 1]
  blast_protection: [20, 5, 3, 2, 1]
  projectile_protection: [20, 5, 3, 2, 1]
  fire_protection: [20, 5, 3, 2, 1]
  feather_falling: [40, 10, 3]
  depth_strider: [50, 1]
  respiration: [30, 10, 2]
  thorns: [50, 20, 5]
 
system:

  # Enchant unsafely without any requirements (unsafe book, lectern, etc.) *disables unsafe book recipe!
  simpleSystem: false
 
  # The max distance the lectern can be to be a part of the enchant system
  lecternRadius: 3

  # The chance for consuming the Unsafe Book in the lectern
  consumeUnsafeBookChance: 0.0

  # Book consumption occurs after each enchant - higher the unsafe level, the more books consumed
  consumeBooks: true
 
  # Chance a curse gets added when enchanting (set to 0 to disable)
  # This will be modified by the unsafe level (Unsafe Enchants III will cause x3 this value)
  curseChance: 0.05
 
  # Chance for a small explosion after unsafely enchanting
  # This is NOT modified by the unsafe level, though the explosion intensity IS
  explosionChance: 0.01
 
# Provided for translation capabilities
text:
  unsafeEnchants: 'Unsafe Enchants'

Contact

I'm currently a full-time student so I don't have much time for plugin development, but if you have a game-breaking bug I'd appreciate it if you report it on my Discord server :D

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Unsafe Enchantment Table is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19. Downloaded 886 times (via Spigot). Download it and open it directly in the game.

Explore more