Skip to content

Instantly share code, notes, and snippets.

View tryashtar's full-sized avatar

tryashtar tryashtar

View GitHub Profile
@tryashtar
tryashtar / portal.txt
Created March 2, 2018 20:14
Old portal summons
/summon Skeleton -840 51 -265 {HealF:.000000001,Attributes:[{Name:"generic.maxHealth",Base:.000000001},{Name:"generic.knockbackResistance",Base:1},{Name:"generic.movementSpeed",Base:0}],Equipment:[{id:261,Count:1,tag:{ench:[{id:48,lvl:5}]}},{id:261,Count:1,tag:{display:{Name:"§aAperture Rocket Launcher§r",Lore:["§7§oShoots Aperture Rockets§r"]}}},{id:262,Count:64,tag:{display:{Name:"§cAperture Rocket§r",Lore:["§7§oShot from the Rocket Launcher§r"]}}},{},{id:23,Count:1}],DropChances:[0.0,1.0,1.0,0.0,0.0],PersistenceRequired:1,CustomName:"§bRocket Turret§r",CustomNameVisible:1}
/summon LavaSlime ~ ~5 ~ {HealF:.000000001,Attributes:[{Name:"generic.maxHealth",Base:.000000001},{Name:"generic.movementSpeed",Base:0},{Name:"generic.attackDamage",Base:0}],Equipment:[{id:381,Count:1,tag:{display:{Name:"§5Morality Core§r",Lore:["§7§oDoesn't seem to say anything...§r"]}}},{},{},{},{}],DropChances:[1.0,0.0,0.0,0.0,0.0],PersistenceRequired:1,CustomName:"§5Morality Core§r",CustomNameVisible:1,Size:0}
/summon LavaSlime ~ ~
@tryashtar
tryashtar / book.txt
Created March 2, 2018 20:15
Old floor is lava book
replaceitem entity @p slot.hotbar.8 written_book 1 0 {pages:["[{\"text\":\"\"},{\"text\":\" Floor is Lava!\n\n\",\"color\":\"dark_red\",\"bold\":true},{\"text\":\"Welcome to this game, \",\"color\":\"black\"},{\"selector\":\"@p\",\"color\":\"blue\"},{\"text\":\"!\n\nThis book contains simple instructions about playing and setting up the game.\",\"color\":\"black\"}]","[{\"text\":\"\"},{\"text\":\"Quick Jumps\",\"color\":\"black\",\"bold\":true},{\"text\":\"\n3\",\"bold\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"3\"},\"hoverEvent\":{action:show_text,\"value\":{\"text\":\"Go to page 3\"}}},{\"text\":\" Introduction\",\"color\":\"black\",\"bold\":false},{\"text\":\"\n4\",\"bold\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"4\"},\"hoverEvent\":{action:show_text,\"value\":{\"text\":\"Go to page 4\"}},\"color\":none},{\"text\":\" Game Basics\",\"color\":\"black\",\"bold\":false},{\"text\":\"\n5\",\"bold\":true,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"5\"},\"hoverEv
@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 / inventory.md
Last active December 18, 2018 22:29
/inventory command proposal

First, you pick the inventory:

  • /inventory block <pos> is a block's inventory
  • /inventory entity <targets> is an entity's inventory
    • For players, the "domain" here is the same as /clear -- the entire inventory including armor and off-hand. For other entities, it includes ArmorItems and HandItems. Horses include saddle and armor slots, as well as inventory if applicable.

Then, you pick the action and item:

  • add <item> [<count>] [<slot>] is similar to the current /give -- it adds an item to the inventory.
  • If slot is unspecified, it stacks or adds similarly to picking up an item. If slot is specified and the slot is empty or can stack with the item, it will do so, otherwise it will fail.
@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 / 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 / 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
@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 / ores.md
Last active July 1, 2020 22:52
How ores generate

 

Block Replaces Size Type
@tryashtar
tryashtar / pickup-delay.md
Last active June 7, 2021 13:55
Item PickupDelay table.
Source PickupDelay
Dropped by Player 40
Player Killed 40
Block Broken 10
Mob Killed 10
Dropped by Entity 10
Ejected from Jukebox 10
Broken Container 0
Dispenser/Dropper 0