From a637107a4e81be88938d68df4deae50e68cf2cd8 Mon Sep 17 00:00:00 2001 From: raymoo Date: Tue, 18 Apr 2017 16:30:27 -0700 Subject: Allow overriding tool capabilities through itemstack metadata This makes it possible to modify the tool capabilities of individual itemstacks by calling a method on itemstack metadata references. --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6109f082b..de4cc5029 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3366,6 +3366,9 @@ Can be obtained via `item:get_meta()`. #### Methods * All methods in MetaDataRef +* `set_tool_capabilities([tool_capabilities])` + * overrides the item's tool capabilities + * a nil value will clear the override data and restore the original behavior ### `StorageRef` Mod metadata: per mod metadata, saved automatically. -- cgit v1.2.3