minetest.register_craft_predict

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.register_craft_predict(func(itemstack, player, old_craft_grid, craft_inv))

Description

The same as minetest.register_on_craft, except that it is called before the player crafts, to make craft prediction, and it should not change anything.



This article is missing examples, feel free to add them.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox