Jester time

This commit is contained in:
2026-11-21 23:07:42 -03:00
parent 0c711b8163
commit f308ab52f1
14 changed files with 3317 additions and 395 deletions
+3 -1
View File
@@ -287,7 +287,9 @@ export class MeleeAttackGoal extends Goal {
override tick() {
const mob = this.mob;
const target = mob.target!;
// a script's goal ticking before this one can have let it go, it stops next tick
const target = mob.target;
if (!target) return;
mob.look_control.look_at_entity(target);
this.#recalculate -= 1;
const block = `${Math.floor(target.x)},${Math.floor(target.y)},${Math.floor(target.z)}`;