World Cards API
World Cards act on a configurable 3D box in front of an Interface (even an Interface facing air).
Cards & craftable abilities
Section titled “Cards & craftable abilities”| Card | Point Suffix | Always Available | Requires Crafted Ability |
|---|---|---|---|
| World Sensor | /world |
block(), matches(), count(), find() |
Break (+ Pickaxe): dig() · Use (+ Lever): use() |
| World Item Card | /item |
move(W, dst) picks up item entities |
Place (+ Dispenser): move(src, W, ...) places blocks or drops items |
| World Fluid Card | /fluid |
move(F, dst) picks up 1,000 mB source blocks |
Place (+ Dispenser): move(src, F, 1000, ...) places source blocks |
Calling dig() or use() without the required ability faults the scan. Calling move(src, W, ...) into a World Item or Fluid Card without the Place ability plans 0.
Box dimensions & coordinates
Section titled “Box dimensions & coordinates”Box dimensions are configured on the card’s tab in the Interface screen (a script cannot change them):
- Default box:
1 × 1 × 1— only(0, 0, 0). - Maximum edge per Interface tier: 3 (Tier 1), 9 (Tier 2), 27 (Tier 3).
x— left-to-right offset looking out from the Interface (0towidth - 1).y— bottom-to-top offset (0toheight - 1); points north when the Interface faces straight up or down.z— distance forward from the Interface (0todepth - 1).- Touched cell:
((width - 1) // 2, (height - 1) // 2, 0)(for example,(1, 1, 0)in a 3×3×3 box). - Box order:
xvaries fastest, theny, thenz. - Passing any coordinate outside
0..width-1,0..height-1,0..depth-1faults the scan.
World Sensor methods (point("name/world"))
Section titled “World Sensor methods (point("name/world"))”Readings
Section titled “Readings”| Method | Signature | Description |
|---|---|---|
S.block |
S.block(x, y, z) -> string |
Returns the block ID string at (x, y, z) (e.g. "minecraft:air"). |
S.matches |
S.matches(x, y, z, selector) -> bool |
Returns True if the block matches a block ID or #tag. |
S.count |
S.count(selector) -> int |
Counts blocks in the box matching a block ID or #tag. |
S.find |
S.find(selector, limit) -> list[tuple[int, int, int]] |
Returns up to limit matching (x, y, z) tuples in box order. limit = 0 returns []; negative limit faults. |
- Readings inspect block IDs and tags only, not block states (such as crop growth age or stair facing).
count()andfind()charge I/O per chunk section and per 64 positions inspected;find()also charges 1 step per returned tuple and faults (rather than returning a partial list) if steps run out.
Actions (run at commit, after move() commits)
Section titled “Actions (run at commit, after move() commits)”S.dig(x, y, z) -> None
Section titled “S.dig(x, y, z) -> None”- Requires the Break ability.
- Breaks the block at
(x, y, z)using a tool of the Interface’s tier (1 / 2 / 3) with the sensor’s Silk Touch, Fortune, and Efficiency enchantments. - Drops enter an Item Card’s input buffer on the same Interface first (respecting its filter and room); any remaining drops stay in the world at the broken block.
S.use(x, y, z, src=None, key=None) -> None
Section titled “S.use(x, y, z, src=None, key=None) -> None”- Requires the Use ability.
- Right-clicks
(x, y, z). - Empty-hand click (omit
srcandkey): offers resulting items to the item handler on the sensor’s own Interface face. - Item click (
src= itemPoint,key= item ID or#tag): takes one matching item fromsrc, right-clicks with it, and returns the remaining/worn item, replacements, and byproducts tosrc’s block, thensrc’s filtered input buffer, spawning leftovers at the clicked cell. - Faces: A bare sensor clicks the face toward the Interface; a side view (
S.up.use(...)) clicks that world face (requires Tier 2/3 Interface and PLC).
World Item & Fluid Card move() options
Section titled “World Item & Fluid Card move() options”Options are keyword-only arguments on move(src, dst, n=None, *, key=None, **options) determined by the destination card:
| Card | Option | Values | Behavior |
|---|---|---|---|
| World Item Card | at |
(x, y, z) tuple |
Target cell inside the box. Omit to use the first suitable cell in box order. |
| World Item Card | mode |
"place" (default) or "drop" |
"place" places blocks into air only. "drop" spawns item entities (max 1 stack per entity, zero velocity, at cell center) into cells with an empty collision shape, up to world.maxItemEntitiesPerBox (default 64). |
| World Fluid Card | at |
(x, y, z) tuple |
Places whole 1,000 mB fluid sources into air, flowing fluid, or an empty compatible liquid container—never into an existing source block. |
- Picking up from a World Item or Fluid Card (
move(W, dst, ...)) drains the card’s input buffer first, then searches the box bykey. - Use an explicit touched-side view (e.g.
W.up.count(key)) to count loose items/fluids in the box without counting the card’s input buffer.
FE costs
Section titled “FE costs”When power.enabled = true, successful world actions add to the scan’s FE bill (multiplied by power.multiplier):
| Action | Default Base Cost | Notes |
|---|---|---|
Break (dig) |
8 × (1 + hardness) FE |
Reduced by 15% per Efficiency level (minimum 0). |
Use (use) |
10 FE |
Charged only if the click succeeded; cancelled clicks add 0 action FE. |
| Place (block or fluid) | 10 FE |
Per block or 1,000 mB source placed. |
Drop (mode="drop") |
2 FE |
Per item stack spawned. |
Maximum world-action FE allowed in a single commit equals the PLC tier’s configured power.tierN.capacity.
Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.