rules like "multiplyhealth" still fires multiple times when used with the "onjoin" condition
RedHerring26 opened this issue ยท 3 comments
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"
}
]
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"
}
]