Giter Site home page Giter Site logo

Comments (5)

elucent avatar elucent commented on August 17, 2024 1

There's actually a really simple solution on Tetra's end, I think. There's a method Item#canApplyAtEnchantingTable Forge provides to specify which enchantments are compatible with a given item. It doesn't seem that Tetra overrides this, and as far as I can it is not used in the Tetra codebase at all. Simply overriding this to prevent enchantments being applied should fix the issue with Eidolon and potentially with other future enchanting mods.

If mickelus is unwilling to do this I can also make a tag, but I am currently in the midst of a larger content update so I can't say when I'd be able to release it. It's also a less robust solution in general, I think, so I'd prefer to avoid it.

from eidolon.

elucent avatar elucent commented on August 17, 2024

Is Tetra using the default enchantment tag to store modifiers? Eidolon definitely checks that the item is either:

  • enchantable
  • already enchanted
  • a book

I can see that Tetra modular tools return false for enchantable, and they clearly aren't books, so the only thing I can think of at the moment that would cause this is if Tetra puts its modifiers under the Enchantments tag.

It's not immediately clear to me, then, if this should be fixed on Eidolon's or Tetra's side. I think the best solution would be for Tetra to simply use another tag, if the "enchantments" it uses aren't actually acquired by enchanting. But I can see from the code that that would be a fairly invasive change. I'll try and figure out a check I can do on my end. Merely checking isEnchantable isn't sufficient, since the Soul Enchanter is meant to enchant already-enchanted items. Worst-case scenario I could just manually check for Tetra items, but that's not very robust.

from eidolon.

NielsPilgaard avatar NielsPilgaard commented on August 17, 2024

Tetra most likely puts its modifiers under the Enchantments tag: They are enchantments, but they are applied by placing books within the tool, through the Tetra Workbench.

We had a similar issue with the Industrial Foregoing Enchantment Extractor, the dev's solution was to blacklist items based on a tag, in this case called industrialforegoing:enchantment_extractor_blacklist. Perhaps you could add and check a similar tag?

from eidolon.

NielsPilgaard avatar NielsPilgaard commented on August 17, 2024

@mickelus There is a Tetra enchant compatibility issue, please read above :)

from eidolon.

mickelus avatar mickelus commented on August 17, 2024

I've got separate fields in the nbt tag for my modules & modifiers, when those change I populate the Enchantments tag based on the modifiers that are "enchantments". If the Enchantments tag is modified by something else it will be overwritten the next time the modules or modifiers changes for the item.

from eidolon.

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.