Created
April 10, 2017 17:39
-
-
Save cheapie/5219f8b625fda75b1fd6c8343e78dc41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minetest.register_chatcommand("identify",{ | |
func = function() | |
local item = minetest.get_wielded_item():to_string() | |
minetest.show_formspec("formtest:test","size[4,2]label[0,0;"..minetest.formspec_escape("You are holding:").."]label[0,0.5;"..minetest.formspec_escape(item).."]button_exit[1,1;2,1;quit;OK]") | |
end, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment