tetra icon indicating copy to clipboard operation
tetra copied to clipboard

[Bug] Custom item effect errors on bows

Open dark-clever opened this issue 11 months ago • 1 comments

Observed behaviour

{
    "trigger": 
        {
            "type": "tetra:apply_hit_effects"
        }
    ,
    "effect": "slime_effect",
    "outcome": {
        "type": "tetra:apply_effect",
        "effect": "minecraft:slowness",
        "entity": "attacker",
        "duration": 100,
        "amplifier": 1
    }
}

It is quite clear that this item effect applies a slowness effect to the attacker; it works normally on swords; but on bows, it applies the slowness effect to the target rather than the attacker

Expected behaviour

I expect the slowness effect should be applied to the attacker

Steps to reproduce

Write a data packet to customize item effects in Tetra Then observe the above event I use KubeJs to write data packs

Crashlog

No response

Tetra version

6.8.0

mutil/mGui version

6.1.1

Forge version

1.20.1 - 47.3.22

Other mods

KubeJs

dark-clever avatar Jan 20 '25 12:01 dark-clever

I don't think I have all the info to solve this issue? I have no idea what "slime effect" is or where it comes from. Otherwise it looks like you might have syntax a few syntax errors? Perhaps the comma on ln 6.

Edit: From my friend that is a JS software developer: Ln6 is not syntax error, try structuring trigger so it’s like outcome. Could be the parser getting confused by the weird layout.

ExiledToBronze avatar Feb 13 '25 19:02 ExiledToBronze

Apologies for the delayed release, fixed in 6.9.0!

mickelus avatar Apr 17 '25 17:04 mickelus