Skip to content

Instantly share code, notes, and snippets.

@AjaxGb
AjaxGb / motion_command_spec_proposal.md
Last active February 11, 2019 23:10
Specification for a proposed /motion Minecraft command

The Short Version:

/motion <entity> vector <x> <y> <z>
/motion <entity> magnitude (set|add|scale) <value>
/motion <entity> copyfrom <entity2>
/motion <entity> toward <x> <y> <z> (add|set) none <strength>
/motion <entity> toward <x> <y> <z> (add|set) <scaling> <nearStrength> <farStrength> <nearRadius> <farRadius>
/motion <entity> test vector <xRange> <yRange> <zRange>
/motion <entity> test direction <xRotRange> <yRotRange>

/motion test magnitude

@AjaxGb
AjaxGb / findandreplaceregex.py
Last active June 28, 2017 02:18
MCEdit filter to do find and replace in command blocks, with support for regular expressions.
# coding unicode-escape
# Feel free to modify and use this filter however you wish. If you do,
# please give credit to SethBling.
# http://youtube.com/SethBling
# Updated to 1.11 by Onnowhere
# http://youtube.com/Onnowhere2
# Regex support added by AjaxGb
# https://github.com/AjaxGb
import re
@AjaxGb
AjaxGb / shield.json
Created July 10, 2017 04:33
Reverse engineered Minecraft's shield model (w/o pattern support)
{
"textures": {
"layer0": "entity/shield_base_nopattern"
},
"elements": [
{
"from": [-6, -11, 1],
"to": [6, 11, 2],
"faces": {
"up" : {"texture": "#layer0", "uv": [0.25, 0.00, 3.25, 0.25]},
@AjaxGb
AjaxGb / passengers_command_spec_proposal.md
Last active August 29, 2017 01:52
Specification for a proposed /passengers Minecraft command

The Short Version

/passengers <entity> add <entity2> [front|back|random]
/passengers <entity> remove <entity2>
/passengers <entity> clear [<max>] [front|back|random]
/passengers <entity> count [direct|indirect] [<entity2>]
/passengers <entity> dismount

The Long Version

@AjaxGb
AjaxGb / link_command_spec_proposal.md
Last active November 10, 2017 23:03
Specification for a proposed /link Minecraft command and /execute linked subcommand.
@AjaxGb
AjaxGb / SpareMyLeftEar.user.js
Created October 22, 2021 23:58
Spare My Left Ear - Userscript to fix audio playing in only one ear
// ==UserScript==
// @name Spare My Left Ear
// @version 0.1
// @description Fix audio playing in only one ear by changing all stereo audio on the page into mono
// @author AjaxGb
// @include *
// @run-at context-menu
// ==/UserScript==
(function() {