Death
This commit is contained in:
@@ -1685,6 +1685,9 @@ export function entity_ref(entity: Entity): EntityRef {
|
||||
remove() {
|
||||
entity.remove();
|
||||
},
|
||||
kill(cause = "script") {
|
||||
entity.kill(String(cause));
|
||||
},
|
||||
get_item: () => entity instanceof ItemEntity ? item_copy(entity.item) : undefined,
|
||||
set_item(item) {
|
||||
if (!(entity instanceof ItemEntity)) throw new Error(`${entity.type} isn't an item lying around`);
|
||||
|
||||
Reference in New Issue
Block a user