Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #172

Closed
Open
Created Nov 13, 2020 by mastacraftpl@mastacraftpl

onHit doesn't work

Hello, I would like to let you know that the onHit option doesn't work, I used this example:

IceShield:
  Cooldown: 0
  Skills:
  - orbital{onTick=IceShield-Tick;onHit=IceShield-Hit;points=20;interval=1;duration=200;charges=1} @self
IceShield-Tick:
  Cooldown: 0
  Skills:
  - effect:particles{p=snowballpoof;amount=20;speed=0;hS=0.2;vS=0.2} @origin
IceShield-Hit:
  Cooldown: 0
  Skills:
  - damage{a=10}
  - potion{type=SLOW;duration=100;lvl=2}

after touching the mob it should take 10 hp but nothing happens with the projectile mechanics, I also tried the same result

Tested on version server 1.16.4 mythicmobs 4.10.1

and server 1.15 mythicmobs 1.15

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking