DamageModifiers
The issue with using MythicMobs Latest Dev: v5.7.2-SNAPSHOT/5184 on a Paper server version 1.21.1 is that Damage Modifiers can only be applied to mobs and do not function properly in the ondamaged mechanic or within custom stats.
skill
Regenfromshanghai: Skills:
- onDamaged{ auraName=damageResist;d=20000; onTick=[ - particles{p=flame;amount=10;hS=0.4} ]; damageMods="MAGIC 0.5, POISON 0.5"} @self
Console
[17:54:36 WARN]: [MythicMobs] ✗ Configuration Error in Mechanic ondamaged [17:54:36 WARN]: [MythicMobs] --| Skill: Regenfromshanghai | File: C:\mcserver\1.21.1\plugins\MythicMobs\skills\DX.yml [17:54:36 WARN]: [MythicMobs] --| Error Message: Invalid syntax for DamageModifier [17:54:36 WARN]: [MythicMobs] --| Mechanic Line: onDamaged{<&csp>auraName=damageResist;d=20000;<&csp>onTick=[<&csp><&da><&csp>particles{p=flame;amount=10;hS=0.4}<&csp>];<&csp>damageMods="MAGIC<&sp>0.5<&cm><&sp>POISON<&sp>0.5"} [17:54:36 WARN]: java.lang.NumberFormatException: For input string: "POISON" [17:54:36 WARN]: at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) [17:54:36 WARN]: at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) [17:54:36 WARN]: at java.base/java.lang.Double.parseDouble(Double.java:792) [17:54:36 WARN]: at java.base/java.lang.Double.valueOf(Double.java:755) [17:54:36 WARN]: at MythicMobs-5.7.2-SNAPSHOT.jar//io.lumine.mythic.core.skills.mechanics.OnDamagedMechanic.modVanillaDamage(OnDamagedMechanic.java:136) [17:54:36 WARN]: at MythicMobs-5.7.2-SNAPSHOT.jar//io.lumine.mythic.core.skills.mechanics.OnDamagedMechanic.calculateDamage(OnDamagedMechanic.java:121) [17:54:36 WARN]: at MythicMobs-5.7.2-SNAPSHOT.jar//io.lumine.mythic.core.skills.mechanics.OnDamagedMechanic$Tracker.lambda$auraStart$11(OnDamagedMechanic.java:340) [17:54:36 WARN]: at MythicMobs-5.7.2-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.Delegates$ConsumerToBiConsumerSecond.accept(Delegates.java:144) [17:54:36 WARN]: at MythicMobs-5.7.2-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.events.functional.single.EventListener.execute(EventListener.java:131) [17:54:36 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) [17:54:36 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) [17:54:36 WARN]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) [17:54:36 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) [17:54:36 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:277) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1209) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1199) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1129) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1092) [17:54:36 WARN]: at org.bukkit.craftbukkit.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1247) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.handleEntityDamage(LivingEntity.java:2327) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1488) [17:54:36 WARN]: at net.minecraft.world.entity.player.Player.hurt(Player.java:1002) [17:54:36 WARN]: at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1205) [17:54:36 WARN]: at net.minecraft.world.effect.HealOrHarmMobEffect.applyInstantenousEffect(HealOrHarmMobEffect.java:39) [17:54:36 WARN]: at net.minecraft.world.item.PotionItem.finishUsingItem(PotionItem.java:79) [17:54:36 WARN]: at net.minecraft.world.item.ItemStack.finishUsingItem(ItemStack.java:607) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.completeUsingItem(LivingEntity.java:4084) [17:54:36 WARN]: at net.minecraft.server.level.ServerPlayer.completeUsingItem(ServerPlayer.java:2015) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.updateUsingItem(LivingEntity.java:3931) [17:54:36 WARN]: at net.minecraft.server.level.ServerPlayer.updateUsingItem(ServerPlayer.java:2655) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.updatingUsingItem(LivingEntity.java:3911) [17:54:36 WARN]: at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3133) [17:54:36 WARN]: at net.minecraft.world.entity.player.Player.tick(Player.java:288) [17:54:36 WARN]: at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:835) [17:54:36 WARN]: at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:346) [17:54:36 WARN]: at net.minecraft.network.Connection.tick(Connection.java:638) [17:54:36 WARN]: at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:242) [17:54:36 WARN]: at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1823) [17:54:36 WARN]: at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:473) [17:54:36 WARN]: at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1598) [17:54:36 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304) [17:54:36 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) [17:54:36 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
The custom stat FIRE_RESISTANCE from the example file does not work when added to items and mobs, and there are no errors in the console.