🧩 Function Calls¢

FiltersΒΆ

See all here Filters function calls

Item transportationΒΆ

#itemio:calls/input

A function that insert an item in a container.


Inputs

Input Name

Input Type

Input Source

Input Objective/Path

The selected container

Position

The item to input in the container
A normal item NBT

storage

input

itemio:io

The input side :
"north", "south", "east", "west", "top", "bottom", "wireless" (wireless bypass the side check)

storage

input_side

itemio:io


Outputs

Output Name

Output Type

Output Source

Output Objective/Path

Success of the function :
1 or 0

score

#success_input

itemio.io

The number to remove from the input

score

#count_to_remove

itemio.io

What’s left of the input

storage

output

itemio:io

To apply an input from the source (a player, a container ect) you can use this item modifier :

  [
    {
        "function": "minecraft:set_count",
        "count": {
            "type": "minecraft:score",
            "target": {
                "type": "minecraft:fixed",
                "name": "#count_to_remove"
            },
            "score": "itemio.io",
            "scale": -1
        },
        "add": true
    }
]
#itemio:calls/output

A function that extract an item from a container.


Inputs

Input Name

Input Type

Input Source

Input Objective/Path

The selected container

Position

The maximum amount of extracted item.
range 1…64

score

#max_output_count

itemio.io

The output side :
"north", "south", "east", "west", "top", "bottom", "wireless" (wireless bypass the side check)

storage

output_side

itemio:io

Optional, it will do a full NBT check
A normal item NBT

storage

input

itemio:io

Optional, it will do a filters check

storage

filters

itemio:io


Outputs

Output Name

Output Type

Output Source

Output Objective/Path

Success of the function :
1 or 0

score

#success_output

itemio.io

The item that as been extract

storage

output

itemio:io

#itemio:calls/transfer

A function that transfer items from a container to multiple ones


Inputs

Input Name

Input Type

Input Source

Input Objective/Path

All inputs from #itemio:calls/output

Positions of others containers itemio.transfer.destination

Marker entities

All markers have :

  • data.itemio.input_side : "north", "south", "east", "west", "top", "bottom", "wireless" (wireless bypass the side check)

  • data.itemio.ioconfig.filters : filters

  • data.itemio.ioconfig.inputs : A list of multiple items (NBTMatch ORed)

Outputs

Output Name

Output Type

Output Source

Output Objective/Path

Success of the function :
1 or 0

score

#success_transfer

itemio.io

Ignored items

All items matching <item>.components."minecraft:custom_data".itemio.gui: 1b, will be ignored by ItemIO.