Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MOB CONFIGURATION#
- UndeadKnight:
- Type: ZOMBIE
- Display: Рыцарь-нежить
- Health: 150
- Armor: 16
- Damage: 8
- Faction: UndeadKnight
- Modules:
- ThreatTable: true
- Options:
- Collidable: true
- Despawn: false
- DigOutOfGround: true
- FollowRange: 48
- KnockbackResistance: 0.8
- MovementSpeed: 0.12
- PreventJockeyMounts: true
- PreventLeashing: true
- PreventOtherDrops: true
- PreventRandomEquipment: true
- PreventSunburn: true
- PreventTransformation: true
- ReinforcementsChance: 0
- Silent: true
- UseThreatTable: true
- BossBar:
- Enabled: true
- CreateFog: false
- DarkenSky: false
- Range: 32
- Style: SOLID
- Color: PURPLE
- Title: "Рыцарь-нежить"
- AIGoalSelectors:
- - clear
- - meleeAttack{}
- # - meleeAttack{followUnseen=true}
- - randomLookAround
- - randomStroll
- AITargetSelectors:
- - clear
- - player
- - irongolem
- - villager
- - attacker
- Skills:
- - skill{skill=undead_knight_spawn} @self ~onSpawn
- - lockhead{lockpitch=true;lockyaw=true} @self ~onDeath
- #sound management
- - sound{sound=entity.zombie.ambient;pitch=0.5to0.8;radius=16;audience=world;soundcategory=HOSTILE} @self ~onTimer:100 0.7
- - skill{skill=
- [ - sound{sound=entity.zombie.hurt;pitch=0.5to0.8;radius=16;audience=world;soundcategory=HOSTILE}],
- [ - sound{sound=entity.zombie_horse.hurt;pitch=0.8to1.2;radius=16;audience=world;soundcategory=HOSTILE}],
- [ - sound{sound=item.armor.equip_netherite;pitch=0.5to0.8;radius=16;audience=world;soundcategory=HOSTILE}]} @self ~onDamaged
- - skill{skill=
- [ - sound{sound=entity.zombie_horse.death;pitch=0.8to1.2;radius=16;audience=world;soundcategory=HOSTILE}],
- [ - sound{sound=entity.zombie.death;pitch=0.9to1.5;radius=16;audience=world;soundcategory=HOSTILE;repeat=1to3}]} @self ~onDeath
- #combat management
- - cancelEvent{forcesync=true} ~onAttack
- - skill{skill=undead_knight_charge} @target ~onTimer:30
- - skill{skill=
- [ - defaultstate{type=idle;state=idle_combat;lerpin=5;lerpout=5}],
- [ - defaultstate{type=walk;state=walk_combat;speed=2;lerpin=5;lerpout=5}],
- [ - setspeed{speed=1.75}]} @self ~onEntercombat
- - skill{skill=
- [ - defaultstate{type=idle;state=idle;lerpin=5;lerpout=5}],
- [ - defaultstate{type=walk;state=walk;speed=1;lerpin=5;lerpout=5}],
- [ - setspeed{speed=1}],
- [ - potion{type=SLOWNESS;level=10;duration=10;force=true;hasparticles=false} ?offGCD]} @self ~onDropcombat
- #END OF MOB CONFIGURATION
- #SKILLS#
- undead_knight_charge:
- Cooldown: 0
- Conditions:
- - offGCD
- - incombat
- - onGround
- Skills:
- - gcd{ticks=1000}
- - message{message=Charge attack} @World
- - formline{aura=reposition;onstartskill=
- [ - message{message=Reposition} @World];path=@randomLocationsNearTarget{amount=1;radius=12;minradius=10;onsurface=true};speed=1;ongoalskill=undead_knight_charge_start;onendskill=undead_knight_charge_cancel;ticks=100} @self ?!hasAura{aura=reposition}
- - defaultstate{type=walk;state=run;speed=1.5} @self
- - setspeed{speed=3} @self
- undead_knight_charge_start:
- Skills:
- - addtag{tag=start_charge} @self
- - message{message=Charging} @World
- - setspeed{speed=0} @self
- - potion{type=SLOWNESS;duration=50;level=10;hasparticles=false} @self
- - state{state=attack_charge_warmup} @self
- - look{headonly=false;immediately=true} @target
- - delay 50
- - gcd{ticks=100}
- - setspeed{speed=3} @self
- - defaultstate{type=walk;state=charge;speed=2} @self
- - tracklocation @targetLocation
- - formline{aura=charge;path=@trackedLocation;speed=1.5;ongoalskill=undead_knight_charge_end;ontickskill=
- [ - particles{particle=campfire_cosy_smoke;amount=3} @self];ticks=100} @self
- undead_knight_charge_end:
- Skills:
- - removetag{tag=start_charge} @self
- - setSkillCooldown{skill=undead_knight_charge;cooldown=15} @self
- - message{message=Charge finished} @World
- - gcd{ticks=10}
- - setspeed{speed=1.75} @self
- - defaultstate{type=walk;state=walk_combat;speed=2} @self
- undead_knight_charge_damage:
- Skills:
- - totem{maxduration=2;charges=999;stopatentity=false;onhitskill=
- [ - baseDamage{multiplier=1.5;ignoreshield=false} @targeted{ignore=faction}];horizontalradius=1.5;verticalradius=1.25;drawhitbox=true;hitnonplayers=true;hitself=false} @modelpart{model=undead_knight;part=attack_point}
- undead_knight_charge_cancel:
- Conditions:
- - hasTag{tag=start_charge} false
- Skills:
- - message{message=Charge cancel} @World
- - gcd{ticks=0}
- - setSkillCooldown{skill=undead_knight_charge;cooldown=5} @self
Advertisement
Add Comment
Please, Sign In to add comment