Tetra

Tetra

25M Downloads

[Bug] Custom item effect errors on bows

dark-clever opened this issue · 2 comments

commented

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

commented

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.

commented

Apologies for the delayed release, fixed in 6.9.0!