Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Created February 24, 2017 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenwardy/bf4b27cd14ba2f57de5a2e4432becf1c to your computer and use it in GitHub Desktop.
Save rubenwardy/bf4b27cd14ba2f57de5a2e4432becf1c to your computer and use it in GitHub Desktop.
local stack = ItemStack("default:stone")
stack:set_metadata("hello!")
stack:get_meta():set_string("foo", "bar")
stack:get_meta():set_string("description", "Hello everyone!")
print(stack:to_table())
print(dump(ItemStack(stack:to_table()):to_table()))
error("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment