[
  {
    "path": "README.md",
    "content": "# Random example files\n\nThis repo contains random example files in random state of up-to-dateness.\n"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/annoyance.json",
    "content": "{\n    \"anvil_cost\": 8,\n    \"description\": {\n      \"text\": \"Curse of Annoyance\"\n    },\n    \"effects\": {\n      \"minecraft:hit_block\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:run_function\",\n            \"function\": \"example:annoying\"\n          },\n          \"requirements\": {\n            \"chance\": 0.2,\n            \"condition\": \"minecraft:random_chance\"\n          }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 50,\n      \"per_level_above_first\": 0\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 25,\n      \"per_level_above_first\": 0\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/vanishing\",\n    \"weight\": 1\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/boom_boom.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Boom Boom\"\n    },\n    \"effects\": {\n      \"minecraft:hit_block\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:explode\",\n            \"block_interaction\": \"mob\",\n            \"large_particle\": {\n              \"type\": \"minecraft:angry_villager\"\n            },\n            \"radius\": 2.0,\n            \"small_particle\": {\n              \"type\": \"minecraft:ash\"\n            },\n            \"sound\": \"minecraft:entity.generic.explode\"\n          },\n          \"requirements\": {\n            \"condition\": \"minecraft:entity_properties\",\n            \"entity\": \"this\",\n            \"predicate\": {\n              \"type\": \"#minecraft:arrows\"\n            }\n          }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 65,\n      \"per_level_above_first\": 9\n    },\n    \"max_level\": 3,\n    \"min_cost\": {\n      \"base\": 15,\n      \"per_level_above_first\": 9\n    },\n    \"slots\": [\n      \"mainhand\", \n      \"offhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/bow\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/claw.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Claw\"\n    },\n    \"effects\": {\n      \"minecraft:attributes\": [\n        {\n          \"amount\": {\n            \"type\": \"minecraft:linear\",\n            \"base\": 2,\n            \"per_level_above_first\": 2\n          },\n          \"attribute\": \"minecraft:player.block_interaction_range\",\n          \"id\": \"example:enchantment.claw\",\n          \"operation\": \"add_value\"\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 40,\n      \"per_level_above_first\": 10\n    },\n    \"max_level\": 5,\n    \"min_cost\": {\n      \"base\": 10,\n      \"per_level_above_first\": 10\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/vanishing\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/cowbow.json",
    "content": "{\n    \"anvil_cost\": 2,\n    \"description\": {\n      \"text\": \"Cowbow\"\n    },\n    \"effects\": {\n      \"minecraft:crossbow_charging_sounds\": [\n        {\n          \"end\": \"minecraft:entity.cow.hurt\",\n          \"start\": \"minecraft:entity.cow.ambient\"\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 50,\n      \"per_level_above_first\": 0\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 12,\n      \"per_level_above_first\": 20\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/crossbow\",\n    \"weight\": 5\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/diminishing.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Diminishing\"\n    },\n    \"effects\": {\n      \"minecraft:attributes\": [\n        {\n          \"amount\": {\n            \"type\": \"minecraft:linear\",\n            \"base\": -0.2,\n            \"per_level_above_first\": -0.2\n          },\n          \"attribute\": \"minecraft:generic.scale\",\n          \"id\": \"example:enchantment.diminishing\",\n          \"operation\": \"add_multiplied_base\"\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 40,\n      \"per_level_above_first\": 10\n    },\n    \"max_level\": 3,\n    \"min_cost\": {\n      \"base\": 10,\n      \"per_level_above_first\": 10\n    },\n    \"slots\": [\n      \"head\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/head_armor\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/fire_walker.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Fire Walker\"\n    },\n    \"effects\": {\n      \"minecraft:damage_immunity\": [\n        {\n          \"effect\": {},\n          \"requirements\": {\n            \"condition\": \"minecraft:damage_source_properties\",\n            \"predicate\": {\n              \"tags\": [\n                {\n                  \"expected\": true,\n                  \"id\": \"minecraft:is_freezing\"\n                },\n                {\n                  \"expected\": false,\n                  \"id\": \"minecraft:bypasses_invulnerability\"\n                }\n              ]\n            }\n          }\n        }\n      ],\n      \"minecraft:location_changed\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:replace_disk\",\n            \"block_state\": {\n              \"type\": \"minecraft:weighted_state_provider\",\n              \"entries\": [\n                {\n                  \"data\": {\n                    \"Name\": \"minecraft:obsidian\"\n                  },\n                  \"weight\": 9\n                },\n                {\n                  \"data\": {\n                  \"Name\": \"minecraft:crying_obsidian\"\n                  },\n                  \"weight\": 1\n                }\n            ]            },\n            \"height\": 1.0,\n            \"offset\": [\n              0,\n              -1,\n              0\n            ],\n            \"predicate\": {\n              \"type\": \"minecraft:all_of\",\n              \"predicates\": [\n                {\n                  \"type\": \"minecraft:matching_blocks\",\n                  \"blocks\": \"minecraft:air\",\n                  \"offset\": [\n                    0,\n                    1,\n                    0\n                  ]\n                },\n                {\n                  \"type\": \"minecraft:matching_fluids\",\n                  \"fluids\": \"minecraft:lava\"\n                },\n                {\n                  \"type\": \"minecraft:unobstructed\"\n                }\n              ]\n            },\n            \"radius\": {\n              \"type\": \"minecraft:clamped\",\n              \"max\": 16.0,\n              \"min\": 0.0,\n              \"value\": {\n                \"type\": \"minecraft:linear\",\n                \"base\": 3.0,\n                \"per_level_above_first\": 1.0\n              }\n            }\n          },\n          \"requirements\": {\n            \"condition\": \"minecraft:entity_properties\",\n            \"entity\": \"this\",\n            \"predicate\": {\n              \"flags\": {\n                \"is_on_ground\": true\n              }\n            }\n          }\n        }\n      ]\n    },\n    \"exclusive_set\": \"#minecraft:exclusive_set/boots\",\n    \"max_cost\": {\n      \"base\": 25,\n      \"per_level_above_first\": 10\n    },\n    \"max_level\": 2,\n    \"min_cost\": {\n      \"base\": 10,\n      \"per_level_above_first\": 10\n    },\n    \"slots\": [\n      \"feet\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/foot_armor\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/fishy.json",
    "content": "{\n    \"anvil_cost\": 8,\n    \"description\": {\n      \"text\": \"Fishy\"\n    },\n    \"effects\": {\n      \"minecraft:tick\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:summon_entity\",\n            \"entity\": \"silverfish\"\n          },\n          \"requirements\": {\n            \"chance\": 0.001,\n            \"condition\": \"minecraft:random_chance\"\n          }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 50,\n      \"per_level_above_first\": 0\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 25,\n      \"per_level_above_first\": 0\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/fishing\",\n    \"weight\": 1\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/fragility_curse.json",
    "content": "{\n    \"anvil_cost\": 8,\n    \"description\": {\n      \"text\": \"Curse of Fragility\"\n    },\n    \"effects\": {\n      \"minecraft:hit_block\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:damage_item\",\n            \"amount\": 64\n          },\n          \"requirements\": {\n            \"chance\": 0.03,\n            \"condition\": \"minecraft:random_chance\"\n          }\n        }\n      ],\n      \"minecraft:post_attack\": [\n        {\n          \"enchanted\": \"attacker\",\n          \"affected\": \"attacker\",\n          \"effect\": {\n            \"type\": \"minecraft:damage_item\",\n            \"amount\": 256\n          },\n          \"requirements\": {\n            \"chance\": 0.03,\n            \"condition\": \"minecraft:random_chance\"\n          }\n        },\n        {\n          \"enchanted\": \"victim\",\n          \"affected\": \"victim\",\n          \"effect\": {\n            \"type\": \"minecraft:damage_item\",\n            \"amount\": 64\n          },\n          \"requirements\": {\n            \"chance\": 0.03,\n            \"condition\": \"minecraft:random_chance\"\n          }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 50,\n      \"per_level_above_first\": 0\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 25,\n      \"per_level_above_first\": 0\n    },\n    \"slots\": [\n      \"any\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/vanishing\",\n    \"weight\": 1\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/galaxy_brain.json",
    "content": "{\n  \"anvil_cost\": 4,\n  \"description\": {\n    \"text\": \"Galaxy Brain\"\n  },\n  \"effects\": {\n    \"minecraft:mob_experience\": [\n      {\n        \"effect\": {\n          \"type\": \"minecraft:add\",\n          \"value\": 100.0\n        }\n      }\n    ]\n  },\n  \"max_cost\": {\n    \"base\": 65,\n    \"per_level_above_first\": 9\n  },\n  \"max_level\": 3,\n  \"min_cost\": {\n    \"base\": 15,\n    \"per_level_above_first\": 9\n  },\n  \"slots\": [\n    \"mainhand\"\n  ],\n  \"supported_items\": \"#minecraft:enchantable/sword\",\n  \"weight\": 2\n}"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/multi_multi_shot.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Multi-Multishot\"\n    },\n    \"effects\": {\n      \"minecraft:projectile_count\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:add\",\n            \"value\": {\n              \"type\": \"minecraft:linear\",\n              \"base\": 20.0,\n              \"per_level_above_first\": 20.0\n            }\n          }\n        }\n      ],\n      \"minecraft:projectile_spread\": [\n        {\n          \"effect\": {\n            \"type\": \"minecraft:add\",\n            \"value\": {\n              \"type\": \"minecraft:linear\",\n              \"base\": 20.0,\n              \"per_level_above_first\": 20.0\n            }\n          }\n        }\n      ]\n    },\n    \"exclusive_set\": \"#minecraft:exclusive_set/crossbow\",\n    \"max_cost\": {\n      \"base\": 50,\n      \"per_level_above_first\": 0\n    },\n    \"max_level\": 3,\n    \"min_cost\": {\n      \"base\": 20,\n      \"per_level_above_first\": 0\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/bow\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/pollen_allergy_curse.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Curse of Pollen Allergy\"\n    },\n    \"effects\": {\n      \"minecraft:tick\": [\n        {\n            \"effect\": {\n                \"type\": \"damage_entity\",\n                \"damage_type\": \"thorns\",\n                \"min_damage\": 1,\n                \"max_damage\": 1\n            },\n            \"requirements\": {\n                \"condition\": \"minecraft:all_of\",\n                \"terms\": [\n                    {\n                        \"chance\": 0.005,\n                        \"condition\": \"minecraft:random_chance\"\n                    },\n                    {\n                        \"condition\": \"minecraft:location_check\",\n                        \"predicate\": {\n                            \"biomes\": \"#is_forest\"\n                        }\n                    }\n                ]\n            }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 40,\n      \"per_level_above_first\": 10\n    },\n    \"max_level\": 3,\n    \"min_cost\": {\n      \"base\": 10,\n      \"per_level_above_first\": 10\n    },\n    \"slots\": [\n      \"armor\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/armor\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/roulette.json",
    "content": "{\n    \"anvil_cost\": 2,\n    \"description\": {\n      \"text\": \"Roulette\"\n    },\n    \"effects\": {\n      \"minecraft:item_damage\": [\n        {\n            \"effect\": {\n                \"type\": \"minecraft:set\",\n                \"value\": 0\n            }\n        },\n        {\n            \"effect\": {\n                \"type\": \"minecraft:add\",\n                \"value\": 2000\n            },\n            \"requirements\": {\n                \"condition\": \"random_chance\",\n                \"chance\": 0.01\n            }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 55,\n      \"per_level_above_first\": 8\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 5,\n      \"per_level_above_first\": 8\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/durability\",\n    \"weight\": 5\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/sparkles.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Sparkles!\"\n    },\n    \"effects\": {\n      \"minecraft:tick\": [\n        {\n            \"effect\": {\n                \"type\": \"minecraft:spawn_particles\",\n                \"horizontal_position\": {\n                  \"type\": \"in_bounding_box\"\n                },\n                \"horizontal_velocity\": {\n                  \"movement_scale\": 0\n                },\n                \"particle\": {\n                  \"type\": \"minecraft:ominous_spawning\"\n                },\n                \"speed\": 1.0,\n                \"vertical_position\": {\n                  \"type\": \"in_bounding_box\"\n                },\n                \"vertical_velocity\": {\n                  \"base\": 0.1\n                }\n            }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 40,\n      \"per_level_above_first\": 10\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 10,\n      \"per_level_above_first\": 10\n    },\n    \"slots\": [\n      \"armor\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/armor\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/enchantment/thor.json",
    "content": "{\n    \"anvil_cost\": 4,\n    \"description\": {\n      \"text\": \"Thor\"\n    },\n    \"effects\": {\n      \"minecraft:damage_immunity\": [\n        {\n          \"effect\": {},\n          \"requirements\": {\n            \"condition\": \"minecraft:weather_check\",\n            \"thundering\": true\n          }\n        }\n      ]\n    },\n    \"max_cost\": {\n      \"base\": 65,\n      \"per_level_above_first\": 9\n    },\n    \"max_level\": 1,\n    \"min_cost\": {\n      \"base\": 15,\n      \"per_level_above_first\": 9\n    },\n    \"slots\": [\n      \"mainhand\"\n    ],\n    \"supported_items\": \"#minecraft:enchantable/mace\",\n    \"weight\": 2\n  }"
  },
  {
    "path": "datapacks/enchantments/data/example/function/annoying.mcfunction",
    "content": "scoreboard objectives add Random dummy\nexecute store result score @s Random run random value 1..11\n\nexecute if score @s Random matches 1 run tellraw @s \"Cat Facts: Thanks for signing up for Cat Facts! You now will receive fun daily facts about CATS! >o<\"\nexecute if score @s Random matches 2 run tellraw @s \"Cat Facts: Cats use their tails for balance and have nearly 30 individual bones in them! <To cancel Daily Cat Facts, reply ‘cancel’>\"\nexecute if score @s Random matches 3 run tellraw @s \"Cat Facts: In ancient Egypt, killing a cat was a crime punishable by death.  Thank you for choosing Cat Facts!\"\nexecute if score @s Random matches 4 run tellraw @s \"Cat Facts: Did you know that the first cat show was held in 1871 at the Crystal Palace in London?  Mee-wow!\"\nexecute if score @s Random matches 5 run tellraw @s \"Cat Facts: Did you know there are about 100 distinct breeds of domestic cat?  Plenty of furry love!\"\nexecute if score @s Random matches 6 run tellraw @s \"Cat Facts: Cats bury their feces to cover their trails from predators.  <To cancel Cat Facts, reply catfactscancel>\"\nexecute if score @s Random matches 7 run tellraw @s \"Cat Facts: A cat has two vocal chords, and can make over 100 sounds.\"\nexecute if score @s Random matches 8 run tellraw @s \"Cat Facts: <Command not recognized> To unsubscribe, please reply ‘catfactscancel’\"\nexecute if score @s Random matches 9 run tellraw @s \"Cat Facts: A cat will spend nearly 30% of her life grooming herself. <To cancel Cat Facts, reply catfactscancel>\"\nexecute if score @s Random matches 10 run tellraw @s \"Cat Facts: Recent studies have shown that cats can see blue and green. There is disagreement as to whether they can see red.\"\nexecute if score @s Random matches 11 run tellraw @s \"Cat Facts: A domestic cat can sprint at about 31 miles per hour. <To cancel Cat Facts, reply catfactscancel>\"\n"
  },
  {
    "path": "datapacks/enchantments/data/minecraft/tags/enchantment/curse.json",
    "content": "{\n    \"values\": [\n        \"example:fragility_curse\",\n        \"example:pollen_allergy_curse\",\n        \"example:annoyance\"\n    ]\n}"
  },
  {
    "path": "datapacks/enchantments/pack.mcmeta",
    "content": "{\n    \"pack\": {\n        \"pack_format\": 48,\n        \"description\": \"Enchantments Demo\"\n    }\n}\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/concat.mcfunction",
    "content": "# Concatenate $(string1) and $(string2), save that to $(path) in storage $(id)\n$data modify storage $(id) $(path) set value \"$(string1)$(string2)\"\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/eval.mcfunction",
    "content": "# Run the command in $(command)\n$$(command)\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/fails.mcfunction",
    "content": "# A function fails if it doesn't use return\nsetblock ~ ~-1 ~ stone\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/fails2.mcfunction",
    "content": "# A function fails if it returns 0\nreturn 0\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/get_player_health.mcfunction",
    "content": "# If this is a player, return the health value\nexecute if entity @s[type=player] run return run data get entity @s Health\n\n# Return 0 for non-players\nreturn 0\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/line_continuation.mcfunction",
    "content": "scoreboard players operation @a result \\\n    += @e[type=marker,limit=1,tag=source] value\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/set_time.mcfunction",
    "content": "# Set the time to $(time)\n$time set $(time)\n"
  },
  {
    "path": "datapacks/v16demo/data/v16/functions/succeeds.mcfunction",
    "content": "# Return non-zero as a success value\nreturn 1\n"
  },
  {
    "path": "datapacks/v16demo/pack.mcmeta",
    "content": "{\n    \"pack\": {\n        \"pack_format\": 16,\n        \"description\": \"Data Pack v16 Demo\"\n    }\n}\n"
  },
  {
    "path": "so_lime.json",
    "content": "{\n  \"generator\": {\n    \"type\": \"minecraft:noise\",\n    \"seed\": -1464245863,\n    \"biome_source\": {\n      \"type\": \"minecraft:vanilla_layered\",\n      \"seed\": -1464245863,\n      \"large_biomes\": true\n    },\n    \"settings\": {\n      \"default_block\": {\n        \"Name\": \"minecraft:lime_wool\",\n        \"Properties\": {}\n      },\n      \"default_fluid\": {\n        \"Name\": \"minecraft:water\",\n        \"Properties\": {\n          \"level\": \"8\"\n        }\n      },\n      \"bedrock_floor_position\": -10,\n      \"bedrock_roof_position\": -10,\n      \"sea_level\": 32,\n      \"disable_mob_generation\": false,\n      \"noise\": {\n        \"height\": 128,\n        \"sampling\": {\n          \"xz_scale\": 1,\n          \"y_scale\": 3,\n          \"xz_factor\": 80,\n          \"y_factor\": 60\n        },\n        \"top_slide\": {\n          \"target\": 120,\n          \"size\": 3,\n          \"offset\": 0\n        },\n        \"bottom_slide\": {\n          \"target\": 320,\n          \"size\": 4,\n          \"offset\": -1\n        },\n        \"size_horizontal\": 1,\n        \"size_vertical\": 2,\n        \"density_factor\": 0.0,\n        \"density_offset\": 0.019921875,\n        \"simplex_surface_noise\": false,\n        \"random_density_offset\": false,\n        \"island_noise_override\": false,\n        \"amplified\": false\n      },\n      \"structures\": {\n        \"stronghold\": {\n          \"distance\": 32,\n          \"spread\": 3,\n          \"count\": 128\n        },\n        \"structures\": {\n          \"minecraft:village\": {\n            \"spacing\": 32,\n            \"separation\": 8,\n            \"salt\": 10387312\n          }\n        }\n      }\n    }\n  },\n  \"type\": \"minecraft:overworld\"\n}\n"
  }
]