minetest.add_item

From Minetest Developer Wiki
Jump to: navigation, search

Contents

Syntax

minetest.add_item(pos, name)

Description

Spawns item in the world at pos. name is ItemStack, itemstring or table. Returns ObjectRef or nil if failed.

Parameters

1: List of 3 vertices (x, y, z)

2: Item name

Example

minetest.add_item({x=0, y=10, z=0}, "default:wood")
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox