minetest.get_inventory - Uberi/MineTest-API GitHub Wiki

minetest.get_inventory

Description

Gets an InvRef to access inventory methods.

Syntax

[InvRef](../type/InvRef.html) get_inventory([inventorylocation](../type/inventorylocation.html) location)

Examples

local inv = minetest.get_inventory({type="player", name="foobar"})
⚠️ **GitHub.com Fallback** ⚠️