A custom Minecraft datapack featuring "magical" crafting systems, interactive wands, and enchanted detection mechanics. (proof of concept)
- Crafting Recipe: Combine two sticks with a Nether Star in a diagonal pattern to create the Magic Wand
- Functionality:
- Campfire Toggle: Right-click lit/unlit campfires to toggle their state
- Soul Campfire Toggle: Same functionality for soul campfires
- Cauldron Cycling: Right-click water cauldrons to cycle through water levels: empty → level 1 → level 2 → level 3 → empty
- Debug Particles: Optional debug visualization of wand raycast (toggle with
/scoreboard players set @s show_debug_particles 1or0, default at0)
- Smoke Markers: Wand creates invisible markers to detect lit campfires below
- Particle Effects: Displays smoke and flame particles above detected lit campfires
- Detection Range: Scans up to 20 blocks below markers for active campfires
- One-time Activation: Triggers once per sneak hold
- Advancement Integration: Uses advancements to detect player sneaking
- Scoreboard Tracking: Tracks sneak state, duration, and prevents double-triggers
- Recipe-based Crafting: Drop specific item combinations on the ground with water cauldrons and campfires underneath
- Current Recipes:
- Redstone Block Recipe: Slimeball (1) + Cobblestone (2) + Redstone (1) with cauldron level 1 (non-smokey) → Redstone Block or Dirt
- Emerald Block Recipe: Slimeball (1) + Stone (3) + Emerald (1) with cauldron level 2 (smokey) → Emerald Block or Dirt
- Requirements: Items must be on ground, player within 5 blocks, correct cauldron level and smoke state
- Feedback: Visual and audio feedback for correct/incorrect recipes
The datapack initializes the following scoreboards:
wand_click- Debounce flag for wand useswand_hold_timer- Timer for wand hold durationsneak_click- Debounce flag for sneak detectionsneak_hold_timer- Timer for sneak hold durationissneaking- Boolean flag for sneaking statesneak_duration- Tracks total sneak durationsneak_tick_counter- Counter for sneak ticksshow_debug_particles- Toggle for debug particle visualizationrecipe_effects- Magic crafting system scoreboard
- Craft the Magic Wand using sticks + nether star (diagonal pattern)
- Hold right-click on campfires to toggle
- Hold right-click on cauldrons to cycle water levels
- Optional: Enable debug particles with
/scoreboard players set @s show_debug_particles 1
- Simply sneak to trigger the system
- Advancement triggers once per sneak session
- Place a water cauldron where you want to craft
- If recipe requires smoke, place active (soul) campfire below
- Drop the required items inside the cauldron
- Stand within 5 blocks - recipe will trigger if all conditions met
- Receive the crafted item or failure particles/sound
- Markers automatically detect lit campfires within 20 blocks below them
- Raycast System: Uses semistep raycasting for accurate block detection
- Debouncing: Click flags prevent multiple triggers per use
- Macro Functions: Magic crafting uses function macros with dynamic parameters
- Storage: Uses
id:dataandid:tempNBT storage for recipe management
- Recipe system could be expanded with more recipes
- Adding weapon system with magic
- Adding player stats
- Pack Format:
48-(Minecraft 1.21.10) - Namespace:
a05