minetest.get_item_group

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.get_item_group("name", "group")

Description

Get rating of a group of an item. (0 = not in group)

Example

if minetest.get_item_group("bags:small", "bag_slots") > 3 then
	print("small bag has more than 3 bag slots")
end
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox