Skip to content

meBridge function exportItemToPeripheral() ignoring count #423

@AshuraKurai

Description

@AshuraKurai

Describe

Please note: I am using version 0.7.24b, the bug report page shows 0.7.23b as the latest.

While testing ME Bridge functions to build a script for automation between MineColonies and AE2, I could not get exportItemToPeripheral to honour the count value provided, as such it would always export a full stack.

Mods Installed:
Advanced Peripherals - AdvancedPeripherals-0.7.24b.jar
Applied Energistics 2 - appliedenergistics2-forge-12.9.2.jar
BlockUI - blockui-1.19-0.0.64-ALPHA.jar
CC: Tweaked - cc-tweaked-1.19.2-1.101.2.jar
Domum Ornamentum - domum_ornamentum-1.19-1.0.76-ALPHA-universal.jar
Just Enough Items (JEI) - jei-1.19.2-forge-11.6.0.1013.jar
MineColonies - minecolonies-1.19.2-1.0.1283-ALPHA.jar
MineColonies for ComputerCraft - Colony4ComputerCraft-1.19.2-2.3.2.jar
Multi-Piston - multipiston-1.19.2-1.2.21-ALPHA.jar
Structurize - structurize-1.19.2-1.0.483-ALPHA.jar

Steps to reproduce

  1. Setup ME system with some dirt in a drive, attach ME bridge to ME system. Refer to provided image of example setup.
  2. Setup CC with a modem block connected to ME bridge and a chest. Refer to provided image of example setup.
  3. Run the following commands in Lua:
    me = peripheral.wrap("meBridge_0")
    me.exportItemToPeripheral({name="minecraft:dirt",count=5}, "minecraft:chest_0")
  4. Observe the output (also attached):
    64
    nil
  5. Check the chest, it should now have 64 dirt instead of the expected 5

I also tested importItemFromPeripheral(), and it worked as expected. Following the above steps moved 5 dirt from the chest to the ME system, so the issue appears to be with exportItemToPeripheral() only.

Example Setup
2023-03-13_14 41 08

Command Output
2023-03-13_14 46 55

Multiplayer?

Yes

Version

1.19.2-0.7.23b (Latest 1.19)

Minecraft, Forge and maybe other related mods versions

Forge - 43.2.6 Advanced Peripherals - AdvancedPeripherals-0.7.24b.jar Applied Energistics 2 - appliedenergistics2-forge-12.9.2.jar BlockUI - blockui-1.19-0.0.64-ALPHA.jar CC: Tweaked - cc-tweaked-1.19.2-1.101.2.jar Domum Ornamentum - domum_ornamentum-1.19-1.0.76-ALPHA-universal.jar Just Enough Items (JEI) - jei-1.19.2-forge-11.6.0.1013.jar MineColonies - minecolonies-1.19.2-1.0.1283-ALPHA.jar MineColonies for ComputerCraft - Colony4ComputerCraft-1.19.2-2.3.2.jar Multi-Piston - multipiston-1.19.2-1.2.21-ALPHA.jar Structurize - structurize-1.19.2-1.0.483-ALPHA.jar

Screenshots or Videos

No response

Crashlog/log

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions