Skip to content

Instantly share code, notes, and snippets.

View jojoe77777's full-sized avatar
🤔

jojoe77777 jojoe77777

🤔
View GitHub Profile
@shoghicp
shoghicp / run.php
Last active September 26, 2020 10:33
Header Extractor - Usage: php run.php --input libminecraftpe.so --output headers/ --pointer-size 4 --asm
<?php
/**
* Minecraft: Pocket Edition header extractor
*
* This tool needs objdump (and objdump-multiarch + arm variants) installed on the current system
*
*/
const VERSION = "0.0.1";
@dktapps
dktapps / pm-0.16-metadata-changes.md
Created November 5, 2016 21:01
Entity metadata changes in 0.16. PocketMine only, does not account for spoon changes.
Type Constant name Status Details
Property Ageable::DATA_AGEABLE_FLAGS Removed Ageable flags (Entity::DATA_FLAG_BABY) are now set on the generic entity status (Entity::DATA_FLAGS)
Property Entity::DATA_AIR Changed Value changed (1 -> 7) and default changed (300 -> 400)
Property Entity::DATA_FLAGS Changed Type changed (byte -> long)
Property Entity::DATA_LEAD_EID Changed/Removed Value changed (23 -> 38) and renamed with clearer name (DATA_LEAD_HOLDER_EID).
Property Entity::DATA_NAMETAG Changed Value changed (2 -> 4)
Property Entity::DATA_NO_AI Changed/Removed Changed to a data flag (DATA_FLAG_NO_AI)
Property Entity::DATA_POTION_AMBIENT Changed Value changed (8 -> 9)
Property Entity::DATA_POTION_COLOR Changed Value changed (7 -> 8)
@moreguppy
moreguppy / droplet-cheatsheet.md
Last active November 30, 2016 16:30
Droplet Cheatsheet
@Semx11
Semx11 / hosts.json
Last active November 29, 2018 10:50
Autotip
{
"hosts": [
{
"id": "download",
"url": "autotip.pro/download",
"enabled": true
},
{
"id": "totip",
"url": "http://skywars.info/test/totip.php",
@dktapps
dktapps / TransferPlugin.php
Created February 1, 2017 13:18
Proof of concept transfer plugin for PocketMine with MCPE 1.0.3
<?php
/**
* @name TransferPlugin
* @main dktapps\TransferPlugin\Main
* @api 3.0.0-ALPHA3
* @version 1.0.0
* @description Proof-of-concept for server transfer in MCPE 1.0.3
* @author dktapps
*/
@agentsim
agentsim / highsierra_bootable.sh
Created June 10, 2017 02:23
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@superhero
superhero / git.md
Last active August 8, 2017 15:18
Git commands...

remove last commit from git and github

git push -f origin HEAD^:master

@dktapps
dktapps / run.php
Last active February 15, 2023 04:52
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
{
"geometry.humanoid": {
"bones": [
{
"name": "body",
"pivot": [ 0.0, 24.0, 0.0 ],
"cubes": [
{
"origin": [ -4.0, 12.0, -2.0 ],
"size": [ 8, 12, 4 ],
@Tomcc
Tomcc / blockstate_protocol.md
Last active April 16, 2025 01:52
Block Changes in Beta 1.2.13

Block Storage & Network Protocol Changes

Paletted chunks & removing BlockIDs brings a few big changes to how blocks are represented. In Bedrock, Blocks used to be represented by their 8 bit ID and 4 bit data; this means that we can only represent 256 blocks and 16 variants for each block. As it happens we ran out of IDs in Update Aquatic, so we had to do something about it :)

After this change, we can represent infinite types of Blocks and infinite BlockStates, just like in Java. BlockStates are what is sent over the network as they are roughly equivalent to the old ID+data information, eg. they're all the information attached to a block.

BlockStates are serialized in two ways:

PersistentID: a PersistentID is a NBT tag containing the BlockState name and its variant number; for example