Cobalt Core

⭐ — (1 endorsements) 📥 59 downloads 📌 v1.1.1 📅 5/8/2025
🟠 Updated over a year ago

By TheCodingFlygon · datapack

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 5/17/2025 📅 Created: 5/8/2025

🔍 Analysis

  • 🏆 #113 of 1745 datapack mods in this game by downloads

📋 About This Mod

# Run commands from custom item data! Cobalt core is a datapack that allows for items to run commands from custom data! **To Use**: Enter the command you want to run into the proper custom data path: ```json { "components": { "custom_data": { "cobalt": { "onUse": { "command": "say Hello World!" } } } } } ``` # Below are all current uses for Cobalt Core, along with example commands: `onUse`: runs on item use when in mainhand (item must have `consumable` component with `consume_seconds:2147483647,animation:"block"`) ```mcfunction /give @s stick ``` `onShiftUse`: runs on item use when in mainhand while sneaking (same requirements as `onUse`) ```mcfunction /give @s nether_star ``` `onAttack`: runs upon successfully attacking a mob when in mainhand ```mcfunction /give @s iron_sword poison"}}}] ``` `onBlock`: runs upon successfully blocking damage when held (item must have `blocks_attack` component (1.21.5+) or be a shield) ```mcfunction /give @s shield ``` `onDamage`: runs upon taking damage from a mob when held or worn ```mcfunction /give @s diamond_chestplate ``` `projectile.onHitMob`: runs when a thrown or shot projectile from this item hits a mob ```mcfunction /give @s crossbow ``` `projectile.onHitBlock`: runs when a thrown or shot projectile from this item hits a block ```mcfunction /give @s bow ``` `onHold`: runs every tick when held or worn ```mcfunction /give @s lantern glowing 1 0 true"}}}] ``` `projectile.onSpawn`: runs for a single tick when the projectile is spawned ```mcfunction /give @s trident ``` `projectile.onTravel`: runs for every tick the projectile is travelling ```mcfunction /give @s bow ```

# Run commands from custom item data! Cobalt core is a datapack that allows for items to run commands from custom data!

To Use: Enter the command you want to run into the proper custom data path: ```json { "components": { "custom_data": { "cobalt": { "onUse": { "command": "say Hello World!" } } } } } ``` # Below are all current uses for Cobalt Core, along with example commands:

`onUse`: runs on item use when in mainhand (item must have `consumable` component with `consume_seconds:2147483647,animation:"block"`) ```mcfunction /give @s stick ``` `onShiftUse`: runs on item use when in mainhand while sneaking (same requirements as `onUse`) ```mcfunction /give @s nether_star ``` `onAttack`: runs upon successfully attacking a mob when in mainhand ```mcfunction /give @s iron_sword poison"}}}] ``` `onBlock`: runs upon successfully blocking damage when held (item must have `blocks_attack` component (1. 21. 5+) or be a shield) ```mcfunction /give @s shield ``` `onDamage`: runs upon taking damage from a mob when held or worn ```mcfunction /give @s diamond_chestplate ``` `projectile.onHitMob`: runs when a thrown or shot projectile from this item hits a mob ```mcfunction /give @s crossbow ``` `projectile.onHitBlock`: runs when a thrown or shot projectile from this item hits a block ```mcfunction /give @s bow ``` `onHold`: runs every tick when held or worn ```mcfunction /give @s lantern glowing 1 0 true"}}}] ``` `projectile.onSpawn`: runs for a single tick when the projectile is spawned ```mcfunction /give @s trident ``` `projectile.onTravel`: runs for every tick the projectile is travelling ```mcfunction /give @s bow ```

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Data Packs
Author
TheCodingFlygon
Version
1.1.1
Downloads
59
Endorsements
1
Category
datapack
Created
5/8/2025
Updated
5/17/2025
Game Versions
1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6
Tags
equipment, library, utility

🔧 How to Install Minecraft Data Packs Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Data Packs →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Data Packs versions does Cobalt Core support?

The author lists 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7. Other versions may work but are untested by the author.

What is the latest version of Cobalt Core?

Version 1.1.1, published 2025-05-17 with 59 downloads recorded at the source.

Keep browsing — more Minecraft Data Packs mods await

📋 All Minecraft Data Packs Mods 🏆 Top 25 📂 More datapack 👤 More by TheCodingFlygon 🔎 Similar Mods 🌐 Best datapack (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods