Skip to content

Instantly share code, notes, and snippets.

View jojoe77777's full-sized avatar
🤔

jojoe77777 jojoe77777

🤔
View GitHub Profile
@shoghicp
shoghicp / Comparator.php
Last active July 26, 2020 21:36
Minecraft PE .lst Information Extractor to obtain Protocol Information and Compare Versions
<?php
define("COMPARATOR_VERSION", "0.1");
ini_set("memory_limit", "512M");
$node1 = json_decode(@file_get_contents($argv[1]), true);
if($node1 == ""){
echo "Provide a valid json file produced by the Extractor".PHP_EOL;
exit(1);
}
$node2 = json_decode(@file_get_contents($argv[2]), true);
@inertia186
inertia186 / planet-minecraft.sh
Created March 20, 2013 23:18
[Minecraft, SMP] Planet Minecraft
#!/bin/bash
MC="/Users/steve/Minecraft"
LOG="$MC/server.log"
MESSAGE="We are not falling for it. This is not the server you are looking for. Move along."
for player in `tail -50 $LOG | grep -i "i'm\|im\|i am" | grep -i from | grep -i planet | grep -i minecraft | cut -f 4 -d " " | cut -f 2 -d \< | cut -f 1 -d \> | sort | uniq`
do
if [ -n "`tail -100000 $LOG | grep "Kicked $player from the game: '$MESSAGE'"`" ]; then
@shoghicp
shoghicp / MCHead.php
Last active May 6, 2016 06:55
Draw a Canvas of a Minecraft skin, with the hat.
<?php
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@shoghicp
shoghicp / 0.9.0_stream.md
Last active March 15, 2017 04:36
Minecraft Pocket Edition 21 million Panel
@TruDan
TruDan / PC2PE.py
Last active May 28, 2019 18:37
MCEdit Filter to convert PC worlds to PE. Note: This does NOT convert the world to MCRegion format.
displayName = "PC -> PE"
replaceBlocks = {
28: 0,
29: 0,
33: 0,
34: 0,
55: 0,
69: 0,
70: 0,
<?php
namespace shoghicp\MinecraftSimulator\task;
use pocketmine\Player;
use pocketmine\scheduler\PluginTask;
use shoghicp\MinecraftSimulator\Loader;
class MarqueeTask extends PluginTask{
@iksaku
iksaku / VirtualInventories.php
Created June 11, 2015 21:41
Way to open virtual custom inventories in MCPE :D (Work in progress...) Special thanks to @alejandroliu and @PEMapModder for a previous research :3
<?php
/**
* @name VirtualInventories
* @main VirtualInventories\Loader
* @version 1.0.0
* @api 1.12.0
* @description Way to open virtual custom inventories
* @author iksaku
*/
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 6, 2024 04:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@msjyoo
msjyoo / README.md
Created July 24, 2015 12:55
A quick gist because this wasn't documented anywher else. How to render and make sense of the MCPE / PocketMine Skin Data

How to use

Basically, this file will take in a binary file of skin.dat and export 3 files: image.png is the skin file, face.png is the face in original size, faceLarge.png is the face in 512x512.

Only supports 64x64 skins for now. If you want 32x64 make appropriate checks.

The PocketMine's (MCPE's) Skin Data Format is in RGBA format, when represented as hex strings they are a stream of 8 characters. Each two characters represent the R, G, B A, and this continues until you have enough data for either a 32x64 image or a 64x64 image. You can also check whether 32x or 64x with the isSlimSkin() flag on the Player object.

Note that A only has 2 values: 0 and 255. They are inverted in the script because PHP.

@shoghicp
shoghicp / commands.md
Last active October 29, 2023 18:16
Some interesting commands to play with the new NBT support for items.

Items with custom name

give sho stick 1 {display:{Name:"§r§6§lNormal stick"}}

Items with enchantments

give sho gold_sword 1 {ench:[{id:9s,lvl:2s}]}