Wiki 9Minecraft Wiki 9Minecraft

How to Build an Automated Mining Spell with Loops

Filtering Blocks Before Spending Mana

You can chain spell parts together to harvest blocks cleanly and send drops straight to your inventory. Begin by reading your target coordinates with Spell: Get Spell Entity Position, or offset from Spell: Get Caster Position using Spell: Build Vector and Spell: Addition. Before running any breaking action, query the target block with Spell: Get Block At Position inside a condition framed by Spell: If and Spell: If Branch End. Test the block using Spell: Is Air paired with Spell: Not (or Spell: Condition Inverter) so your spell ignores empty space, and check Spell: Is Gravity Block when working around falling blocks like sand or gravel.

Collecting Drops Across Multiple Blocks

Inside your valid conditional branch, trigger Spell: Mine Block for standard harvesting or Spell: Break Block for direct removal, then follow it with Spell: Send To Inventory to collect the items automatically. Because Arcanism Mod calculates block-breaking mana costs in Joules per point of block hardness, skipping air blocks preserves your mana reserves. To excavate a row of blocks in one cast, wrap your coordinate math and mining check between Spell: Loop Start and Spell: Loop End (or Spell: For), using Spell: Set Storage and Spell: Get Storage to track your position and Spell: Loop Break to stop early.