Skip to content

Instantly share code, notes, and snippets.

View tryashtar's full-sized avatar

tryashtar tryashtar

View GitHub Profile
@tryashtar
tryashtar / arrows
Last active September 24, 2017 17:56
summon arrow ~0 ~ ~15
summon arrow ~3.11867536226639 ~ ~14.6722140110071
summon arrow ~6.101049646137 ~ ~13.703181864639
summon arrow ~8.8167787843871 ~ ~12.1352549156242
summon arrow ~11.1471723821609 ~ ~10.0369590953829
summon arrow ~12.9903810567666 ~ ~7.5
summon arrow ~14.2658477444273 ~ ~4.63525491562421
summon arrow ~14.9178284305241 ~ ~1.5679269490148
summon arrow ~14.9178284305241 ~ ~-1.5679269490148
summon arrow ~14.2658477444273 ~ ~-4.63525491562421
@tryashtar
tryashtar / angles
Last active September 21, 2017 16:30
(0.5, 0)
(0.5, 0.00872753246410879)
(0.5, 0.0174603847458739)
(0.5, 0.0262038896415206)
(0.5, 0.0349634059717552)
(0.5, 0.043744331762962)
(0.5, 0.0525521176328382)
(0.5, 0.0613922804514523)
(0.5, 0.0702704173511957)
(0.5, 0.0791922201622681)
@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
@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.