Skip to content

Instantly share code, notes, and snippets.

View tryashtar's full-sized avatar

tryashtar tryashtar

View GitHub Profile
@tryashtar
tryashtar / mcstructure.md
Last active August 12, 2026 14:00
Bedrock mcstructure file format

Bedrock .mcstructure files

Saving and Loading

mcstructure files are created by the Export button in a structure block. To load them in game with a load structure block, the files must be placed in a behavior pack. The path determines the structure identifier, which is typed into the structure block to load the structure.

Examples:

@tryashtar
tryashtar / sounds.md
Last active June 30, 2025 20:30
How sounds work in Bedrock Edition

sound_definitions.json

There are two different ways to format this file:

  • All the sound event keys in the root
  • Sound event keys in an object called sound_definitions, with an additional key format_version set to 1.14.0

You should always use the latter, as using the former prevents fields like pitch from working.

You can reference sounds in OGG or FSB format. FSB sounds do not fade properly with distance, so prefer OGG unless the sound is intended to be global like music.

volume:

@tryashtar
tryashtar / ores.md
Last active July 1, 2020 22:52
How ores generate

 

Block Replaces Size Type
@tryashtar
tryashtar / camera.mcfunction
Created June 8, 2019 20:32
Godlander's modified camera system for kingdom hearts
# @s is the player in the minecart
# 0-0-0-0-1 is the AEC the camera minecart is riding on
# 0-0-0-0-2 is sora's true position marker
# 0-0-0-0-3 is the point the camera focuses on
# 0-0-0-0-4 is the AEC sora's display model rides on
# 0-0-0-0-5 is sora's display model
# 0-0-9-0-8 and 0-0-9-0-9 are temporary markers used for math
# movement
@tryashtar
tryashtar / bedrock block states.txt
Last active August 23, 2022 07:29
List of all blocks and block states in bedrock edition (* means I was unable to place or inspect this block)
air
stone
stone_type
stone
granite
granite_smooth
diorite
diorite_smooth
andesite
andesite_smooth
@tryashtar
tryashtar / sounds.json
Last active December 23, 2022 09:05
History of sounds.json 1.11->1.12->1.13->1.14
{
"ambient.cave": {
"sounds": [
"ambient/cave/cave1",
"ambient/cave/cave2",
"ambient/cave/cave3",
"ambient/cave/cave4",
"ambient/cave/cave5",
"ambient/cave/cave6",
"ambient/cave/cave7",
@tryashtar
tryashtar / 19w03c JSON newlines
Created January 19, 2019 21:55
✗ means JSON file does not end with newline, ✓ means it does (or the entire folder, with exceptions listed inside)
✗ version.json
✓ assets/minecraft/blockstates
✗ brain_coral.json
✗ bubble_coral.json
✗ fire_coral.json
✗ horn_coral.json
✗ jigsaw.json
✗ tube_coral.json
✗ assets/minecraft/font
✓ assets/minecraft/lang
@tryashtar
tryashtar / invulnerable_painting.py
Created January 14, 2019 09:34
mcedit filter to make paintings invulnerable
displayName = "Invulnerable Paintings"
def perform(level, box, options):
for (chunk, slices, point) in level.getChunkSlices(box):
for e in chunk.Entities:
x = e["Pos"][0].value
y = e["Pos"][1].value
z = e["Pos"][2].value
if (x, y, z) in box:
if e["identifier"].value == "minecraft:painting":
@tryashtar
tryashtar / splashes.txt
Created December 12, 2018 06:21
Bedrock vs Java splashes
As seen on TV!
Awesome!
100% pure!
May contain nuts!
More polygons!
Sexy!
Limited edition!
Flashing letters!
Made by Notch!
It's here!
@tryashtar
tryashtar / translations.md
Last active March 13, 2019 08:38
Wrong Translations in Bedrock

Items that are crossed out were fixed at some point (beta?)

Java Bedrock
Oak Planks
Spruce Planks
Birch Planks
Jungle Planks
Acacia Planks
Dark Oak Planks
Oak Wood Planks
Spruce Wood Planks
Birch Wood Planks
Jungle Wood Planks
Acacia Wood Planks
Dark Oak Wood Planks
Oak Stairs
Spruce Stairs
Birch Stairs
Jungle Stairs
Acacia Stairs
Dark Oak Stairs
Oak Wood Stairs
Spruce Wood Stairs
Birch Wood Stairs
Jungle Wood Stairs
Acacia Wood Stairs
Dark Oak Wood Stairs
Oak Slab
Spruce Slab
Birch Slab
Jungle Slab
Acacia Slab
Dark Oak Slab
Oak Wood Slab
Spruce Wood Slab
Birch Wood Slab
Jungle Wood Slab
Acacia Wood Slab
Dark Oak Wood Slab
Prismarine Brick Slab Prismarine Bricks Slab
Bricks Brick Block
Mossy Cobblestone Moss Stone