Bad Syntax Bug: Rapid spawning of mob instead of only spawning one mob..

Discussion in 'Bug Reports' started by Tinkergolem, Aug 13, 2018.

  1. Tinkergolem

    Tinkergolem Member
    Premium Supporter Supporter

    Joined:
    Dec 6, 2016
    Messages:
    110
    Likes Received:
    14
    Enter a brief description of what is broken Rapid spawning of mob instead of only spawning one mob..

    What version of Minecraft are you using? 1.12

    What server jar are you using? Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.3.2-SNAPSHOT

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    Here is what it looks like: https://imgur.com/YCeGZd5

    This was a previous configuration I worked on a while back when my goal for this mob was for the dummy(Meldummy) to be mounted on a moving invisible mob(Melfeet), while having the real mob(MelTriple) be mounted on top of the dummy. This would give the appearance of a nametag for the mob without looking spaced abnormally. I was able to get a workaround for the problem, but it doesn't work 100%, so I'm posting the bug in order to use the configuration again without the fear of crashing my server. To see the bug, use /mm mobs spawn Meldummy, this results in spawning the armorstand, but it continues to spawn even more slimes until the user can kill all the mobs or delete all mobs associated with the dummy and itself from the config. When testing it, I recommend secluding yourself in a void world with 1-4 blocks for space to spawn the mob, you will also need two command blocks capable of killing all slimes and armorstands in a given radius to solve the rapid duplication if there's enough time to interact with buttons or chat. I also made sure to test this configuration with newly created example files to make sure it wasn't the issue of other skills, items, or mobs. Keep in mind, I tested this issue on spigot 1.12.2. I wish you the best of luck on approaching this situation.

    Example Configurations
    MOBS
    Code:
    # These example files show you some of the basic attributes and
    # skills MythicMobs can use. Far more is possible!
    SkeletalKnight:
      Type: WITHER_SKELETON
      Display: '&2Skeletal Knight'
      Health: 40
      Damage: 8
      Drops:
      - gold_nugget 2 0.5
      DropsPerLevel:
      - gold_nugget 1 0.5
      LevelModifiers:
      - health 5
      - damage 0.5
      Options:
        MovementSpeed: 0.1
    StaticallyChargedSheep:
      Type: SHEEP
      Display: '&bStatically Charged Sheep'
      Health: 100
      Damage: 2
      Options:
        MovementSpeed: 0.3
      DamageModifiers:
      - LIGHTNING 0
      - FIRE 0.5
      Skills:
      - lightning @LivingInRadius{r=10} ~onTimer:100
    AngrySludge:
      Type: SLIME
      Display: Angry Sludge
      Health: 100
      Damage: 2
      Options:
        Size: 20
        MovementSpeed: 0.1
        PreventSlimeSplit: true
        PreventOtherDrops: true
        MaxCombatDistance: 30
        KnockbackResistance: 1
      Skills:
      - skill{s=AngrySludgePoison} 0.2
    SkeletonKing:
      Type: WITHER_SKELETON
      Display: '&6Skeleton King'
      Health: 500
      Damage: 10
      Skills:
      - message{cooldown=20;m="<mob.name><&co> None may challenge the Skeleton King!"}
        @PlayersInRadius{r=40} ~onCombat >0 0.2
      - message{m="<mob.name><&co> Ahahahahah! Die, <trigger.name>!"} @PlayersInRadius{r=40}
        ~onPlayerKill >0 1
      - skill{s=SummonSkeletons} @Self 0.1
      - skill{s=SmashAttack} @Target >0 0.2
      Equipment:
      - KingsCrown:4
      - SkeletonKingSword:0
      Drops:
      - SkeletonKingDrops
      Options:
        AlwaysShowName: true
        MovementSpeed: 0.2
        MaxCombatDistance: 25
        PreventOtherDrops: true
    SkeletalMinion:
      Type: SKELETON
      Display: '&2Skeletal Minion'
      Health: 10
      Damage: 2
      Options:
        MovementSpeed: 0.1
    Meldummy:
      Mobtype: armor_stand
      Display: '&aMelody Bot Lv.&22'
      Health: 5
      AIGoalSelectors:
      - 0 clear
      - 1 lookatplayers
      AITargetSelectors:
      - 0 clear
      - 1 hurtbytarget
      - 2 players
      Damage: 0
      Riding: Melfeet
      Skills:
       - summon{m=MelodyTriple;a=1;r=0} @Self ~onSpawn
       - potion{t=INVISIBILITY;d=2147483647;l=1} @self ~onSpawn
       - signal{s=mount;delay=5} @MobsInRadius{r=50;t=MelodyTriple} ~onSpawn
       - suicide ~onSignal:name
      Options:
        PreventOtherDrops: true
        AlwaysShowName: true
        Silent: true
        Marker: true
        Invisible: true
        Small: true
    MelodyTriple:
      Mobtype: slime
      Display: 'Dinnerbone'
      Health: 7
      AIGoalSelectors:
      - 0 clear
      - 1 lookatplayers
      AITargetSelectors:
      - 0 clear
      - 1 hurtbytarget
      - 2 players
      Disguise:
        Type: zombie
      Skills:
       - potion{t=INVISIBILITY;d=2147483647;l=1} @self ~onSpawn
       - potion{t=SLOW;d=80;l=10} @self ~onSpawn
       - mount{m=Meldummy} ~onSignal:mount
       - equip{i=KingsCrown:4} @self ~onSpawn
       - signal{s=name} @MobsInRadius{r=1;t=Meldummy} ~onDeath
       - signal{s=name2} @MobsInRadius{r=1;t=Melfeet} ~onDeath
      Options:
        PreventOtherDrops: true
        Silent: true
        PreventSlimeSplit: true
        Size: 1
    Melfeet:
      Mobtype: slime
      Display: ''
      Health: 2
      AIGoalSelectors:
      - 0 clear
      AITargetSelectors:
      - 0 clear
      - 1 hurtbytarget
      - 2 players
      Damage: 1
      Skills:
       - potion{t=SLOW;d=100;l=10} @self ~onSpawn
       - potion{t=INVISIBILITY;d=2147483647;l=1} @self ~onSpawn
       - suicide ~onSignal:name2
      Options:
        PreventOtherDrops: true
        Silent: true
        PreventSlimeSplit: true
        Size: 1
        MovementSpeed: 0.75
    ITEMS
    Code:
    # This example file shows you how to set up special items
    # for your mobs to equip or drop.
    SkeletonKingSword:
      Id: 276
      Data: 0
      Display: '&3Greatsword of the Skeleton King'
      Lore:
      - '&6A powerful sword used by'
      - '&6the King of Skeletons.'
      Enchantments:
      - DAMAGE_ALL:5
      - KNOCKBACK:2
      - FIRE_ASPECT:2
      Attributes:
        MainHand:
          Health: 10
          MovementSpeed: 0.1
    KingsCrown:
      Id: 314
      Data: 0
      Amount: 1
      Display: '&dCrown of the King'
      Lore:
      - '&6A kingly crowl that grants'
      - '&6the wearer unwavering power!'
      Enchantments:
      - PROTECTION_ENVIRONMENTAL:2
      - PROTECTION_PROJECTILE:2
      - PROTECTION_FIRE:2
      - PROTECTION_EXPLOSIONS:2
      Hides:
      - ATTRIBUTES
      - ENCHANTS
      Attributes:
        Head:
          Health: 10
          KnockbackResistance: 10
    BanditTunic:
      Id: 299
      Display: '&aBandit Tunic'
      Lore:
      - '&6A leather tunic taken from'
      - '&6the corpse of a bandit.'
      Options:
        Color: 255,40,40
    SKILLS
    Code:
    # These example files show you some VERY basic meta skills.
    # You can copy and expand them however you'd like.
    SmashAttack:
      Cooldown: 8
      Conditions:
      - targetwithin 25
      Skills:
      - message{cooldown=30;m="<mob.name><&co> Hahahah! I will crush you, fool!"} @PlayersInRadius{r=40}
      - teleport @target
      - effect:sound{s=mob.endermen.portal;volume=1.0;pitch=0.5}
      - delay 10
      - damage{amount=5;ignorearmor=true} @PlayersInRadius{r=5}
      - throw{velocity=10;velocityY=5} @PlayersInRadius{r=5}
      - effect:explosion @Self
    SummonSkeletons:
      Cooldown: 15
      Skills:
      - message{m="<mob.name><&co> Arise, my minions!"} @PlayersInRadius{r=40}
      - delay 20
      - summon{mob=SkeletalMinion;amount=2;noise=5} @Self
      - delay 20
      - summon{mob=SkeletalMinion;amount=2;noise=5} @Self
      - delay 20
      - summon{mob=SkeletalMinion;amount=2;noise=5} @Self
    AngrySludgePoison:
      Cooldown: 10
      Skills:
      - potion{type=POISON;lvl=2;duration=100} @PlayersInRadius{r=15}
      - effect:particles{p=happyVillager;amount=1000;hSpread=15;ySpread=1;speed=0;yOFfset=0.5}
        @Self
     
    #1
    Last edited: Aug 13, 2018
  2. microwave0

    microwave0 New Member

    Joined:
    Nov 7, 2019
    Messages:
    6
    Likes Received:
    0
    It comes from the onSpawnTrigger on this line
    summon{m=MelodyTriple;a=1;r=0} @Self ~onSpawn
    Everytime a new one spawns, the skill activates, spawning even more.
     
    #2
  3. Seyarada

    Seyarada Member
    Quality Assurance

    Joined:
    Jun 16, 2019
    Messages:
    81
    Likes Received:
    11
    The problem is this "- mount{m=Meldummy} ~onSignal:mount", the "mount" mechanic causes the mob to spawn a new mount, not to ride already existing ones, that creates a loop.

    Use this instead
    Code:
    - mounttarget @Parent ~onSignal:mount
     
    #3

Share This Page