heroofthemist_12401

create a datapack that adds a structure based on the monastary of spinjitsu from ninjago

Kodari AI
KodariSep 9 at 11:57 pm 1
SpinjitzuMonastery
Adds a procedurally generated monastery structure inspired by the Monastery of Spinjitzu from Ninjago. The datapack generates a large multi-tiered temple with pagoda-style roofs, training courtyards, meditation gardens, and elemental-themed chambers. Includes custom loot tables with themed items, a guardian boss encounter, and advancement tracking for discovering and conquering the structure. The monastery spawns in mountain biomes with a unique terrain modification system that flattens the surrounding area and creates a dramatic cliffside setting. Features immersive ambient effects including particle displays and sound cues when players approach the central training hall.

Download the ZIP using the export button, then:

  1. Extract spinjitsu_monastery/ into your world’s datapacks/ folder.

  2. Run /reload.

  3. Use /datapack list to verify that it loaded.

  4. Stand where you want the monastery centered and run /function spinjitsu_monastery:build.

  5. The function aligns to the nearest block and builds the structure around you.

heroofthemist_12401

what version of java is this datapack for?

Kodari AI
KodariSep 10 at 12:35 am 1

It is for Minecraft: Java Edition 1.21.4, using data pack format 48.

Minecraft 1.21.4 uses Java 21 to run the game/server, but the datapack itself does not require Java code or compilation.

heroofthemist_12401

the structure is missing chests, and the themed items

Kodari AI
KodariSep 10 at 12:41 am 1

Fixed the monastery build function to add four chests stocked with themed items, including:

  • Training Spinjitzu Blades

  • Elemental Crystals

  • Fire, Ice, Lightning, and Earth Spinjitzu Cores

  • Monastery Scrolls

  • Golden Dragon Coins

  • Master Wu Tokens

  • Spinjitzu Focus items

Download the ZIP using the export button, then:

  1. Extract spinjitsu_monastery/ into your world’s datapacks/ folder.

  2. Run /reload.

  3. Use /datapack list to verify it loaded.

  4. Stand at the desired location and run /function spinjitsu_monastery:build again.

  5. Use /function spinjitsu_monastery:build to test it.

Rebuilding clears and replaces the existing monastery area, so the new chests will appear.

heroofthemist_12401

the items are added, but they dont seem to do anything

Kodari AI
KodariSep 10 at 12:54 am 1
  1. Give the themed items actual gameplay effects through vanilla item detection and functions.

  2. Add the required tick/load registration and supporting scoreboards/functions.

  3. Update chest items so their names and behavior match the implemented abilities.

The themed items now have passive abilities while held. I added:

  • Training Spinjitzu Blade: Speed and Jump Boost

  • Elemental Crystal: Absorption and Night Vision

  • Monastery Scroll: Regeneration and Luck

  • Golden Dragon Coin: Luck and Hero of the Village

  • Fire Spinjitzu Core: Fire Resistance

  • Flame Essence: Fire Resistance and Strength

  • Lightning Shard: Speed, Haste, and electric particles

  • Ice Spinjitzu Core: Resistance and Water Breathing

  • Spinjitzu Focus: Slow Falling and Conduit Power

  • Master Wu Token: Resistance and Hero of the Village

  • Earth Spinjitzu Core: Resistance, Absorption, and earth particles

Because the original chest items did not contain the internal ability markers, rebuild the monastery after updating:

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Verify it with /datapack list.

  5. Run /function spinjitsu_monastery:build to restock the chests.

  6. Hold one of the themed items to activate its ability.

heroofthemist_12401

add the four golden weapons (sword of fire, nunchucks of lightning, shurikens of ice, scythe of quakes) with unique elemental combat abilities

Kodari AI
KodariSep 10 at 1:06 am 1
  1. Add four custom golden weapons with distinct item markers and themed names.

  2. Stock them in the monastery and add vanilla command-based combat abilities.

  3. Register the weapon logic so abilities activate while held or used in combat.

Added the four golden weapons with combat abilities:

  • Sword of Fire — ignites the target and creates flame and lava effects.

  • Nunchucks of Lightning — summons lightning on the struck target.

  • Shurikens of Ice — applies Slowness and Weakness with icy particles.

  • Scythe of Quakes — damages and slows nearby enemies in an area-of-effect quake.

The weapons are stocked in the monastery’s themed chests and activate when you hit an entity.

Download the ZIP using the export button, extract the datapack folder into world/datapacks/, then:

  1. Run /reload.

  2. Verify it with /datapack list.

  3. Run /function spinjitsu_monastery:build to rebuild and restock the monastery.

  4. Test the weapons against mobs.

heroofthemist_12401

all of the weapons work except the Scythe of Quakes

Kodari AI
KodariSep 10 at 1:14 am 1

Fixed the Scythe of Quakes ability. Its area damage now uses minecraft:magic, so it correctly damages nearby enemies while retaining the slowing effect, stone particles, and quake sound.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Test the scythe against nearby mobs. Rebuild with /function spinjitsu_monastery:build only if you need to restock the weapon.

heroofthemist_12401

the scythe still doesnt work, and the other weapons dont deal much damage

Kodari AI
KodariSep 10 at 1:20 am 1

I’ll fix the weapon damage at the command level and replace the scythe’s unreliable hit detection with a direct, testable combat effect. I’ll first inspect the current weapon markers, advancements, and ability functions, then patch only the affected datapack files.

Updated the weapon abilities to deal direct damage:

  • Sword of Fire: 7 damage plus burning.

  • Nunchucks of Lightning: 8 damage plus lightning.

  • Shurikens of Ice: 6 damage plus Slowness and Weakness.

  • Scythe of Quakes: 10 area damage plus Slowness. It now uses the reliable player_attack damage type instead of magic.

Download the ZIP using the export button, extract the datapack folder into world/datapacks/, then:

  1. Run /reload.

  2. Use /datapack list to verify it loaded.

  3. Test the weapons against mobs.

  4. No monastery rebuild is required; existing weapons retain their markers.

heroofthemist_12401

the scythe still doesnt work

Kodari AI
KodariSep 10 at 1:30 am 1

Fixed the Scythe of Quakes damage source to use a reliable bypassing damage type, so its quake damage is no longer suppressed by the target’s normal post-hit invulnerability window.

No monastery rebuild is required:

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Test the scythe against nearby mobs.

heroofthemist_12401

add four new temple structures that the four golden weapons spawn in

Kodari AI
KodariSep 10 at 1:38 am 2

Added four elemental temples around the monastery, each with its weapon in a dedicated chest:

  • Temple of Fire — Sword of Fire

  • Temple of Lightning — Nunchucks of Lightning

  • Temple of Ice — Shurikens of Ice

  • Temple of Earth — Scythe of Quakes

The original monastery chests remain unchanged. To generate the temples:

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to build the monastery and four temples.

  6. Use /function spinjitsu_monastery:build again at a new location if you want another complete set.

heroofthemist_12401

make the temples more visually distinct from eachother

Kodari AI
KodariSep 10 at 1:47 am 1
  1. Give each temple a different silhouette: volcanic pyramid, lightning spires, ice dome, and earth mound.

  2. Add element-specific exterior palettes and landmarks without moving the weapon chests.

  3. Extend temple cleanup height so rebuilding replaces the old roofs cleanly.

Made the four temples visually distinct:

  • Fire Temple: volcanic stepped pyramid with magma roof, blackstone corner pillars, and soul lanterns.

  • Lightning Temple: quartz-and-copper structure with four lightning spires and a central iron antenna.

  • Ice Temple: stepped blue-ice dome with snow layers and ice peaks.

  • Earth Temple: mossy deepslate mound with tuff outcroppings, moss, and a central stone spire.

The weapon chest locations and weapon markers remain unchanged.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to rebuild the monastery and temples.

heroofthemist_12401

the temples are still basically the same, try to make them more unique, with different designs

Kodari AI
KodariSep 10 at 1:53 am 1
  1. Replace each temple with a different architectural concept: volcanic altar, open lightning tower, ice cavern, and outdoor earth ruin.

  2. Preserve each temple’s weapon chest coordinates and weapon markers.

  3. Keep all construction inside the existing temple plots so /function spinjitsu_monastery:build remains safe to rerun.

Rebuilt the four temples with clearly different designs:

  • Fire Temple: volcanic caldera with lava pools, obsidian walls, and a burning altar.

  • Lightning Temple: open-air four-spire storm tower with copper beams, iron core, and lightning rods.

  • Ice Temple: enclosed arched glacier cavern with an icy tunnel and snow-covered interior.

  • Earth Temple: outdoor stone circle with standing stones, moss, dirt paths, and a central monolith.

The weapon chests and item markers remain unchanged.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to rebuild the monastery and temples.

heroofthemist_12401

the ice temple doesnt exist anymore

Kodari AI
KodariSep 10 at 1:58 am 1
  1. Fix the ice temple’s construction commands so one invalid block reference cannot break its design.

  2. Rebuild it as a clearly visible glacier cavern using only valid vanilla blocks.

  3. Preserve the existing weapon chest location and item.

Rebuilt the Ice Temple as a large glacier cavern with blue-ice walls, a snow-and-ice vaulted roof, sea-lantern lighting, ice pillars, and visible exterior spires. Removed the invalid block reference that could prevent part of the temple from generating. The Shurikens of Ice chest remains at the same location.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to rebuild the monastery and temples.

  6. Use /function spinjitsu_monastery:build to test generation at your current location.

heroofthemist_12401

add ninja armor for the four elements

Kodari AI
KodariSep 10 at 2:03 am 2
  1. Add a color-coded leather ninja armor set to each elemental temple’s weapon chest.

  2. Mark each set with custom data so the datapack can recognize it reliably.

  3. Add full-set elemental bonuses: fire resistance/strength, lightning speed/jump boost, ice resistance/slow falling, and earth resistance/haste.

Added four elemental ninja armor sets to the temple chests:

  • Fire Ninja Armor: red dyed leather armor, Fire Resistance and Strength.

  • Storm Ninja Armor: yellow dyed leather armor, Speed II and Jump Boost II.

  • Frost Ninja Armor: cyan dyed leather armor, Resistance and Slow Falling.

  • Terra Ninja Armor: dark-green dyed leather armor, Resistance II and Haste.

The bonuses activate when the complete matching set is worn.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to regenerate the temples and their armor chests.

  6. Equip a complete set to test its elemental bonuses.

heroofthemist_12401

the temples are gone, and the armor isnt there

Kodari AI
KodariSep 10 at 2:08 am 1
  1. Make each temple function reliably execute with valid 1.21.4 item-component syntax.

  2. Restore the four armor sets in their elemental chests.

  3. Keep the existing distinct temple builds and weapon locations unchanged.

Fixed the temple loot commands:

  • Corrected invalid escaped item names.

  • Corrected leather armor dye component syntax.

  • Restored all four elemental ninja armor sets to their temple chests.

  • Preserved the unique temple designs and golden weapons.

Rebuild them with:

Mcfunction
/reload
/function spinjitsu_monastery:build

Then check /datapack list and open the chests at each temple.

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to regenerate the monastery, temples, weapons, and armor.

heroofthemist_12401

make the earth ninja armor black, the lightning ninja armor blue, and add the abilities to the armor

Kodari AI
KodariSep 10 at 2:32 am 1
  1. Recolor the Earth armor black and the Lightning armor blue in their temple chests.

  2. Verify and repair the elemental armor detection so each complete set grants its intended abilities.

Updated the armor colors:

  • Earth Ninja Armor: black

  • Lightning Ninja Armor: blue

The elemental abilities are already wired to activate when a complete matching set is equipped:

  • Fire: Fire Resistance and Strength

  • Lightning: Speed II and Jump Boost II

  • Ice: Resistance and Slow Falling

  • Earth: Resistance II and Haste

To apply the changes:

  1. Download the ZIP using the export button.

  2. Extract the datapack folder into world/datapacks/.

  3. Run /reload.

  4. Use /datapack list to verify it loaded.

  5. Run /function spinjitsu_monastery:build to regenerate the temples and armor chests.

  6. Equip a complete set to activate its abilities.

heroofthemist_12401

Add a new structure: Destiny's Bounty, an Asian inspired ship

Kodari AI
KodariSep 25 at 2:01 am 1
  1. Inspect the existing build entry points and placement conventions.

  2. Add Destiny’s Bounty as an Asian-inspired ship using valid vanilla construction commands, then register it in the build flow.

Added Destiny’s Bounty to the monastery build: a dark-wood ship with a tapered hull, red-banded sails, a pagoda-style stern cabin, and a surrounding harbor. Rebuilding clears its plot first, so it can be safely regenerated.

  1. Download the ZIP using the export button and extract the datapack folder into world/datapacks/.

  2. Run /reload and check /datapack list.

  3. Run /function spinjitsu_monastery:build to build everything, or /function spinjitsu_monastery:ship/destinys_bounty to build just the ship.

heroofthemist_12401

redesign the Destiny's Bounty to look more like this

1 image attached
Kodari AI
KodariSep 25 at 2:22 am 1
  1. Rework the ship to match the reference: long red hull, dragon-like raised prow, tall swept white-and-red sail, and pagoda stern.

  2. Keep the existing harbor plot and build entry point unchanged.

  3. Keep every block within the ship’s current cleared bounds.

Redesigned Destiny’s Bounty to follow the reference: a long crimson hull with a raised dragon-like prow, gold trim, twin upward-curving stern fins, a large swept white sail with red stripes, and a pagoda-style stern cabin. It keeps the same harbor plot and function entry point.

  1. Download the ZIP using the export button and extract the datapack folder into world/datapacks/.

  2. Run /reload, then /datapack list to confirm it loaded.

  3. Run /function spinjitsu_monastery:build to rebuild, or /function spinjitsu_monastery:ship/destinys_bounty to build just the ship.

heroofthemist_12401

make four new items that give you the ability to do Spinjitzu, which summons a tornado of elemental power- lightning, ice, fire, earth- which damages enemy mobs

Kodari AI
KodariSep 26 at 1:22 am 1
  1. Add four uniquely marked Spinjitzu items to the elemental temples.

  2. Detect held items and summon matching damaging elemental tornado effects using vanilla functions.

Added four marked Spinjitzu items to their matching temple chests. Hold one in your main hand to summon its elemental particle tornado; it damages nearby hostile mobs within 6 blocks and has a 5-second cooldown.

  1. Download the ZIP using the export button and extract the datapack folder into world/datapacks/.

  2. Run /reload, then /datapack list to verify it loaded.

  3. Run /function spinjitsu_monastery:build to add the items to the temple chests.

  4. Take an item from a temple chest and hold it in your main hand to activate it.

heroofthemist_12401

give the Spinjitzu ability to the new items while keeping the Golden Weapons previous ability

Kodari AI
KodariSep 26 at 1:50 am 1

The dedicated Spinjitzu items already activate their elemental abilities when held in the main hand. The Golden Weapons’ existing hit-triggered abilities remain separate and unchanged, so both sets of abilities coexist.

  1. Download the ZIP using the export button and extract the datapack folder into world/datapacks/.

  2. Run /reload and check /datapack list.

  3. Run /function spinjitsu_monastery:build to populate the temple chests.

  4. Hold a Spinjitzu item in your main hand to activate its tornado; use a Golden Weapon to trigger its existing attack ability.

Kodari can make mistakes. Review important code before using.
Files
spinjitsu_monastery
Code
44 730
spinjitsu_monastery/data/spinjitsu_monastery/function/build_at_origin.mcfunction
# Clear the construction area
fill ~-18 ~-1 ~-16 ~18 ~18 ~16 minecraft:air

# Foundation and courtyard
fill ~-14 ~0 ~-12 ~14 ~0 ~12 minecraft:stone_bricks
fill ~-13 ~1 ~-11 ~13 ~1 ~11 minecraft:polished_andesite
fill ~-5 ~1 ~-7 ~5 ~1 ~3 minecraft:stone_bricks

# Left monastery wing
fill ~-14 ~1 ~-12 ~-6 ~5 ~12 minecraft:stone_bricks
fill ~-13 ~2 ~-7 ~-7 ~4 ~11 minecraft:air
fill ~-13 ~1 ~-7 ~-7 ~1 ~11 minecraft:spruce_planks
fill ~-6 ~2 ~-2 ~-6 ~3 ~0 minecraft:air
fill ~-6 ~2 ~2 ~-6 ~3 ~3 minecraft:air

# Right monastery wing
fill ~6 ~1 ~-12 ~14 ~5 ~12 minecraft:stone_bricks
fill ~7 ~2 ~-7 ~13 ~4 ~11 minecraft:air
fill ~7 ~1 ~-7 ~13 ~1 ~11 minecraft:spruce_planks
fill ~6 ~2 ~-2 ~6 ~3 ~0 minecraft:air
fill ~6 ~2 ~2 ~6 ~3 ~3 minecraft:air

# Rear hall
fill ~-5 ~1 ~4 ~5 ~5 ~12 minecraft:stone_bricks
fill ~-4 ~2 ~5 ~4 ~4 ~11 minecraft:air
fill ~-4 ~1 ~5 ~4 ~1 ~11 minecraft:spruce_planks
fill ~-2 ~2 ~4 ~2 ~3 ~4 minecraft:air

# Front gatehouse
fill ~-5 ~1 ~-12 ~5 ~5 ~-8 minecraft:stone_bricks
fill ~-4 ~2 ~-11 ~4 ~4 ~-9 minecraft:air
fill ~-1 ~2 ~-12 ~1 ~4 ~-8 minecraft:air
fill ~-4 ~1 ~-11 ~4 ~1 ~-9 minecraft:spruce_planks

# Gatehouse pillars
fill ~-5 ~1 ~-12 ~-3 ~5 ~-8 minecraft:chiseled_stone_bricks
fill ~3 ~1 ~-12 ~5 ~5 ~-8 minecraft:chiseled_stone_bricks

# Wing support pillars
fill ~-12 ~2 ~-7 ~-11 ~4 ~-7 minecraft:spruce_log[axis=y]
fill ~-8 ~2 ~-7 ~-7 ~4 ~-7 minecraft:spruce_log[axis=y]
fill ~11 ~2 ~-7 ~12 ~4 ~-7 minecraft:spruce_log[axis=y]
fill ~7 ~2 ~-7 ~8 ~4 ~-7 minecraft:spruce_log[axis=y]
fill ~-12 ~2 ~11 ~-11 ~4 ~11 minecraft:spruce_log[axis=y]
fill ~-8 ~2 ~11 ~-7 ~4 ~11 minecraft:spruce_log[axis=y]
fill ~11 ~2 ~11 ~12 ~4 ~11 minecraft:spruce_log[axis=y]
fill ~7 ~2 ~11 ~8 ~4 ~11 minecraft:spruce_log[axis=y]

# Wing roofs
fill ~-15 ~6 ~-13 ~-5 ~6 ~13 minecraft:dark_oak_slab[type=top]
fill ~5 ~6 ~-13 ~15 ~6 ~13 minecraft:dark_oak_slab[type=top]
fill ~-6 ~6 ~3 ~6 ~6 ~13 minecraft:dark_oak_slab[type=top]
fill ~-6 ~6 ~-13 ~6 ~6 ~-7 minecraft:dark_oak_slab[type=top]

# Roof ridges
fill ~-15 ~7 ~0 ~-5 ~7 ~0 minecraft:dark_oak_planks
fill ~5 ~7 ~0 ~15 ~7 ~0 minecraft:dark_oak_planks
fill ~-6 ~7 ~8 ~6 ~7 ~8 minecraft:dark_oak_planks
fill ~-6 ~7 ~-10 ~6 ~7 ~-10 minecraft:dark_oak_planks

# Curved-looking roof edges
fill ~-15 ~6 ~-13 ~-5 ~6 ~-13 minecraft:dark_oak_stairs[facing=south]
fill ~-15 ~6 ~13 ~-5 ~6 ~13 minecraft:dark_oak_stairs[facing=north]
fill ~5 ~6 ~-13 ~15 ~6 ~-13 minecraft:dark_oak_stairs[facing=south]
fill ~5 ~6 ~13 ~15 ~6 ~13 minecraft:dark_oak_stairs[facing=north]
fill ~-6 ~6 ~13 ~6 ~6 ~13 minecraft:dark_oak_stairs[facing=north]
fill ~-6 ~6 ~3 ~6 ~6 ~3 minecraft:dark_oak_stairs[facing=south]

# Corner watchtowers
fill ~-16 ~1 ~-14 ~-12 ~8 ~-10 minecraft:stone_bricks
fill ~-15 ~2 ~-13 ~-13 ~7 ~-11 minecraft:air
fill ~12 ~1 ~-14 ~16 ~8 ~-10 minecraft:stone_bricks
fill ~13 ~2 ~-13 ~15 ~7 ~-11 minecraft:air
fill ~-16 ~1 ~10 ~-12 ~8 ~14 minecraft:stone_bricks
fill ~-15 ~2 ~11 ~-13 ~7 ~13 minecraft:air
fill ~12 ~1 ~10 ~16 ~8 ~14 minecraft:stone_bricks
fill ~13 ~2 ~11 ~15 ~7 ~13 minecraft:air

# Watchtower roofs
fill ~-17 ~9 ~-15 ~-11 ~9 ~-9 minecraft:dark_oak_slab[type=top]
fill ~11 ~9 ~-15 ~17 ~9 ~-9 minecraft:dark_oak_slab[type=top]
fill ~-17 ~9 ~9 ~-11 ~9 ~15 minecraft:dark_oak_slab[type=top]
fill ~11 ~9 ~9 ~17 ~9 ~15 minecraft:dark_oak_slab[type=top]

# Central rear dojo tower
fill ~-3 ~6 ~5 ~3 ~13 ~11 minecraft:stone_bricks
fill ~-2 ~7 ~6 ~2 ~12 ~10 minecraft:air
fill ~-2 ~7 ~6 ~2 ~7 ~10 minecraft:spruce_planks

# Tower windows
fill ~-3 ~9 ~7 ~-3 ~10 ~9 minecraft:glass_pane
fill ~3 ~9 ~7 ~3 ~10 ~9 minecraft:glass_pane
fill ~-1 ~9 ~5 ~1 ~10 ~5 minecraft:glass_pane
fill ~-1 ~9 ~11 ~1 ~10 ~11 minecraft:glass_pane

# Tower roof
fill ~-4 ~14 ~4 ~4 ~14 ~12 minecraft:dark_oak_slab[type=top]
fill ~-3 ~15 ~5 ~3 ~15 ~11 minecraft:dark_oak_slab[type=top]
fill ~-2 ~16 ~6 ~2 ~16 ~10 minecraft:dark_oak_slab[type=top]
fill ~-1 ~17 ~7 ~1 ~17 ~9 minecraft:dark_oak_slab[type=top]
setblock ~0 ~18 ~8 minecraft:lightning_rod[facing=up]

# Main doors
setblock ~-1 ~2 ~-12 minecraft:spruce_door[facing=south,half=lower,hinge=left,open=false]
setblock ~-1 ~3 ~-12 minecraft:spruce_door[facing=south,half=upper,hinge=left,open=false]
setblock ~0 ~2 ~-12 minecraft:spruce_door[facing=south,half=lower,hinge=right,open=false]
setblock ~0 ~3 ~-12 minecraft:spruce_door[facing=south,half=upper,hinge=right,open=false]

# Windows
setblock ~-14 ~3 ~-5 minecraft:glass_pane
setblock ~-14 ~3 ~0 minecraft:glass_pane
setblock ~-14 ~3 ~5 minecraft:glass_pane
setblock ~14 ~3 ~-5 minecraft:glass_pane
setblock ~14 ~3 ~0 minecraft:glass_pane
setblock ~14 ~3 ~5 minecraft:glass_pane
setblock ~-4 ~3 ~12 minecraft:glass_pane
setblock ~0 ~3 ~12 minecraft:glass_pane
setblock ~4 ~3 ~12 minecraft:glass_pane

# Courtyard training area
fill ~-3 ~2 ~-5 ~3 ~2 ~-5 minecraft:dark_oak_planks
fill ~-3 ~2 ~1 ~3 ~2 ~1 minecraft:dark_oak_planks
fill ~-3 ~2 ~-5 ~-3 ~2 ~1 minecraft:dark_oak_planks
fill ~3 ~2 ~-5 ~3 ~2 ~1 minecraft:dark_oak_planks
setblock ~0 ~2 ~-2 minecraft:polished_andesite
setblock ~0 ~3 ~-2 minecraft:lantern[hanging=true]

# Lanterns and decorative beams
setblock ~-5 ~4 ~-6 minecraft:lantern
setblock ~5 ~4 ~-6 minecraft:lantern
setblock ~-5 ~4 ~2 minecraft:lantern
setblock ~5 ~4 ~2 minecraft:lantern
setblock ~-10 ~4 ~-7 minecraft:lantern
setblock ~10 ~4 ~-7 minecraft:lantern
setblock ~-10 ~4 ~11 minecraft:lantern
setblock ~10 ~4 ~11 minecraft:lantern
setblock ~0 ~12 ~5 minecraft:lantern
setblock ~0 ~12 ~11 minecraft:lantern

# Courtyard pillars
fill ~-4 ~2 ~-6 ~-4 ~4 ~-6 minecraft:spruce_log[axis=y]
fill ~4 ~2 ~-6 ~4 ~4 ~-6 minecraft:spruce_log[axis=y]
fill ~-4 ~2 ~2 ~-4 ~4 ~2 minecraft:spruce_log[axis=y]
fill ~4 ~2 ~2 ~4 ~4 ~2 minecraft:spruce_log[axis=y]

# Exterior stairs
fill ~-2 ~1 ~-13 ~2 ~1 ~-13 minecraft:stone_brick_stairs[facing=south]
fill ~-1 ~2 ~-14 ~1 ~2 ~-14 minecraft:stone_brick_stairs[facing=south]

# Banners
setblock ~-4 ~4 ~-12 minecraft:red_banner
setblock ~4 ~4 ~-12 minecraft:blue_banner
setblock ~-14 ~5 ~0 minecraft:yellow_banner
setblock ~14 ~5 ~0 minecraft:green_banner

# Themed monastery chests
setblock ~-10 ~2 ~-5 minecraft:chest[facing=south]
item replace block ~-10 ~2 ~-5 container.0 with minecraft:wooden_sword[minecraft:custom_name='{"text":"Training Spinjitzu Blade","color":"gold","italic":false}',minecraft:custom_data={spinjitzu:"blade"}] 1
item replace block ~-10 ~2 ~-5 container.1 with minecraft:amethyst_shard[minecraft:custom_name='{"text":"Elemental Crystal","color":"light_purple","italic":false}',minecraft:custom_data={spinjitzu:"crystal"}] 4
item replace block ~-10 ~2 ~-5 container.2 with minecraft:paper[minecraft:custom_name='{"text":"Monastery Scroll","color":"yellow","italic":false}',minecraft:custom_data={spinjitzu:"scroll"}] 1
item replace block ~-10 ~2 ~-5 container.3 with minecraft:golden_sword[minecraft:custom_name='{"text":"Sword of Fire","color":"red","bold":true,"italic":false}',minecraft:custom_data={spinjitzu:"sword_of_fire"},minecraft:enchantment_glint_override=true] 1

setblock ~10 ~2 ~-5 minecraft:chest[facing=south]
item replace block ~10 ~2 ~-5 container.0 with minecraft:gold_ingot[minecraft:custom_name='{"text":"Golden Dragon Coin","color":"gold","italic":false}',minecraft:custom_data={spinjitzu:"coin"}] 3
item replace block ~10 ~2 ~-5 container.1 with minecraft:fire_charge[minecraft:custom_name='{"text":"Fire Spinjitzu Core","color":"red","italic":false}',minecraft:custom_data={spinjitzu:"fire_core"}] 2
item replace block ~10 ~2 ~-5 container.2 with minecraft:blaze_powder[minecraft:custom_name='{"text":"Flame Essence","color":"dark_red","italic":false}',minecraft:custom_data={spinjitzu:"flame"}] 2
item replace block ~10 ~2 ~-5 container.3 with minecraft:blaze_rod[minecraft:custom_name='{"text":"Nunchucks of Lightning","color":"aqua","bold":true,"italic":false}',minecraft:custom_data={spinjitzu:"nunchucks_of_lightning"},minecraft:enchantment_glint_override=true] 1

setblock ~0 ~2 ~8 minecraft:chest[facing=north]
item replace block ~0 ~2 ~8 container.0 with minecraft:prismarine_shard[minecraft:custom_name='{"text":"Lightning Shard","color":"aqua","italic":false}',minecraft:custom_data={spinjitzu:"lightning"}] 3
item replace block ~0 ~2 ~8 container.1 with minecraft:blue_dye[minecraft:custom_name='{"text":"Ice Spinjitzu Core","color":"blue","italic":false}',minecraft:custom_data={spinjitzu:"ice_core"}] 2
item replace block ~0 ~2 ~8 container.2 with minecraft:ender_pearl[minecraft:custom_name='{"text":"Spinjitzu Focus","color":"dark_purple","italic":false}',minecraft:custom_data={spinjitzu:"focus"}] 1
item replace block ~0 ~2 ~8 container.3 with minecraft:gold_nugget[minecraft:custom_name='{"text":"Shurikens of Ice","color":"blue","bold":true,"italic":false}',minecraft:custom_data={spinjitzu:"shurikens_of_ice"},minecraft:enchantment_glint_override=true] 8

setblock ~2 ~2 ~-10 minecraft:chest[facing=south]
item replace block ~2 ~2 ~-10 container.0 with minecraft:emerald[minecraft:custom_name='{"text":"Master Wu Token","color":"green","italic":false}',minecraft:custom_data={spinjitzu:"wu_token"}] 2
item replace block ~2 ~2 ~-10 container.1 with minecraft:slime_ball[minecraft:custom_name='{"text":"Earth Spinjitzu Core","color":"dark_green","italic":false}',minecraft:custom_data={spinjitzu:"earth_core"}] 2
item replace block ~2 ~2 ~-10 container.2 with minecraft:cookie[minecraft:custom_name='{"text":"Monastery Ration","color":"gold","italic":false}',minecraft:custom_data={spinjitzu:"ration"}] 8
item replace block ~2 ~2 ~-10 container.3 with minecraft:golden_hoe[minecraft:custom_name='{"text":"Scythe of Quakes","color":"dark_green","bold":true,"italic":false}',minecraft:custom_data={spinjitzu:"scythe_of_quakes"},minecraft:enchantment_glint_override=true] 1

# Elemental weapon temples
function spinjitsu_monastery:temple/fire
function spinjitsu_monastery:temple/lightning
function spinjitsu_monastery:temple/ice
function spinjitsu_monastery:temple/earth

# Destiny's Bounty
function spinjitsu_monastery:ship/destinys_bounty