Skip to content

Instantly share code, notes, and snippets.

View 0xilly's full-sized avatar
🏳️‍⚧️
Working In SPACE

A Anderson 0xilly

🏳️‍⚧️
Working In SPACE
View GitHub Profile
String getJsonFilePath(World world) {
String levelName = world.getWorldInfo().getWorldName();
try {
String subDirectory = ( MinecraftServer.getServer() instanceof DedicatedServer )? "" : "saves/";
String directory = subDirectory + levelName + "/stored_runes/";
new File(directory).mkdirs();//ensure the folder exists
String fileName = directory + shortClassName() + ".json";
return fileName;
#!/bin/bash
# /etc/init.d/minecraft
# version 0.3.9 2012-08-13 (YYYY-MM-DD)
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
1, //Air
1, //Smooth Stone
1, //Grass
1, //Dirt
1, //Cobblestone
8, //Wooden Plank
32, //Sapling
1, //Bedrock
16, //Water
16, //Stationary Water
[18:57:28] [main/INFO] [GradleStart]: username: -------
[18:57:28] [main/INFO] [GradleStart]: Extra: []
[18:57:28] [main/INFO] [GradleStart]: Password found, attempting login
[18:57:28] [main/INFO]: Logging in with username & password
[18:57:29] [main/INFO] [GradleStart]: Login Succesful!
[18:57:29] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {twitch_access_token=[com.mojang.authlib.properties.Property@214d554b]}, --username, glassesofdoom, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --uuid, 725d6477a6324f2894da32e349b06eea, --assetsDir, /home/anthony/.gradle/caches/minecraft/assets, --version, 1.7.10]
[18:57:29] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:57:29] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:57:29] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[18:57:29] [
[anthony@archmako .gradle]$ cat gradle.log
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:extractUserDev
:getAssetsIndex
@0xilly
0xilly / CivilMagicks.java
Created May 31, 2014 05:43
I like this game a bit to much
package us.illyohs.civilmagicks;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import net.minecraft.creativetab.CreativeTabs;
import us.illyohs.civilmagicks.common.blocks.ModBlocks;
import us.illyohs.civilmagicks.common.items.ModItems;