Skip to content

Instantly share code, notes, and snippets.

View supercrafter333's full-sized avatar
🇺🇦
#PrayForUkraine #StayWithUkraine

Christoph R. supercrafter333

🇺🇦
#PrayForUkraine #StayWithUkraine
View GitHub Profile
@DavyCraft648
DavyCraft648 / RegisterLegacyMappings.php
Last active July 20, 2022 20:38
Register legacy mappings from pm4
<?php
namespace DavyCraft648\RegisterLegacyMappings;
use pocketmine\data\bedrock\block\upgrade\LegacyBlockIdToStringIdMap;
use pocketmine\network\mcpe\convert\RuntimeBlockMapping;
use pocketmine\plugin\PluginBase;
use pocketmine\world\format\io\GlobalBlockStateHandlers;
use function array_flip;
@shoghicp
shoghicp / MyPlugin.php
Created May 9, 2015 20:16
Example of new plugin format aimed for easy scripting.
<?php
/**
* This file is an example of a compressed plaintext plugin format for PocketMine
* It's aimed towards easy scripting, but not for normal plugin development.
*
* This kind of plugin won't be able to embed/load resources,
* nor have access to some features like fast permission/command integration.
*
* This first comment is used to define the properties like on plugin.yml,