Skip to content

Instantly share code, notes, and snippets.

View mcaddon.YAML-tmLanguage
# [PackageDev] target_format: plist, ext: tmLanguage
name: Minecraft Addon
scopeName: source.mcaddon
fileTypes: []
uuid: a0c7e4ae-079d-4d09-9b1d-5379c586f67a
patterns:
- include: '#value'
repository:
@jocopa3
jocopa3 / client-only-test.json
Last active Dec 10, 2019
Debug command files from 0.15.90.0
View client-only-test.json
{
"aigoals": {
"versions": [
{
"description": "Enables | Disables Drawing AI Goals",
"permission": "any",
"overloads": {
"default": {
"input": {
@jocopa3
jocopa3 / PaletteArray.java
Last active Mar 17, 2017
Compresses arrays of a few repeating random values using a variation on Palette Mapping.
View PaletteArray.java
/*
* I release this code into the public domain.
*/
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
@jocopa3
jocopa3 / client-only.json
Created Mar 6, 2017
Command files from MCPE/Win10 1.0.3
View client-only.json
{
"closewebsocket": {
"versions": [
{
"description": "commands.closewebsocket.description",
"permission": "any",
"is_hidden": true,
"overloads": {
"default": {
@jocopa3
jocopa3 / JScriptAnalyzer.html
Last active Mar 2, 2017
Rudimentary webpage which can help deobfuscate malicious JScript files. It reports the URLS accessed, Files accessed, and ActiveX API calls made.
View JScriptAnalyzer.html
<html><head>
<script type="text/javascript">
var URLSRequested = [];
var FilesAccessed = [];
var APICalls = [];
// If true, the analyzer displays an alert box whenever the script calls WScript.echo
// If false, the analyzer prints the echo message to console
var AlertEchos = false;
@jocopa3
jocopa3 / ChatListener.java
Created Feb 20, 2017
Example of a global chat room listener for Minecraft using the PEWS API
View ChatListener.java
/*
* This is a basic example of a global chatroom for Minecraft PE/Win10 made
* using the Pocket Edition WebSocket API.
*/
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Collection;
View SayCommandExample.js
{
"body": {
"input": {
"message": "Hello World"
},
"origin": {
"type": "player"
},
"name": "say",
"version": 1,
@jocopa3
jocopa3 / CommandRequest.js
Created Feb 11, 2017
MCPE/Win10 WebSocket JSON Messages
View CommandRequest.js
// For more information about available commands, look at the commands/standard.json file in the game's assets.
{
"body": {
"input": {}, // Command inputs go here
"origin": {
"type": "player" // Where the command originates from
},
"name": "name-of-command", // Command name goes here (i.e. for /say, enter "say")
"version": 1,
View EventSubscribe.js
// To subscribe to an event, pass this JSON text to the client through the WebSocket:
{
"body": {
"eventName": "NameOfEvent" // Replace with an event name listed below
},
"header": {
"requestId": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx", // UUID
"messagePurpose": "subscribe",
"version": 1, // Protocol version (currently 1 as-of 1.0.2)
View Data Value Syntax Highlighter (TextMate).tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array/>
<key>name</key>
<string>Data Values List</string>
<key>patterns</key>
<array>
You can’t perform that action at this time.