Bug: Projectiles do not register player as a target; have no effect

Discussion in 'Bug Reports' started by swegmec, Jul 31, 2020.

  1. swegmec

    swegmec New Member

    Joined:
    Sep 7, 2019
    Messages:
    4
    Likes Received:
    0
    Enter a brief description of what is broken Projectiles do not register player as a target; have no effect

    What version of Minecraft are you using? 1.16

    What server jar are you using? PaperSpigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.9.1

    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!
    I am using the Projectile skill to have a mob shoot a bubble blast at the player. However, when the mob shoots the projectile, it hits the player, but no effects happen.

    I have tried to change @TargetLocation to a number of things like @target, @PIR{r=2}, @NearestPlayer, etc. and nothing has worked.

    This is the output when I use /mm debug 4:
    https://pastebin.com/vcfGDjgb

    The on-hit part of the skill (see config below) never appears in the debug, as if the player doesn't even trigger the on-hit effect. Even when attacking other mobs, this on-hit does not occur. However, if I change onHit: to onEnd, this works perfectly fine, leading me to believe that this is in fact a bug and not a configuration issue.

    No console errors relating to this issue.

    Video:

    Example Configurations
    Projectile Skill:
    BubbleBlast:
    Cooldown: 1
    Skills:
    - projectile{onTick=BubbleBlast-Tick;onHit=BubbleBlast-Hit;v=14;mr=30;i=1;sso=0.7;hr=1;hp=true} @TargetLocation
    BubbleBlast-Tick:
    Skills:
    - effect:particles{p=bubble_column_up;amount=14;speed=0;hS=0.2;vS=0.2} @origin
    BubbleBlast-Hit:
    Skills:
    - damage{amount=30;ignorearmor=true} @target
    - explosion{yield=4}


    Mob Config:
    BubbleBaron:
    Type: DROWNED
    Display: '&2Bubble Baron'
    BossBar:
    Enabled: true
    Title: '&2Bubble Baron &f[&d<mob.hp> &2/ &d<mob.mhp>&f]'
    Range: 40
    Color: GREEN
    Style: SEGMENTED_12
    CreateFog: false
    DarkenSky: false
    PlayMusic: false
    Health: 170
    Damage: 0
    Armor: 3
    LevelModifiers:
    Health: 17
    Damage: 0.25
    Armor: 0.6
    Options:
    MovementSpeed: 0.28
    Skills:
    - skill{s=BubbleBlast} @NearestPlayer{r=2} ~onTimer:7
    Drops:
    - money 110-200 1
    - NETHER_STAR 1 0.2


    the emoji is supposed to be effect: particles with no space.

    (Formatting is correct in my Notepad++, it may have been slightly messed up here).
     
    #1
    Last edited: Jul 31, 2020
  2. Tenitrex

    Tenitrex New Member
    Premium Supporter Supporter

    Joined:
    Jul 26, 2020
    Messages:
    21
    Likes Received:
    0
    As i see there is a bug with skills file reading. For the way around try to configure your skills in the same file as all other options and it should work normally if not. then plugin may be conflicting with the paper server jar i suggest to use spigot, it works fine with it. Also triggers onHit, onTick are outdated, check new supported triggers in the information section on the website. For future i recommend to get premium subscription of mythicmobs plugin that includes support and all the bug fixes.

    Your new code example bellow:

    Code:
    BubbleBaron:
      Type: DROWNED
      Display: '&2Bubble Baron'
      BossBar:
      Enabled: true
      Title: '&2Bubble Baron &f[&d<mob.hp> &2/ &d<mob.mhp>&f]'
      Range: 40
      Color: GREEN
      Style: SEGMENTED_12
      Health: 170
      Damage: 0
      Armor: 3
      AIGoalSelectors:
      - 0 clear
      - 1 randomstroll
      - 2 meleeattack
      AITargetSelectors:
      - 0 clear
      - 1 hurtbytarget
      - 2 players
      LevelModifiers:
        Health: 17
        Damage: 0.25
        Armor: 0.6
      Options:
        MovementSpeed: 0.28
      Skills:
      - effect:particles{p=bubble_column_up;amount=14;speed=0;=0.2;vS=0.2;repeatInterval=1;repeat=200} @target onAttack
      - damage{amount=1;ignorearmor=true} @target onAttack
      - explosion{yield=1} onAttack
      Drops:
      - money 110-200 1
      - NETHER_STAR 1 0.2
     
    #2
  3. swegmec

    swegmec New Member

    Joined:
    Sep 7, 2019
    Messages:
    4
    Likes Received:
    0
    When I put this code in, all that happens is that whenever I attack the mob, it explodes, and there's no projectile that fires.
     
    #3
  4. swegmec

    swegmec New Member

    Joined:
    Sep 7, 2019
    Messages:
    4
    Likes Received:
    0
    I tried Spigot and nothing worked. I'm not sure what you mean by:

    For the way around try to configure your skills in the same file as all other options and it should work normally
     
    #4
  5. Tenitrex

    Tenitrex New Member
    Premium Supporter Supporter

    Joined:
    Jul 26, 2020
    Messages:
    21
    Likes Received:
    0
    I mean ignore skills.yml file and create your skills directly with custom mob, under options like i did in the example. Try to use example code i posted here, it should work for you, if not then, the only way to fix the problem is upgrade mythicmobs version by purchasing it
     
    #5

Share This Page