Skip to content

Instantly share code, notes, and snippets.

Avatar

tryashtar tryashtar

View GitHub Profile
@tryashtar
tryashtar / sora in smash.md
Created Oct 5, 2021
Sora in smash: my thoughts
View sora in smash.md

Appearance

Idles

Sora has an idle animation of looking left, then right, then left again. This is straight out of his Kingdom Hearts 1 idle combat loop, and returns in Kingdom Hearts 2. He has a bit better posture in Smash Bros., but it's nice to see the return of this animation.

Another idle animation has Sora spin the keyblade in his off-hand, which is somewhat reminiscent of the Wisdom Form idle keyblade spin.

Another idle animation has Sora twirling the keyblade in front of himself. It resembles the beginning of the Tinker Bell summon animation from Kingdom Hearts 1.

All in all, pretty good idle animations! I most appreciate the first one.

@tryashtar
tryashtar / max-enchant.md
Last active Aug 27, 2021
Max effective values for enchantments
View max-enchant.md
Enchantment Stackable Effective Min Effective Max Notes
Aqua Affinity Largest of first in armor 1 1
Bane of Arthropods Adds Single:
-2147483648
Stacked:
-52241757371157708
Single:
2147483647
Stacked:
52241757371157708
Adds 2.5 * level damage
Affects arthropods with slowness amplifier 3 for 1 + random(0, level / 2) seconds
Blast Protection Adds 1 255 Reduces damage by a factor of min(20, level * 2) / 25
Reduces explosion knockback by a factor of level * 0.15
Higher levels are treated as 255
Channeling First 1 1
Curse of Binding First 1 1
Curse of Vanishing First 1 1
Depth Strider Largest of first in armor 1 3 Higher levels are treated as 3
@tryashtar
tryashtar / mcstructure.md
Last active Aug 20, 2021
Bedrock mcstructure file format
View mcstructure.md

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 Mar 31, 2020
How sounds work in Bedrock Edition
View sounds.md

Sound definition

volume:

  • Sets actual volume, making the sound louder or quieter.

pitch:

  • Does nothing.

min_distance:

  • Does nothing.
@tryashtar
tryashtar / ores.md
Last active Jul 1, 2020
How ores generate
View ores.md

 

Block Replaces Size Type
@tryashtar
tryashtar / camera.mcfunction
Created Jun 8, 2019
Godlander's modified camera system for kingdom hearts
View camera.mcfunction
# @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 Feb 28, 2020
List of all blocks and block states in bedrock edition (* means I was unable to place or inspect this block)
View bedrock block states.txt
air
stone
stone_type
stone
granite
granite_smooth
diorite
diorite_smooth
andesite
andesite_smooth
@tryashtar
tryashtar / sounds.json
Last active Apr 20, 2019
History of sounds.json 1.11->1.12->1.13->1.14
View sounds.json
{
"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 Jan 19, 2019
✗ means JSON file does not end with newline, ✓ means it does (or the entire folder, with exceptions listed inside)
View 19w03c JSON newlines
✗ 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 Jan 14, 2019
mcedit filter to make paintings invulnerable
View invulnerable_painting.py
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":