Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Enchantment calculator


  • Please log in to reply
10 replies to this topic

#1

Aceofspades25

Posted 22 November 2011 - 03:09 PM

Hey everyone..

I've just finished an enchantment calculator. It calculates the probability of you gaining a particular enchantment for that prized posession you've been saving up for.

I was going to get the program to work out the actual probability using probability theory, but looking at the algorithm used, that is just not going to happen.

Instead this uses a brute force method to run through the algorithm (as given on the wiki - http://www.minecraft...wiki/Enchanting) 1000 times. Once this is done, the probability of gaining a particular enchantment can be calculated.

It also has a mode whereby you can run it once to see what enchantments you might have gotten for a given instance.

The program takes 3 inputs:
  • Item type
  • Material
  • Enchantment level

All the values are hard coded (embeded xml) (because I wrote this in a hurry), but I have released the source.

If the rules ever change, it should be fairly straight forward to update.

Enjoy, and feel free to tinker with it.

Please feel free to point out any mistakes.

I hope this makes the game more fun for you.

Google code link: http://code.google.c...ent-calculator/
Source: http://code.google.c...or.zip&can=2&q=
Binary (windows only sorry): http://code.google.c...or.exe&can=2&q=

Also, you will need to install .net framework 4 to use this.

This was written in VB.Net using WPF. The project file is for Visual Studio 2010

Regards

Ace

Note: You will need .Net Framework 4 installed if you don't already have it: http://www.microsoft.com/net/

*Edit:*
As an example, to get Fortune III on a Diamond Pickaxe
Level 40 will give you ~ 14% chance
Level 50 will give you ~ 24% chance


Register or log in to remove.

#2

NukeFly
    NukeFly

    Coal Miner

  • Members
  • 145 posts
  • Location: Finland
  • Minecraft: NukeFly

Posted 22 November 2011 - 03:18 PM

wow, if this works then your a god


EDIT: Your officially god now
There is a plus right under.
Test it by clicking on it!

#3

MadeOke
    MadeOke

    Zombie Killer

  • Curse Premium
  • Curse Premium
  • 232 posts
  • Location: Denpasar, Bali ,Indonesia
  • Minecraft: MadeOke

Posted 22 November 2011 - 03:23 PM

Cool thanks :D

Posted Image


#4

Aceofspades25

Posted 22 November 2011 - 03:32 PM

View PostNukeFly, on 22 November 2011 - 03:18 PM, said:

wow, if this works then your a god


EDIT: Your officially god now

No problem :) Glad you liked it

#5

Aceofspades25

Posted 22 November 2011 - 04:13 PM

One of the things that seemed strange to me while writing this:

The enchantment page on the Minecraft wiki says:

Smite
5 - 25
13 - 33
21 - 41
29 - 49
37 - 57



Bane of Arthropods
5 - 25
13 - 33
21 - 41
22 - 49
37 - 57

Smite and Bane of Arthropods have exactly the same enchantment levels, with the exception of the level IV min value. Is this correct, or did somebody make a typo here?

#6

Recall_Poet
  • Minecraft: Rawr1soldier

Posted 31 December 2011 - 08:08 AM

ooo i like this program very much thanks man

#7

LoafFace
  • Minecraft: LoafFace

Posted 11 March 2012 - 09:47 PM

Great program ;)

#8

KVKConsultancy
  • Location: England

Posted 11 March 2012 - 10:06 PM

View PostAceofspades25, on 22 November 2011 - 03:09 PM, said:

I've just finished an enchantment calculator. It calculates the probability of you gaining a particular enchantment for that prized posession you've been saving up for.

An interesting little tool :).
(KVKConsultancy, author of MineBack - MineCraft Automated Backup)

#9

OSKARAS1996

Posted 11 June 2012 - 12:51 PM

will this be for 1.3

#10

Ottakun
    Ottakun

    Newly Spawned

  • Members
  • 1 posts

Posted 25 June 2012 - 10:06 PM

I don't understand what the "modified enchantment level" means

#11

Matrixlawn

Posted 11 July 2012 - 05:28 AM

Uhm..
Source code does not exist.
If you enter MEL > 125 it seems to think you wont get any enchants.