#Entities not casting spells

9 messages · Page 1 of 1 (latest)

tepid wedge
#

Kinda new to kubejs but Im using the ISS addon as well as Entityjs but even after following the example from the wiki idk what im doing wrong.

dusk sundialBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

tepid wedge
#

i changed it a bit and now mobs strafe side to side like theyre GOING to cast a spell but they still dont

tepid wedge
#

wait okay ive gotten them to cast stuff but is there any way for the casting to not COMPLETELY replace the mob's ai?

livid pier
#

you have a couple options,

  1. increase the first parameter to something higher than a 1, this will decrease the priority of the goal so that other goals will be prioritized instead
  2. with custom goals you can set criteria for if they should be casting or not which can seen in this ticket
tepid wedge
#

Thank you, one last question, is there a way to specify what level of spell is cast?

livid pier
#

if youre going through the custom goal route then i believe the second arguement in the mob.initiateCastSpell method is the spell's level

tepid wedge
#

ah i see

#

thank you!