From 72b9e19cb5c7c04a65cc944ec50e78a2fe26b567 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 14 Nov 2023 03:13:32 -0500 Subject: [PATCH] Expose a hidden api element --- minetest-api.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/minetest-api.d.ts b/minetest-api.d.ts index 29734d73..6fbb3659 100644 --- a/minetest-api.d.ts +++ b/minetest-api.d.ts @@ -319,6 +319,12 @@ export interface minetest { sound_fade(handle: number, step: number, gain: number): void registerTSEntity(clazz: { new(): LuaEntity }): void + + /** + * WARNING! THIS IS NOT MEANT TO BE USED IN PRODUCTION! + * This is only exposed to allow extension! + */ + spawn_item(pos: Vec3, item: ItemStackObject | string): ObjectRef }