Coder Social home page Coder Social logo

Comments (5)

Sweenus avatar Sweenus commented on August 30, 2024

Thanks for the feedback!

I think this makes a lot of sense as a feature implementation. I'll see what I can do πŸ‘

from simplyswords.

Sweenus avatar Sweenus commented on August 30, 2024

I've been working on implementing this suggestion and just wanted to provide an update on the progress.

In addition to the existing config files, a new config has been added, named 'loot_config'.
The mod will still try to inject its loot into any loot tables that contain the text "chests" in the path, but any values in the loot_config will override this.
This config starts with a list of examples and can be added to freely by the end user.

Each line of the config requires a string for the namespace/path/filename, as well as a float for the dropchance. Example below:
"minecraft:chests/ruined_portal": 0.0,
The above example would override the loot injection code on my end, resulting in the ruined portal having %0 chance to drop unique items, as denoted by the float value.

This config can be used as both a blacklist and a whitelist. Here's an example of a config value that would allow for unique weapons to drop from Withers with a %75 chance:
"minecraft:entities/wither": 0.75,

This level of fine tuning will only be available for unique weapons, not the standard iron>diamond gear drops, as I don't want to bloat the configs much more than they already are. The global modifiers in the general_config should be used be used for these items.

from simplyswords.

Clark919 avatar Clark919 commented on August 30, 2024

This is exactly what I was looking for, really great work. I understand not needing to configure the iron > diamond gear drops to avoid bloat, but will the configs include both unique and runic weapons? These two tend to be the sort of weapons I consider to be "endgame" gear, in the sense that they are typically equivalent to Netherite or better, and as such you wouldn't want players to encounter them early unless they take risks. So would the config allow the opportunity to specify drop chances in loot tables for both unique and runic weapons?

from simplyswords.

Sweenus avatar Sweenus commented on August 30, 2024

Glad to hear it!

I should have prefaced that runic items have been completely removed from the loot tables a couple of updates ago. It didn't make much sense for them to be directly obtainable, as they can be crafted using the Runic Tablets.
Having them only be craftable effectively gates the runic content behind the vanilla barrier of obtaining Netherite gear - I think this works pretty well for general gameplay.

from simplyswords.

Sweenus avatar Sweenus commented on August 30, 2024

These changes have now been made live in the latest release πŸ™‚

from simplyswords.

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.