Quantcast
Channel: MythicCraft
Viewing all articles
Browse latest Browse all 11417

[Tutorial] Hostile Passive Mobs

$
0
0
Alright. Let's just spill the code and see if you can understand it.

Mob.yml:
Code:
BadPiggy:
  Mobtype: pig
  AITargetSelectors:
  - 0 clear
  - 1 players
  AIGoalSelectors:
  - 0 clear
  - 1 randomstroll
  - 2 meleeattack
  Skills:
  - skill{s=SketchyAttack} @target ~onTimer:20
Skills.yml:
Code:
SketchyAttack:
  Conditions:
  - targetwithin 2
  Skills:
  - damage{a=4}
Got that? No? Oh fine i'll explain.

First clear the original vanilla pig's AISelectors. Both goal and...

[Tutorial] Hostile Passive Mobs

Viewing all articles
Browse latest Browse all 11417

Trending Articles