This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
public class CalculatorGameSolver { | |
// Given a single action input (e.x. "1=>5"), returns the appropriate action for that input | |
public static Action parseAction(String input) { | |
if (input.matches("\\d+")) { | |
// e.x.: 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For advanced users, a syntax highlighter for sublime text and | |
textmate which makes reading the list easier can be found here: | |
https://gist.github.com/jocopa3/e4a35921e4f978572e7f45360d231f37 | |
============ Blocks ============ | |
All blocks as found in the 1.1.0.0 Block::initBlocks function. | |
Block names are the same names used in the /give command. | |
Name Id Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": { | |
"input": { | |
"message": "Hello World" | |
}, | |
"origin": { | |
"type": "player" | |
}, | |
"name": "say", | |
"version": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```ansi | |
[1;37;45m Discord ANSI Chart [0m | |
[1mEscape Char:[0m \u001B, aka: | |
[1mFormat :[0m ESC[1;31;40mBold Red Text on TealESC[0m | |
[1mExample :[0m [1;31;40mBold Red Text on Teal[0m | |
Code │ Regular: 0 │ Bold: 1 │ Underline: 4 | |
─────┼────────────┼────────────┼───────────── | |
30 │ [0;30mGray [0m │ [1;30mGray [0m │ [4;30mGray [0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Options; | |
class String; | |
class GamePadRemappingLayout; | |
class KeyboardRemappingLayout; | |
class StringPtr; | |
enum InputMode { | |
Unknown = 0, // Not used | |
Mouse = 1, | |
Touch = 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sun.misc.Unsafe; | |
import java.lang.reflect.Field; | |
public class BooleanMagic { | |
private static void doImpossibleBool() { | |
boolean impossible = ImpossibleBool.IMPOSSIBLE_BOOL; | |
if (impossible == true) { | |
System.out.println("Value was true"); | |
} else if (impossible == false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [PackageDev] target_format: plist, ext: tmLanguage | |
name: Minecraft Addon | |
scopeName: source.mcaddon | |
fileTypes: [] | |
uuid: a0c7e4ae-079d-4d09-9b1d-5379c586f67a | |
patterns: | |
- include: '#value' | |
repository: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Block Name Encouragement Flammability | |
WoodPlanks 5 20 | |
DoubleWoodenSlab 5 20 | |
WoodenSlab 5 20 | |
Fence 5 20 | |
FenceGateOak 5 20 | |
SpuceFenceGate 5 20 | |
BirchFenceGate 5 20 | |
JungleFenceGate 5 20 |
NewerOlder