"Attempted Double word on entity" (Stun Mechanic / Auras issue)
This is a whole post about an issue reported inapropiately earlier:
VERSION 1.17.1 MYTHICMOBS LATEST DEV BUILDS (Tested since one of past week's dev versions till current ones)
Let me provide some more information: The creature here is an asset I created and released recently. They are called "The Fallen Heroes". This one is called "Fallen Herald". Tested in 1.16.5 it produces no spam at all.
The cause of the bug is apparently the **stun mechanic ** and It mentions **Aura tracker **used for different purposes for ModelEngine/MM mobs, for example, avoiding the mob turning when firing a certain skill.
In this case, the "Double Word" on the entity happens when there's an Aura that stuns the mob every 20 ticks, because they are "Statues", until player comes nearby and "Activates" them. Only then the spam will stop, until any other stun mech is cast.
>.... [16:59:25 ERROR]: Attempted Double World add on EntitySkeleton['Fallen Herald'/357, uuid='6fae256e-192a-409c-a15e-93883c61997d', l='ServerLevel[Warzone]', x=27.72, y=52.00, z=91.50, cpos=[1, 5], tl=2183, v=true, rR=null] java.lang.Throwable: null at net.minecraft.server.level.ServerLevel.addEntity0(ServerLevel.java:1435) ~[?:?] at net.minecraft.server.level.ServerLevel.addFreshEntity(ServerLevel.java:1373) ~[?:?] at io.lumine.xikage.mythicmobs.volatilecode.v1_17_R1.VolatileEntityHandler_v1_17_R1.setLocation(VolatileEntityHandler_v1_17_R1.java:107) ~[?:?] at io.lumine.xikage.mythicmobs.skills.mechanics.StunMechanic$StunMechanicTracker.auraTick(StunMechanic.java:78) ~[?:?] at io.lumine.xikage.mythicmobs.skills.auras.Aura$AuraTracker.run(Aura.java:412) ~[?:?] at io.lumine.xikage.mythicmobs.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93) ~[?:?] at io.lumine.xikage.mythicmobs.utils.Schedulers$LumineTask.run(Schedulers.java:162) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.1.jar:git-Purpur-1284] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.1.jar:git-Purpur-1284] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[patched_1.17.1.jar:git-Purpur-1284] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:492) ~[patched_1.17.1.jar:git-Purpur-1284] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Purpur-1284] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1270) ~[patched_1.17.1.jar:git-Purpur-1284] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Purpur-1284] at java.lang.Thread.run(Thread.java:831) [?:?]
The relevant information could be: (This is for another mob, same principle, same spam)
Aura that triggers ~OnSpawn: - Aura{auraName=staticfwarden;onTick=fwardenstcheck;interval=20;duration=99999} @self ~onSpawn
Skill tree:
`fwardenstcheck: #FWARDEN ________________________________________ ======================================== F A L L E N H E R O E S Conditions:
- playerwithin{d=5} castinstead fwardenstcheck2 Skills:
- RunAIGoalSelector{target=clear} @self
- stun{d=21;f=false;stopai=true} @Self
- state{s=idlestatic;li=3;lo=10;n=false;delay=1} @self
- potion{type=SLOW;duration=21;level=200;p=false;delay=0;force=true} @Self
- velocity{m=set;x=0;y=0;z=0} @self
- effect:particles{particle=reddust;amount=5;hS=0.3;vS=0.3} @Self 0 #DEBUG fwardenstcheck2: Conditions:
- playerwithin{d=6} true Skills:
- effect:particles{particle=reddust;color=#cbfbff;amount=90;hS=0.3;vS=1.3;size=2} @Self
- SwapModel{modelid=fallenwarden2;newmodelid=fallenwarden} @self
- delay 1
- sound{s=emaginationfallenheroes:custom.fallenhero.spawn;p=1;v=1} @selflocation
- sound{s=emaginationfallenwarden:custom.fallenwarden.spawnb;p=1;v=1} @selflocation
- RunAIGoalSelector{target=randomlookaround} @self
- RunAIGoalSelector{target=float} @self
- RunAIGoalSelector{target=movetowardstarget} @self
- RunAIGoalSelector{target=meleeattack} @self
- state{mid=fallenwarden;s=activate;li=3;lo=10;n=false} @self
- state{s=idlestatic;li=3;lo=10;n=false;remove=true} @self
- DefaultState{type=IDLE;state=idle;li=3;lo=2;n=false;frame=0;cooldown=2} @self
- potion{type=SLOW;duration=45;level=200;p=false;delay=0;force=true;repeat} @Self
- velocity{m=set;x=0;y=0;z=0} @self
- auraremove{aura=staticfwarden} @self
- delay 30
- setstance{stance=normal} @self`
This constantly stuns and slows, has different mechanics because it wasn't properly working after testing a lot. Disclaimer: I've discovered the 'Target' argument is now 'goal', and that might be a workaround, but this spam is still something that is tampering with stun mechanic, which appears for different dodgeable "Skilshots".