Data Packs Magic

Channeling II

    • 1,730 views • 1 today
    • 130 downloads • 0 today
    • 6
    • 5
    • 3
    CodingLegend0100
    Level 62 : High Grandmaster Programmer
    86
    Channeling is a useful enchantment, but sometimes it can be tedious to wait for a thunderstorm. This pack makes it easier by adding a second level of channeling which will also work in rain.
    CompatibilityMinecraft 1.21
    Tags

      Have something to say?

    MiziraGamez
    09/08/2024 8:11 pm
    Level 3 : Apprentice Explorer
    history
    Hi, I'm trying to do something similar with Channeling, but for three levels instead of two (the third one allows it at night), along with 50% chance when in rain and 25% chance when at night.
    I've been trying multiple attempts with item sub predicates and the like, but it seems that your nbt checking method is the only one that works.

    However, now I run into the issue of a Channeling 3 trident losing it's ability to strike lightning when in rain, as the nbt check only specifies a level of 2. I then tried doing an any_of predicate, listing each nbt listing, but that just gave me a failed datapack validation every time.

    Is there a way to make the nbt enchantment check work for level 2 and above? It's the one thing holding back my changes to Channeling.
    2
    MiziraGamez
    09/08/2024 9:53 pm
    Level 3 : Apprentice Explorer
    UPDATE!!!

    I figured it out!!

    Turns out my issue was all about formatting more than anything; after fixing all that, it's working like a charm 🥳
    2
    CodingLegend0100
    09/09/2024 11:47 am
    Level 62 : High Grandmaster Programmer
    That's great! It sounds like a neat idea
    1

    Welcome