In Control!

In Control!

74M Downloads

rules like "multiplyhealth" still fires multiple times when used with the "onjoin" condition

RedHerring26 opened this issue ยท 3 comments

commented

The changelog of the latest version (1.12-3.9.17) says that this is fixed, but it seems to still occur when the "onjoin" condition is used with conditions that multiply or add health/speed/damage.

This was most easy to replicate by closing and reloading a singleplayer world with the relevant entities nearby.

This is an example of my script that resulted in this issue:

[
    //Hardmode
    {
        "mob": "minecraft:zombie",
        "gamestage": "hardmode",
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    {
        "mob": "minecraft:zombie_villager",
        "gamestage": "hardmode",
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    {
        "mob": "minecraft:husk",
        "gamestage": "hardmode",
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    //Pre-Hardmode
    {
        "mob": "minecraft:zombie",
        "result": "default"
    },
    {
        "mob": "minecraft:zombie_villager",
        "result": "default"
    },
    {
        "mob": "minecraft:husk",
        "result": "default"
    }
]
commented

But that script is not using onjoin: true at all? So this cannot work

commented

Oh, sorry. I forgot that I took it out when I was testing it. This is what it used to look like.

[
    //Hardmode
    {
        "mob": "minecraft:zombie",
        "gamestage": "hardmode",
        "onjoin": true,
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    {
        "mob": "minecraft:zombie_villager",
        "gamestage": "hardmode",
        "onjoin": true,
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    {
        "mob": "minecraft:husk",
        "gamestage": "hardmode",
        "onjoin": true,
        "healthmultiply": 2.0,
        "damagemultiply": 1.5,
        "result": "default"
    },
    //Pre-Hardmode
    {
        "mob": "minecraft:zombie",
        "onjoin": true,
        "result": "default"
    },
    {
        "mob": "minecraft:zombie_villager",
        "onjoin": true,
        "result": "default"
    },
    {
        "mob": "minecraft:husk",
        "onjoin": true,
        "result": "default"
    }
]
commented

Experiencing the same issue here. Version 3.9.18. Please fix.