Skip to content

Instantly share code, notes, and snippets.

View NiclasOlofsson's full-sized avatar

Niclas Olofsson NiclasOlofsson

View GitHub Profile
@NiclasOlofsson
NiclasOlofsson / pokemon.json
Last active July 17, 2016 11:27
Pokemon GO protocol
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@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": [
@NiclasOlofsson
NiclasOlofsson / Wither trace
Created October 18, 2016 15:38
Trace of wither fight, more or less complete, but missing parts ..
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - > Receive: 14: McpeAddEntity (0x0e)
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Entity ID: 566935683067
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Runtime Entity ID: 5
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - Entity Type: 68404
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - X: 47.82257
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - Y: 9.062544
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - Z: 6.522105
2016-10-16 22:51:18,592 DEBUG MiNET.Client.MiNetClient - Yaw: 21.11277
@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,
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
42 f1 ff ff ff 9f 34 06 00 01 10 32 56 00 ff ff Bñÿÿÿ?4....2V.ÿÿ
ff ff fe 01 80 02 02 00 00 00 00 00 00 00 00 00 ÿÿþ.?...........
00 00 00 00 00 00 00 00 00 00 83 d1 ba fa 0f 00 ..........?Ѻú..
83 d1 ba fa 0f 00 83 d1 ba fa 0f 83 d1 ba fa 0f ?Ѻú..?Ѻú.?Ѻú.
83 d1 ba fa 0f 83 d1 ba fa 0f 83 d1 ba fa 0f 83 ?Ѻú.?Ѻú.?Ѻú.?
d1 ba fa 0f 83 d1 ba fa 0f 83 d1 ba fa 0f 83 d1 Ѻú.?Ѻú.?Ѻú.?Ñ
ba fa 0f 83 d1 ba fa 0f 83 d1 ba fa 0f 83 d1 ba ºú.?Ѻú.?Ѻú.?Ѻ
fa 0f 83 d1 ba fa 0f 90 a1 c2 fc 0f dc 81 80 f8 ú.?Ѻú.¡Âü.܁?ø
0f 90 a1 c2 fc 0f 90 a1 c2 fc 0f 83 d1 ba fa 0f .¡Âü.¡Âü.?Ѻú.
90 a1 c2 fc 0f 90 a1 c2 fc 0f dc 81 80 f8 0f c3 ¡Âü.¡Âü.܁?ø.Ã
@NiclasOlofsson
NiclasOlofsson / CooldownTimer.cs
Created March 5, 2017 20:50
A cooldown timer for MiNET plugins.
using System;
namespace MiNET.GameFramework.Plugin.Utils
{
public class CooldownTimer
{
public TimeSpan TimeSpan { get; private set; }
public DateTime ClearingTime { get; private set; }
@NiclasOlofsson
NiclasOlofsson / gist:2a7933146f0e29474f87683b32c62847
Created March 29, 2017 17:28
Elytra extreme Player.OnTick code
public override void OnTick()
{
HungerManager.OnTick();
base.OnTick();
if (IsGliding)
{
if (CurrentSpeed > 30)
"gamerules": {
"drowningdamage": {
"Value": true,
"Name": "drowningdamage"
},
"dotiledrops": {
"Value": true,
"Name": "dotiledrops"
},
"commandblockoutput": {
#DO NOT REMOVE THIS LINE - MiNET Config
#ip=0.0.0.0
#port=19134
# Throttling
MaxNumberOfPlayers=10000
#MaxNumberOfConcurrentConnects=1
#InactivityTimeout=2000
#UseEncryption=false