Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
@shoghicp
shoghicp / MagicCarpet.php
Last active December 15, 2015 17:59
MagicCarpet plugin
<?php
/*
__PocketMine Plugin__
name=MagicCarpet
description=MagicCarpet is a plugin that allows the user to fly away on a carpet made of glass (port)
version=0.1.2
author=shoghicp
class=MagicCarpet
apiversion=5,6
@shoghicp
shoghicp / Questions.md
Last active December 15, 2015 18:09
Questions for the livestream ;) http://www.twitch.tv/jbernhardsson

MCPE 0.7.0 Livestream Questions & Answers

Other people questions

Buckets?

  • Answer: We'll like to implement that for this update

Redstone?

  • Answer: In the future
@shoghicp
shoghicp / MCHead.php
Last active May 6, 2016 06:55
Draw a Canvas of a Minecraft skin, with the hat.
<?php
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
dnl +----------------------------------------------------------------------+
dnl | PHP Version 5 |
dnl +----------------------------------------------------------------------+
dnl | Copyrght (C) 1997-2013 The PHP Group |
dnl +----------------------------------------------------------------------+
dnl | This source file is subject to version 3.01 of the PHP license, |
dnl | that is bundled with this package in the file LICENSE, and is |
dnl | available through the world-wide-web at the following url: |
dnl | http://www.php.net/license/3_01.txt |
dnl | If you did not receive a copy of the PHP license and are unable to |
@shoghicp
shoghicp / 0.6.1.txt
Created May 17, 2013 19:55
Minecraft: Pocket Edition 0.6.1 protocol
# Minecraft PE v0.6.1 alpha Protocol #9
# 49 identified Packets
[C ==> S] 0x82 LoginPacket (String, int, int)
[C <== S] 0x83 LoginStatusPacket (int)
[C ==> S] 0x84 ReadyPacket (bits[8])
[C <== S] 0x85 MessagePacket (String)
[C <== S] 0x86 SetTimePacket (long)
[C <== S] 0x87 StartGamePacket (long, int, int, int, float, float, float)
[C <== S] 0x88 AddMobPacket (int, int, float, float, float, byte, byte, Metadata)
@shoghicp
shoghicp / 0.7.0.txt
Last active December 19, 2022 23:45
Minecraft: Pocket Edition 0.7.0 & 0.7.1 protocol
# Minecraft PE 0.7.0 & 0.7.1 alpha Protocol #11
# 50 identified Packets
[C ==> S] 0x82 LoginPacket (String, int, int, int, String)
[C <== S] 0x83 LoginStatusPacket (int)
[C ==> S] 0x84 ReadyPacket (bits[8])
[C <=> S] 0x85 MessagePacket (String)
[C <== S] 0x86 SetTimePacket (int)
[C <== S] 0x87 StartGamePacket (int, int, int, int, float, float, float)
[C <== S] 0x88 AddMobPacket (int, int, float, float, float, byte, byte, Metadata)

DEFLATEPacket mixed protocol encapsulation for Minecraft: Pocket Edition

This protocol aims to use less bandwidth sending big packets / chunks of smaller packets compressed using DEFLATE. It works encapsulating raw packets into this protocol, without modifying them. It follows a mixed approach, letting normal packets work and handling compressed packet seamlessly. Both parties must support this protocol, so a Handshake system exists.

All numbers are Big-endian

Packet Structure

| Packet ID | Field Name | Type | Notes |

@shoghicp
shoghicp / RealmsData.md
Last active December 18, 2015 14:48
Realms Encrypted LoginPacket 0x82 data
  • Key: GSZXECWSSFdM8GaTYUaz3g==
  • Name: Intyre
  • clientId: 1282335688
  • Data: Qsz0XPR0zThM5i0MYPKA0GZzYRd9dPjpULSS0jUbZmA=
  • Decrypted Data (AES-128 ECB):
0000  00 00 00 00 00 00 00 40  00 06 49 6e 74 79 72 65   .......@..Intyre
0010  6a c5 11 df a3 85 35 ab  4a 64 8a 7f 39 00 26 bd   j.....5.Jd..9.&.

@shoghicp
shoghicp / Translations.php
Last active September 28, 2017 20:13
PocketMine Realms login translations
<?php
/*
UTF-8 encoded.
UPPERCASE words are replaced with data, do NOT modify that, only move it to the correct place.
Words like PocketMine, Mojang, Minecraft, Pocket Edition and Mine Pocket shouldn't be translated.
Don't modify HTML tags (exception: text inside the tags and NOT in UPPERCASE)
Translations completed: English (shoghicp), Spanish (shoghicp), Standard Chinese (HAZ_ljyloo), Dutch (Intyre), Japanese (Omattyao), Russian (Alexey Egoshin), French (symonium), German (Xmoe)
Translations being publicly checked: Vietnamese (Phuocpeter19), Italian (ceppopipc1999), Serbian (xXStefoXx)
Translations in progress: Korean (bigswbigsw), Irish (A9_0Z), Turkish