Skip to content

Instantly share code, notes, and snippets.

View dktapps's full-sized avatar

Dylan T. dktapps

View GitHub Profile
@shoghicp
shoghicp / Rules.md
Last active November 23, 2020 21:53
Rules of channels #mcpedevs and #pocketmine on irc.freenode.net
@fsmv
fsmv / miniupnpcTest.c
Created September 12, 2014 19:47
Miniupnpc Port Forwarding Example
#include <stdio.h>
#include <arpa/inet.h> //INET6_ADDRSTRLEN
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>
int main(int argc, char *argv[]) {
int error = 0;
//get a list of upnp devices (asks on the broadcast address and returns the responses)
struct UPNPDev *upnp_dev = upnpDiscover(1000, //timeout in milliseconds
NULL, //multicast address, default = "239.255.255.250"
#!/bin/bash
#PocketMine automatic analysis tool
echo "[*] PocketMine automatic analysis tool"
cat > ttyecho.c <<'TTYECHO'
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
@jojoe77777
jojoe77777 / metadata.md
Last active February 27, 2019 03:20
Helpful metadata information
ID Description Type
1 Air Short
2 Name tag String
3 Name visibility Byte
4 Silent Byte
7 Potion bubbles Int
12 Baby zombies Byte
14 Baby animals, wolf data (angry) Byte
16 Sheep/Villager type, also slime size, and pig saddle Byte
@NiclasOlofsson
NiclasOlofsson / commands.js
Created September 20, 2016 17:01
MCPE Commands JSON
2016-09-20 18:59:59,577 DEBUG MiNET.Client.MiNetClient - Command JSON:
{
"ability": {
"versions": [
{
"description": "commands.ability.description",
"overloads": {
"default": {
"input": {
"parameters": [
@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
@NiclasOlofsson
NiclasOlofsson / helpcommand.js
Created October 29, 2016 16:56
FULL COMMAND /help EXAMPLE WITH VANILLA
{
"commandName": "help",
"commandOverload": "byPage",
"unkown1": 0,
"unkown2": 0,
"unkown4": false,
"unkown5": -1,
"commandJson": "null\n",
"unkown6": "null\n",
"unkown7": 0,
Metadata id Object Description Type Checked
1 Wolf Tail angle int
Boat Health int
Minecart Health int
2 Entity Variant int 👍
FallingBlock fall damage int 👍
Slime size int 👍
3 Entity Color (for sheep in particular) byte 👍
4 Entity name string 👍
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - > Receive: 14 (0x0e): McpeAddEntity
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Entity ID: -51539607504
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Runtime Entity ID: 56
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Entity Type: 2869 - 0xb35
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Entity Family: 11 - 0x0b
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Entity Type ID: 53 - 0x35 EnderDragon
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - X: 57.99719
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Y: 4.06
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Z: 9.940071
2016-11-12 13:48:08,026 DEBUG MiNET.Client.MiNetClient - Yaw: 0
// 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)