Code Monkey home page Code Monkey logo

Comments (9)

pdinklag avatar pdinklag commented on August 17, 2024

You can write a Python module for any stat that Minecraft collects. Just create one in the mcstats/stats directory. It's easiest to use the existing ones for reference, e.g. copy one that is closely related and change it to your needs.

The only list I know of is this: https://minecraft.gamepedia.com/Statistics

Other statistics are mob kills, blocks mined, etc for each type. Take a look a the existing modules and player statistic JSON files too, they give good hints as to what's there.

from minecraftstats.

lukeeexd avatar lukeeexd commented on August 17, 2024

Yeah I've been adding ones by using template of others. Just havent seen one about breaking spawners so don't know how I'd add it

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

Well, you'll have to find the block ID for spawners. The Minecraft Wiki has this kind of information, so that's the go-to reference.

from minecraftstats.

lukeeexd avatar lukeeexd commented on August 17, 2024

Oh so i can literally do mcstats.StatReader(['minecraft:mined','minecraft:monster_spawner']), ?

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

If minecraft:monster_spawner is the correct ID, yep, that's it! I believe it's just minecraft:spawner, but you can double-check that ( https://minecraft.gamepedia.com/Spawner ).

from minecraftstats.

lukeeexd avatar lukeeexd commented on August 17, 2024

Yep that worked. Do you know if theres one for words said?

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

Not that I know of. I guess those kinds of stats would be listed under that Wiki page I linked.

Anyway, feel free to create pull requests for new stats, always good to get fresh ideas. Didn't think about spawners myself, it's a good one! 👍

from minecraftstats.

lukeeexd avatar lukeeexd commented on August 17, 2024

How do I pull request?

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

Never mind if it's too much of a hassle, I will probably incorporate those awards myself.

from minecraftstats.

Related Issues (20)

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.