Skip to content

Instantly share code, notes, and snippets.

@Andrey2470T Andrey2470T/med_node.lua Secret
Created Aug 29, 2018

Embed
What would you like to do?
allow_metadata_inventory_put = function (pos, listname, index, stack, player)
if string.match(stack:get_name(), "syringe") and string.match(stack:get_name(), "medicine:") then
minetest.debug(stack)
minetest.chat_send_player("The item has been put!")
return -1, stack:get_count()
else
return stack:get_count()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.