Skip to content

Instantly share code, notes, and snippets.

⚡ = Advancement trigger
✨ = Enchantment effect
▶️ = Commands run

  • MinecraftServer::tickServer
    • 🕑 Update /tick rate manager
    • ServerFunctionManager::tick
      • ▶️ Run #load function tag if a reload happened
      • ▶️ Run #tick function tag
    • ServerLevel::tick (per dimension)

⚠️ This guide has moved ⚠️

Updates for both 1.18.2 and newer versions can be found at https://minecraft.wiki/w/Tutorial:Custom_structures

Custom data pack structures in 1.18.2

This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.

Always leave the world and rejoin to apply the new changes!

Pack.mcmeta

Loot Context

Uses

Functions

  • looting_enchant: killer_entity
  • set_name only if entity is set: this_entity, killer_entity, direct_killer_entity, or last_damage_player
  • exploration_map: origin
  • copy_name depending on the value of source: this_entity, killer_entity, last_damage_player, or block_entity
  • apply_bonus: tool
  • Acacia A programming language that runs in Minecraft BE by compiling into commands
  • Andesite Minecraft java and bedrock library
  • Anvil Cloud-ready multiplatform minecraft development framework
  • Allay The next-generation Minecraft: Bedrock Edition server software
  • Allay A parser to convert a descriptive text format into minecraft text components
  • Allium A Discord Bot focused on the Minecraft Modding Scene
  • Amethyst Native c++ modding for MCBE 1.21.0.3 for building client side mods
  • Axolotl Free & Open-Source Minecraft Mod (and related infrastructure) for use in PvP and other Scenarios
  • Azalea A collection of Rust crates for making Minecraft bots, c
@misode
misode / kagi.css
Created October 21, 2025 22:46
Custom CSS for Kagi that makes it look a little bit closer to Google
.__sri-title {
margin-top: 4px;
margin-bottom: 4px;
}
.__sri-title .__sri_title_link {
border-bottom: none;
color: #99c3ff;
}
@misode
misode / chest.json
Last active February 13, 2025 08:14
{
"textures": {
"0": "minecart/minecart",
"1": "minecart/chest"
},
"elements": [
{
"name": "Cube",
"from": [ 1.0, 4.0, 1.0 ],
"to": [ 15.0, 18.0, 15.0 ],
{
"variants": {
"conditional=false,facing=down": { "model": "block/command_block", "x": 90 },
"conditional=false,facing=up": { "model": "block/command_block", "x": 270 },
"conditional=false,facing=north": { "model": "block/command_block" },
"conditional=false,facing=south": { "model": "block/command_block", "y": 180 },
"conditional=false,facing=west": { "model": "block/command_block", "y": 270 },
"conditional=false,facing=east": { "model": "block/command_block", "y": 90 },
"conditional=true,facing=down": { "model": "block/minecart/empty" },
"conditional=true,facing=up": { "model": "block/minecart/chest" },