Vein Miner Preview Data Pack Wiki › Guides › Add a custom block to vein mining
Add a custom block to vein mining
Adding a vanilla block
Use this command to add any standard Minecraft block to the ore vein list:
`
/function uvm:add_ore {b:"block_name"}
`
Replace block_name with the block ID (e.g., copper_ore, deepslate_iron_ore).
Adding a modded block
If the block comes from another mod or namespace, include the mod ID:
`
/function uvm:add_ore {n:"modid", b:"block_name"}
`
Adding to other lists
- For logs:
/function uvm:add_log {b:"block_name"} - For other diggable blocks:
/function uvm:add_dig {b:"block_name"}
Removing blocks
To remove a custom block you've added:
`
/function uvm:remove_ore {b:"block_name"}
`
Verification
After adding a block, test it by crouching and mining a connected cluster. The vein miner should now break all connected blocks of that type.