Giter Club home page Giter Club logo

Comments (4)

RubixDev avatar RubixDev commented on August 12, 2024 1

Thanks for the hint, the ResourceManagerHelper.registerBuiltinResourcePack method should I think do what I want, but I don't have the necessary internet connection to test right now

from rug.

RubixDev avatar RubixDev commented on August 12, 2024

Actually after having a closer look now, I don't think that method works. It requires the datapack to be in the mod jar file, but the whole reason why I manually copy the files into the datapack directory is that I need the pack to be dynamic, depending on what rules are set the contents of that pack vary.

As previously discussed in #17 (comment), I am also pretty much unable to create the datapack files before the default first load starts, because carpet only parses the rule config after that.

If you have another suggestion for a potential solution or I simply misunderstood the registerBuiltinResourcePack method, please tell me. You seem a lot more experienced with fabric mod development than I am. Otherwise I sadly might have to close this as wontfix...

from rug.

supersaiyansubtlety avatar supersaiyansubtlety commented on August 12, 2024

My recommendation would be: for each carpet rule that controls a datapack, remove it, and replace it with a builtin datapack.

The only difference for users would be that they enable/disable them with /datapack enable/disable <data pack name> instead of /carpet <carpet rule name> true/false.

from rug.

RubixDev avatar RubixDev commented on August 12, 2024

That won't work with rules like unpackableIce however, as they can be customized with a user specified integer value. Also I like the way these rules are integrated with the others, so users don't have to think about them being any different.

So, as the hard conflict between our mods seems to have been resolved on your side, I will close this now.

from rug.

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.