Skip to content

Instantly share code, notes, and snippets.

Niclas Olofsson NiclasOlofsson

  • Malmö, Sweden
Block or report user

Report or block NiclasOlofsson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ActionHealthManager.cs
public class ActionHealthManager : HealthManager
{
private readonly Action<Entity> _action;
public ActionHealthManager(Entity entity, Action<Entity> action) : base(entity)
{
_action = action;
}
public override void TakeHit(Entity source, int damage = 1, DamageCause cause = DamageCause.Unknown)
View default.config
#DO NOT REMOVE THIS LINE - MiNET Config
#ip=0.0.0.0
#port=19134
# Throttling
MaxNumberOfPlayers=10000
#MaxNumberOfConcurrentConnects=1
#InactivityTimeout=2000
#UseEncryption=false
View gist:f5501b2fdaa710c5ed2d118e68208303
"gamerules": {
"drowningdamage": {
"Value": true,
"Name": "drowningdamage"
},
"dotiledrops": {
"Value": true,
"Name": "dotiledrops"
},
"commandblockoutput": {
View gist:2a7933146f0e29474f87683b32c62847
public override void OnTick()
{
HungerManager.OnTick();
base.OnTick();
if (IsGliding)
{
if (CurrentSpeed > 30)
@NiclasOlofsson
NiclasOlofsson / CooldownTimer.cs
Created Mar 5, 2017
A cooldown timer for MiNET plugins.
View CooldownTimer.cs
using System;
namespace MiNET.GameFramework.Plugin.Utils
{
public class CooldownTimer
{
public TimeSpan TimeSpan { get; private set; }
public DateTime ClearingTime { get; private set; }
View map trace
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 ¡Âü.¡Âü.܁?ø.Ã
View Dragon data
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
@NiclasOlofsson
NiclasOlofsson / helpcommand.js
Created Oct 29, 2016
FULL COMMAND /help EXAMPLE WITH VANILLA
View helpcommand.js
{
"commandName": "help",
"commandOverload": "byPage",
"unkown1": 0,
"unkown2": 0,
"unkown4": false,
"unkown5": -1,
"commandJson": "null\n",
"unkown6": "null\n",
"unkown7": 0,
@NiclasOlofsson
NiclasOlofsson / Wither trace
Created Oct 18, 2016
Trace of wither fight, more or less complete, but missing parts ..
View Wither trace
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
View commands.js
2016-09-20 18:59:59,577 DEBUG MiNET.Client.MiNetClient - Command JSON:
{
"ability": {
"versions": [
{
"description": "commands.ability.description",
"overloads": {
"default": {
"input": {
"parameters": [
You can’t perform that action at this time.