Undergarden mod !
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user