turtle_inventory event
Occurs when the inventory of a turtle is changed.
|
|||
Prints "Inventory changed!" every time the turtle's inventory changes. | |||
Code | <nowiki>
while true do
local event = os.pullEvent("turtle_inventory")
print("Inventory changed!")
end
</nowiki>
|
turtle_inventory Event | |
---|---|
Returns
| |
Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.