Loot tables
This commit is contained in:
@@ -84,6 +84,8 @@ export interface EntityLevel {
|
||||
entity_event(entity: Entity, event: EntityEvent): void;
|
||||
// it died, after dropping its things
|
||||
on_death(entity: Entity, source: DamageSource): void;
|
||||
// what it drops when it dies, from its type's loot table
|
||||
entity_loot(entity: Entity, source: DamageSource): ItemStack[];
|
||||
}
|
||||
|
||||
// an entity as level.json keeps it, see Entity.save. each kind adds its own fields
|
||||
|
||||
Reference in New Issue
Block a user