Skill Problem

Discussion in 'Community Support' started by Fixgamer, May 15, 2020.

  1. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    I have a problem whit a mob, I created a skill but it doesn't work, I don't know where is my error please help
    Mob:
    Code:
    Astro:
      Type: HUSK
      Display: '&f&lA&3&ls&f&lt&3&lr&f&lo'
      Health: 6000
      Damage: 11
      Equipment:
      - DIAMOND_CHESTPLATE CHEST
      - DIAMOND_LEGGINGS LEGS
      - DIAMOND_BOOTS FEET
      - SEA_LANTERN OFFHAND
      Drops:
      BossBar:
        Enabled: True
        Title: <mob.name> - <mob.hp>
        Range: 20
        Color: RED
      Skills:
      - skill{s=AstroSkill} @PIR{r=30} ~onTimer:600
      LevelModifiers:
      - health 5
      - damage 0.5
      Options:
        MovementSpeed: 0.2
        AlwaysShowName: true
        KnockbackResistance: 0.5
    Skill:
    Code:
    AstroEnd:
      Skills:
      - effect:particles{particle:explosion;a=10;hs=0.1;vs=0.1;} @origin
    AstroHit:
      Skills:
      - damage{a=10}
    AstroTick:
      Skills:
      - effect:particles{particle=snow_shovel;a=5;hs=0.1;vs=0.1} @origin
    AstroSkill:
      Skills:
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick:AstoTick;onHit:AstroHit;onEnd:AstroEnd;i:1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - sound{s=entity.ghast.shoot;v=2} @Self
     
    #1
  2. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    Hey,
    At every AstroSkill line, there's : instead of =
    (onTick:AstroTick instead of onTick=AstroTick)
    (onHit:AstroHit instead of onHit=AstroHit)
    (onEnd:AstroEnd instead of onEnd=AstroEnd)

    Next thing: you forgot to add "r" in every onTick=AstroTick part, you wrote AstoTick

    The working code:
    Code:
    AstroEnd:
      Skills:
      - effect:particles{particle=explosion;a=10;hs=0.1;vs=0.1} @origin
    AstroHit:
      Skills:
      - damage{a=10}
    AstroTick:
      Skills:
      - effect:particles{particle=snow_shovel;a=5;hs=0.1;vs=0.1} @origin
    AstroSkill:
      Skills:
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - sound{s=entity.ghast.shoot;v=2} @Self
     
    #2
    Fixgamer likes this.
  3. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    I don't know why it still not working
     
    #3
  4. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    Try to remove @PIR{r=30} from Mob File
    Code:
    Skills:
      - skill{s=AstroSkill} @PIR{r=30} ~onTimer:600
    Code:
    Skills:
      - skill{s=AstroSkill} ~onTimer:600
     
    #4
  5. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    Still doesn't working
     
    #5
  6. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    Try to reduce onTimer to ~onTimer:20
     
    #6
    Fixgamer likes this.
  7. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    still not working
     
    #7
  8. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    Well,
    do it like this then:

    Mobs File:
    Code:
    Skills:
      - skill{s=AstroSkill} ~onAttack
    Skill File:
    Code:
    AstroEnd:
      Skills:
      - effect:particles{particle=explosion;a=10;hs=0.1;vs=0.1} @origin
    AstroHit:
      Skills:
      - damage{a=10}
    AstroTick:
      Skills:
      - effect:particles{particle=snow_shovel;a=5;hs=0.1;vs=0.1} @origin
    AstroSkill:
      Cooldown: 600
      Skills:
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - delay 1
      - projectile{onTick=AstroTick;onHit=AstroHit;onEnd=AstroEnd;i=1;v=25;mr=20;vO=5;g=1} @PIR{r=30}
      - sound{s=entity.ghast.shoot;v=2} @Self
    I've removed Timer from Mobs and added a Cooldown to Skill. It works fine on my server.
    If this won't work, then I don't know.
     
    #8
  9. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    It still not working and I really don't know why, do you know if the problem is that I have all the mobs in the Example file?
     
    #9
  10. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    No, you have to have all the mobs in this file, that's not the problem.
    Are there any errors in your console? Or do other Skills work?
     
    #10
  11. Fixgamer

    Fixgamer New Member

    Joined:
    Apr 28, 2020
    Messages:
    8
    Likes Received:
    0
    Yes the Other skills work but this skill doesn't work, how is the skill effect in your server?
     
    #11
  12. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    It works fine on my server, every time the mob hits me (now without Cooldown written in Skill), particles appear above us.
    Text me on Discord, I'll try to fix it somehow, EASYgamesSK#1017
     
    #12
  13. EASYgamesSK

    EASYgamesSK Member

    Joined:
    Jun 1, 2019
    Messages:
    36
    Likes Received:
    6
    Alright, the problem is solved.
     
    #13
    Fixgamer likes this.

Share This Page