Skip to content

Instantly share code, notes, and snippets.

View inxomnyaa's full-sized avatar
🐺
Working on WolvesFortress MCBE RPG Server

inxomnyaa inxomnyaa

🐺
Working on WolvesFortress MCBE RPG Server
View GitHub Profile
@inxomnyaa
inxomnyaa / better-github-profile-status.css
Last active January 14, 2022 09:59
GitHub better profile status
/* ==UserStyle==
@name GitHub better profile status
@version 1.0.0
@description Puts the status below the profile picture and makes it always show
@namespace GitHub
@author XenialDan
@homepageURL https://gist.github.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1
@supportURL https://gist.github.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1
@updateURL https://gist.githubusercontent.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1/raw/1a78e232ab96ecde110eea0fca5e566331533a2a/better-github-profile-status.css
==/UserStyle== */
@inxomnyaa
inxomnyaa / clean-deepl.css
Created December 18, 2021 18:34
Clean up deepl, works great with FireFox MultiTranslate addon
.dl_body {
min-height: 100%;
}
.dl_body > * {
display: none !important;
}
.dl_body > .dl_translator_page_container {
display: flex !important;
height: 100%;
width: 100%;
@inxomnyaa
inxomnyaa / HwndHostEx.cs
Created August 9, 2021 02:25 — forked from itsho/HwndHostEx.cs
Hosting an app inside a WPF app (System.Windows.Interop)
using System;
using System.Runtime.InteropServices;
using System.Windows.Interop;
namespace HostingAppTest
{
// based on https://stackoverflow.com/q/30186930/426315
public class HwndHostEx : HwndHost
{
private readonly IntPtr _childHandle;
@inxomnyaa
inxomnyaa / autounping.js
Created April 22, 2021 22:48
Disable ping on reply in Discord (PWA)
// ==UserScript==
// @name autounping
// @namespace Violentmonkey Scripts
// @match *://discord.com/*
// @grant none
// @version 1.1
// @author -
// @description 4/21/2021, 6:00:42 PM
// @noframes
// ==/UserScript==
@inxomnyaa
inxomnyaa / NPC tags
Created December 13, 2020 08:48
SNBT of NPC in MC10 1.16.200 vs MCEE
"":{Armor:[{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b}],Attributes:[{Base:0f,Current:0f,DefaultMax:1024f,DefaultMin:-1024f,Max:1024f,Min:-1024f,Name:"minecraft:luck"},{Base:20f,Current:20f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:health"},{Base:0f,Current:0f,DefaultMax:16f,DefaultMin:0f,Max:16f,Min:0f,Name:"minecraft:absorption"},{Base:0f,Current:0f,DefaultMax:1f,DefaultMin:0f,Max:1f,Min:0f,Name:"minecraft:knockback_resistance"},{Base:0,5f,Current:0,5f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:movement"},{Base:0,02f,Current:0,02f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:underwater_movement"},{Base:0,02f,Cur

This tool is used to generate the data found in BedrockData.

Usage

Place the script in the root of a PocketMine-MP source code repository. Make sure the composer autoloader has been appropriately generated.

php decoder.php input_file.txt

Input file

@inxomnyaa
inxomnyaa / big oak tree growth.md
Created April 8, 2020 08:48 — forked from Earthcomputer/big oak tree growth.md
A description of the big oak tree growth algorithm in Minecraft

Big Oak Tree Growth Algorithm

Outline

A big oak tree is made up of a main trunk and multiple branches. A "branch" always contains leaves, but may not always contain logs.

Parameters

  • heightLimit: The actual height of the tree, including leaf blocks at the top (between 5 and 16)
  • trunkHeight: The height of the trunk
  • leafDistanceLimit: The distance from a log that leaves can generate, set to 4 for sapling growth, though appears to be set to 5 for natural growth for some reason
@inxomnyaa
inxomnyaa / pmmp_glyph_send.php
Created March 29, 2020 22:38
PocketMine-MP: print all characters/symbols inside a font image file (glyph_XX.png)
<?php
const GRID = 16;//16 * 16 icons
$filename = basename("glyph_E1",".png");
$startChar = hexdec(substr($filename, strrpos($filename, "_")+1)."00");
$i=0;
do{
$x = $i % GRID;
$z = ($i - ($i % GRID)) / GRID;
$ci = $startChar + $i;//char index
$char = mb_chr($ci);
My folder structure:
PM
- virions
-- virion.phar
- pmmp
-- <minecraft_version> i.e. 1.14
--- pmmp.phar
I added the folders "1.14" and "virions" to "External Libraries" on the bottom of the "Project" list/sidebar
right click "PHP" and choose "Include path"
This file has been truncated, but you can view the full file.
// File automatically generated by MinecraftSymbols
// Address : 04f42008
extern "C"
{
void* GImGui;
}
// Address : 008c6b4d
extern "C"