Undergarden mod !

This commit is contained in:
2026-09-30 17:30:14 -03:00
parent cbc9edfd60
commit 0052faa24d
21 changed files with 545 additions and 46 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { TICKS_PER_SECOND } from "$/common/constants.ts";
import type { BlockRegistry } from "$/common/everything_registry.ts";
import type { ItemStack } from "$/common/inventory.ts";
import { type Collisions, move_body } from "$/common/physics.ts";
import type { EntityData, EntityInfo } from "$/common/protocol.ts";
import type { EntityData, EntityEvent, EntityInfo } from "$/common/protocol.ts";
import type { ServerPlayer } from "../player.ts";
// below this, entities have fallen out of the world
@@ -71,7 +71,7 @@ export interface EntityLevel {
// an item on the ground was picked up whole by who, clients see it fly to them. it's gone after
take_item(item: Entity, by: string): void;
// sent to clients tracking the entity, for the renderer: "hurt" flashes it red, "death" starts falling over
entity_event(entity: Entity, event: "hurt" | "death"): void;
entity_event(entity: Entity, event: EntityEvent): void;
// it died, after dropping its things
on_death(entity: Entity, source: DamageSource): void;
}