Add natural mob spawning for rotwalker
This commit is contained in:
@@ -35,6 +35,9 @@ export interface SavedMob extends SavedLivingEntity {
|
||||
drop_chances?: Partial<Record<EquipmentSlot, number>>;
|
||||
}
|
||||
|
||||
// what natural spawning counts a mob as, like minecraft's MobCategory
|
||||
export type MobCategory = "monster" | "creature";
|
||||
|
||||
export abstract class Mob extends LivingEntity {
|
||||
// doesn't think or move at all, not even falling
|
||||
no_ai = false;
|
||||
@@ -75,6 +78,10 @@ export abstract class Mob extends LivingEntity {
|
||||
];
|
||||
}
|
||||
|
||||
get category(): MobCategory {
|
||||
return "creature";
|
||||
}
|
||||
|
||||
#registered_goals = false;
|
||||
|
||||
// adds the kind's goals, see goals.ts. runs before its first thought, once the kind's fields are set
|
||||
|
||||
Reference in New Issue
Block a user