Giter Club home page Giter Club logo

mce's Introduction

Minecraft Enchantment Simulator

##Instructions

  • To use online, click on the download tab in the upper right corner of the github page and select 'Single download version'.
  • To use offline, fork this repo (or download a tagged version) and open index.html.
  • It is reccommended that you use Chrome / Chromium, as its javascript is much faster than other browsers.

Choose material and item type from the menu at the left. The graphs will immediately update to represent the simulated probability of receiving different possible enchantments. Use the + and - buttons to select a chosen enchantment level and see how the probabilities change.

###Modes ####Graph enchantments This mode will display a bar for each possible enchantment given at your selected level. The height of the bar represents the probability to receive the enchantment. ####Graph levels This mode will display a bar for each level. The height of the bar represents the probability for receiving your selected enchantment at the selected power level for that level.

##Details:

The script will run a simulated enchantment of given item at given level a given number of times. The procedure matches what the minecraft source code does at version 1.0.0, and should be pretty representative. The data from the simulations, basically a count of how many times each enchantment was received, is then shown in bar chart form. Mouseover the bars for detailed information.

Each bar will display the mean value for the probability of getting an enchantment as well as (optionally) a 95 percent level confidence interval. (That means that there is a 95 percent chance that the true value can be found between the upper and lower line in each bar - based on the simulation.) The middle line in each bar is the mean value. I think the values forms a normal distribution around this value, but I'm not sure.

###Charts: Enchantment distribution. - This is the most relevant result of the simulation. Each enchantment seen is represented by a bar, with the height being set to the percentage of times that enchantment was seen. Note that since some simulations generate several enchantments at once, the sum of the percentages often become more than 100. (How much more is given as "enchantment count saturation" in the info box.)

Number of enchantments - A simple chart that shows the probability of receiving multiple enchantments.

###Info box: This is mainly the bar charts in text form for usability purposes.

##License: My code and text is published at github.com/zazcallabah/mce with a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Note that this probably doesn't include the ported data extracted from the minecraft source

mce's People

Contributors

riking avatar zazcallabah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.