Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created April 17, 2014 15:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save PilzAdam/10991874 to your computer and use it in GitHub Desktop.
minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields["skins_set"] then
local event = minetest.exploce_textlist_event(fields["skins_set"])
if event.type == "CHG" then
local index = event.index
-- Apply skin here
end
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment