Skip to content

Instantly share code, notes, and snippets.

@deathcap
deathcap / forge.js
Last active January 18, 2016 23:15 — forked from overjt/forge.js
Server-list-ping feature of Minecraft Forge servers.
var net = require("net");
function makeBuf(server, port) {
var bufSize = 7 + server.length;
var buffer = new Buffer(bufSize);
buffer.writeUInt8(bufSize - 1, 0);
buffer.writeUInt8(0, 1);
buffer.writeUInt8(5, 2);
buffer.writeUInt8(server.length, 3);
@deathcap
deathcap / gist:218eafd20e8542b37598
Created December 30, 2015 10:04
voxelmetaverse 08791671 npm list
https://github.com/deathcap/voxelmetaverse/issues/52
$ npm list
[email protected] voxel/voxelmetaverse
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
package particletest;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Effect;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.material.MaterialData;
@deathcap
deathcap / gist:0d9aa6e228d6c29c12fd
Created April 8, 2015 05:37
Glowstone + Forge Mod Loader test 2
https://github.com/deathcap/GlowstonePlusPlus/pull/1
+ java -mx2G -jar target/glowstone++-1.8.3-SNAPSHOT.jar
2015-04-07 22:34:13,337 ERROR Error processing element Queue: CLASS_NOT_FOUND
2015-04-07 22:34:13,365 ERROR Unable to locate appender ServerGuiConsole for logger
2015-04-07 22:34:13,365 ERROR Unable to locate appender ServerGuiConsole for logger net.minecraft
2015-04-07 22:34:13,365 ERROR Unable to locate appender ServerGuiConsole for logger com.mojang
[22:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[22:34:13] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[22:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
@deathcap
deathcap / gist:ba04a4d4e9ebd13214c4
Created April 5, 2015 05:21
Glowstone + Forge Mod Loader version 8.0.71.1061 test 1
experiment integrating https://github.com/MinecraftForge/FML into https://github.com/GlowstoneMC/Glowstone
https://github.com/deathcap/Glowstone/tree/fml
https://dl.dropboxusercontent.com/u/258156216/java/glowstone-0.0.1-SNAPSHOT-fmltest1.jar
progress:
LaunchWrapper working, mods scanned
No events, most calls stubbed
$ java -jar target/glowstone-0.0.1-SNAPSHOT.jar
2015-04-04 22:14:52,454 ERROR Error processing element Queue: CLASS_NOT_FOUND
@deathcap
deathcap / gist:11d422f488c41a1dec91
Created April 4, 2015 04:05
Building the Glowstone project with Maven (15 seconds) vs Gradle (26 seconds)
https://github.com/deathcap/Glowstone/commits/maven
Glowstone $ time ./gradlew
:clean
:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:processResources
:classes
:jar
@deathcap
deathcap / gist:6efd375e010a005040f8
Last active August 29, 2015 14:16
Burger update for MC 1.8.3 test 2
as of https://github.com/deathcap/Burger/tree/b55f1c4afc24fe3f2bca5058f1d299bfe58d5592
from https://github.com/deathcap/Burger/tree/mc18
Burger $ python munch.py --download
identify classes: {'block.superclass': 'afi', 'biome.superclass': 'adz', 'item.superclass': 'zx', 'entity.list': 'pn', 'nethandler.client': 'bcy', 'nethandler.server': 'lo', 'recipe.superclass': 'abu'}
[
{
"achievements": {
"acquireIron": {
"desc": "Smelt an iron ingot",
https://github.com/deathcap/voxelmetaverse/issues/52
voxelmetaverse $ npm install
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
> [email protected] install /private/tmp/voxelmetaverse/node_modules/watchify/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
SOLINK_MODULE(target) Release/.node
@deathcap
deathcap / gist:9a1e130080df68509035
Last active August 29, 2015 14:15
Licenses in voxel.js related modules & deps
607 MIT
71 BSD
42 Unknown license - in most (65%) cases, is actually MIT (see below)
12 ISC
4 Apache
4 other
1 WTFPL
1 GPL/MIT
@deathcap
deathcap / gist:8e00234b360f2dcf4ddb
Created February 23, 2015 03:07
npm list 3044 modules
$ npm list
[email protected] /Users/admin/games/voxeljs/voxpopuli
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]