oxymoronicthemoron
📎 1 file 3,305 chars
📄
pasted-code-1779559241585.txt
txt 5 lines
▶
Create a complete Minecraft datapack as a downloadable ZIP file named “Contract_Trials”. It must be a normal datapack compatible with Fabric, Forge, and Vanilla (NOT a plugin or mod). Include pack.mcmeta, all function folders, loot tables, advancements, predicates, and any NBT needed. The datapack adds a contract-based quest system tied to 20 unique custom items. After a player has slept in the same bed for 5 in-game days, a chest automatically generates beneath that bed containing a written book titled “The Contract.” When the player signs the book, it disappears and a special Quest Compass appears in the same chest. This compass permanently points to a procedurally generated shrine in the world. Each shrine contains exactly three themed trials that must be completed in order. After all three trials are completed, a final reward chamber opens containing a chest or shulker with the custom item. Each shrine should be a small, self-contained structure with three connected rooms (Trial 1, Trial 2, Trial 3) and a final reward room with a beacon beam and the item chest.

The 20 items are: The Glowstaff (glow all entities for 10s, 1 XP/s), The Dagger of Light (invisibility + Speed II while held, 50-level ability for spectator 15s then Strength + Resistance 10s), The God Spear (all spear enchants, fires wind charges), The Pitchfork (all trident enchants, Fire Resistance, Riptide works in lava), The Frostbite Scythe (cone of frost slow 8s, 5 XP), The Ember Gauntlet (ignite punches, fire ring for 1 blaze powder), The Stormcaller Bow (lightning on full charge outdoors, 3 XP), The Earthshaker Hammer (shockwave for 5 XP, instant stone break), The Serpent Whip (pull mobs, silence for 2 XP), The Sunforged Shield (reflect projectiles, blind for 3 XP), The Void Lantern (reveal invisible mobs, teleport 10 blocks for 1 ender pearl), The Bloodthorn Blade (lifesteal 10%, sacrifice 5 hearts for Strength III), The Gale Boots (Slow Falling, double jump for 2 XP), The Tidecaller Trident (water vortex for 5 XP), The Ironroot Axe (instant tree chop, summon wooden golems for 10 XP), The Crystal Harp (buff allies with music for 1 XP/s), The Shadowcloak (Night Vision, silent movement, smoke cloud for 3 XP), The Dragonbone Crossbow (explosive bolts using fireworks), The Riftbreaker Pickaxe (3x3 mining, rift that sucks mobs for 10 XP), and The Phoenix Feather Cloak (Fire Resistance, resurrection every 3 hours for 30 XP).

Each shrine must include three trials themed to its item. Examples of trial types include: glow-detection puzzles, stealth mazes, elemental challenges, precision target shooting, aerial parkour, boss fights, sound-based puzzles, mining challenges, underwater trials, shadow arenas, collapsing caverns, sacrifice mechanics, levitation combat, current mazes, forest defense puzzles, musical pattern matching, silence infiltration, and volcanic gauntlets. Each shrine must have three sequential rooms, each running a function that checks for completion before unlocking the next room. After Trial 3 is completed, the datapack should open the final reward chamber containing a beacon beam and a chest/shulker with the custom item. Generate all functions, loot tables, advancements, and NBT required for the datapack to work. Output the entire datapack as a downloadable ZIP.
Kodari AI
KodariMay 23 at 6:01 pm 12,240 (v2)

I need to clarify something important about your request.

You’re asking for a datapack (JSON + mcfunction files only), but I’m a Fabric 1.21.11 mod development expert. My entire toolset, documentation, and expertise is in creating Java-based Fabric mods, not datapacks.

More critically: The features you’ve described are impossible or extremely limited as a pure datapack:

What Datapacks CAN’T Do:

  1. Custom items with unique models - Datapacks can’t add new item textures/models without a separate resource pack

  2. Complex abilities - Many of your mechanics require code:

    • Double jump detection (Gale Boots)

    • Projectile reflection (Sunforged Shield)

    • Lifesteal calculations (Bloodthorn Blade)

    • Teleportation with item consumption (Void Lantern)

    • Resurrection with 3-hour cooldowns (Phoenix Feather)

    • XP-based ability costs with smooth UI feedback

  3. Procedurally generated shrines - Datapacks need pre-built structure files; true “procedural” generation requires mod code

  4. Dynamic compass tracking - You’d need lodestones at fixed locations; can’t dynamically retarget compasses in vanilla

What I CAN Do:

I can create a Fabric 1.21.11 mod that implements ALL of these features properly:

  • 20 fully custom items with unique textures and models

  • All abilities working smoothly with XP costs, cooldowns, particles

  • Procedural shrine generation with themed three-trial systems

  • Bed-tracking quest system with book contracts

  • Dynamic compass pointing to nearest shrine

  • Works on Fabric servers/clients (with proper client-side download support)

Would you like me to create this as a proper Fabric mod instead? It will be vastly more capable, polished, and performant than trying to hack it together with datapack limitations.

If you absolutely need datapack-only (for vanilla servers), I’d need to drastically simplify the feature set and omit most of the custom abilities.

oxymoronicthemoron

if i add this to a server, will the players need to use fabric and have the mod installed for it to work

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code