neroally.blogg.se

Minetest tools
Minetest tools






minetest tools

A capability includes a list of supported dig types, and associated properties for each type such as dig times and the amount of wear. This could imply some blood effects when hitting.Įvery tool has a tool capability. Living things like animals and the player. leaves, smallplants, wire, sheets of metalĬan be cut using a sharp force e.g. A node with no dig types cannot be dug by any tools. It’s possible to combine multiple dig types to allow the more efficient use of multiple types of tools. A dig type group with a higher associated value means the node is easier and quicker to cut.

minetest tools

register_node ( "mymod:diamond", ) Tools, Capabilities, and Dig Typesĭig types are groups which are used to define how strong a node is when dug with different tools. The definition table contains attributes that affect the behaviour of the item. Item definitions consist of an item name and a definition table. In the future, it’s likely that craftitems and tools will merge into one type of item, as the distinction between them is rather artificial. Every position in the world must be occupied with one and only one node - seemingly blank positions are usually air nodes.Ī craftitem can’t be placed and is only found in inventories or as a dropped item in the world.Ī tool has the ability to wear and typically has non-default digging capabilities. An item is something that could be found in an inventory - even if it isn’t possible through normal gameplay.Ī node is an item that can be placed or be found in the world. Nodes, craftitems, and tools are all Items. Registering new nodes and craftitems, and creating craft recipes, are basic requirements for many mods. En Nodes, Items, and Crafting Introduction








Minetest tools