minetest.get_inventory

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Gets an InvRef to access inventory methods.

location is a table:

  • {type="player", name="foobar"}
  • {type="node", pos={x=, y=, z=}}
  • {type="detached", name="creative"}

Example

local inv = minetest.get_inventory({type="player", name="foobar"})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox