Skip to main content
Discovery icon for Minecraft Computer Mods Discord server

Minecraft Computer Mods

2,588 Online
7,346 Members
# computercraft3 people

ComputerCraft inventory issues

ComputerCraft's `pushItems` sometimes fails in heavily modded packs due to peripheral disconnects, but a wrapper function can fix it.

  • The `pushItems` function in ComputerCraft sometimes fails or only partially completes inventory operations without `sleep` calls, even though it should block until finished.
  • This issue is prevalent in heavily modded Minecraft packs (like 1.20.1) with various peripheral mods (Adv. Periphs, UPW, Tom's Periphs, CC:VS) and older ComputerCraft versions (e.g., CC 1.111), but often doesn't appear in clean or less modded installs.
  • The underlying cause is often peripheral detachment/disconnects, which can be diagnosed by checking for `nil` returns from inventory calls.
  • A known fix involves wrapping all inventory operations in a 'stubbornly' function that retries the operation if it fails due to a peripheral disconnect.
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App