Skip to content

Instantly share code, notes, and snippets.

@jocopa3
jocopa3 / CommandRequest.js
Created February 11, 2017 18:46
MCPE/Win10 WebSocket JSON Messages
// 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,
// 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)
<?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>
@jocopa3
jocopa3 / BiomesList.txt
Last active December 12, 2016 01:01
All biomes and some additional biome data as found in the 0.17.0.1 binary
============ Biomes ============
List of all biomes, biome Id's, and biome colors.
Id Name Technical Name Color Unknown Data
0 Ocean ocean 0x000070
1 Plains plains 0x8DB360
2 Desert desert 0xFA9418
3 Extreme Hills extremeHills 0x606060
@jocopa3
jocopa3 / Burning Block Values.txt
Created December 7, 2016 18:34
All fire encouragement and flammability values found in the FireBlock constructor in MCPE 1.0.0
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
@jocopa3
jocopa3 / MCPE_1.1.0.1_Ids.txt
Last active December 20, 2023 07:15
List of all Blocks/Items/Entity Id's in MCPE/Win10 1.1.0.1 and EDU Edition
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
@jocopa3
jocopa3 / components.txt
Created October 24, 2016 02:21
Components from 0.16.0 B4
Behaviors:
minecraft:behavior.avoid_mob_type
minecraft:behavior.beg
minecraft:behavior.break_door
minecraft:behavior.breed
minecraft:behavior.controlled_by_player
minecraft:behavior.defend_village_target
minecraft:behavior.door_interact
minecraft:behavior.eat_block
minecraft:behavior.enderman_leave_block
@jocopa3
jocopa3 / Options.cpp
Last active May 9, 2022 01:17
Minecraft Win10 0.16.0 Options Struct
class Options;
class String;
class GamePadRemappingLayout;
class KeyboardRemappingLayout;
class StringPtr;
enum InputMode {
Unknown = 0, // Not used
Mouse = 1,
Touch = 2,
@jocopa3
jocopa3 / MinecraftOptions.cpp
Last active October 13, 2016 16:48
Options Class for MCW10 as of 0.15.10.
class String
{
public:
union {
char charBuffer[16];
char* charPtr;
};
size_t Length;
size_t MaxCapacity;
// Class wich emulates MCW10 32-byte strings
// Super basic
class String
{
union {
char charBuffer[16];
char* charPtr;
};
size_t Length = 0;