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
/**
* iMessage-style loader
*/
@keyframes fade {
to { background: rgba(0,0,0,.1); }
}
.progress,
.progress:before,
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"
@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

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 / 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;