#Is there ANY way to go past the enchantment limit and if so how?

1 messages · Page 1 of 1 (latest)

alpine wraith
#

Basically, I have tried working with enchantment for the past couple of hours to no avail and at this point after rummaging around many different forums and what not I came to the realization of:

There is an enchantment limit.

I have a system in mind as of where a weapon's sharpness enchantment would be the same as the players stats, said stats can go up to 20.
How could I go about making this potential system, IF, something like that is even possible with the current API and how would i implement something like it?

marble inlet
#

Yeah the only way you're getting past the limit is with some good ol fashioned nbt editing

alpine wraith
#

pain

alpine wraith
#

perhaps one day, glory shall be figured out

sour crescent
#

orrrr

#

make a custom enchant system and try to mirror the vanilla enchants

alpine wraith
#

how could i go about mirroring sharpness?

#

is that like a thing i can do, change the weapons base attack damage?? cause if so pray tell

sour crescent
#

you could try to figure out the math for it or something

#

then just use the applyDamage thingy whenever a player is hit

sour crescent
#

so basically

#

the math is simple

#

its just baseSharpness + (sharpnessLevel * 1.25 )

#

so if it was a wooden sword

#

with sharp 3

#

4 + ( 3 * 1.25 )

#

BUT

#

its rounded down

#

to integers

#

so like 10.75 damage would actually be 10

#

so theoeritcally u can do custom sharpness

sour crescent
#

@alpine wraith here, LOL its kinda long and may be poop code but hey it 1:1 mirrors the vanilla sharpness soooo

#

just get a sword, right click it and enter a number

#

the damage is 1:1

alpine wraith
alpine wraith
#

such a system can maybe work large scale with the slew of weaponry and different enchants that get used in these weapons so i can probably tinker with it and ensure that it'll work well and be optimized for multiple devices at once

sour crescent
#

because with custom weapons u can also add the damage to the lore making it basically 1:1 with vanilla sharpness and damage

alpine wraith
#

its definetly going to be very complicated to add in and not an easy task for the plethora of like 50+ weapons that already exist, but it's def a wonderful step in the right direction, thats for sure

sour crescent
#

what does smite and bane of arthropods do?

alpine wraith
#

Smite deals more damage to Undead Mobs
Bane of Arthopods deals more damage to Arthropod mobs.

Normally in vanilla both are not really useful, but in my project both are incredibly used as there are many mobs that sport weaknesses to smite and bane of arthropods

#

I've just been using [RESOURCES] to get enchants past the max limit to make sure that players can reliably deal damage to foes that sport upwards of 50k health

#

Some weapons have negative smite and negative arthropods to create a weakness towards a certain type of mob