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
@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;
[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
[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] [
1, //Air
1, //Smooth Stone
1, //Grass
1, //Dirt
1, //Cobblestone
8, //Wooden Plank
32, //Sapling
1, //Bedrock
16, //Water
16, //Stationary Water
#!/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
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;
String getJsonFilePath(World world) {
String levelName = world.getWorldInfo().getWorldName();
String directory = "";
try {
String subDirectory = ( MinecraftServer.getServer() instanceof DedicatedServer )? "" : "saves/";
directory = subDirectory + levelName + "/stored_runes/";
33:41] [main/INFO] [GradleStart]: assetIndex: 1.7.10
[00:33:41] [main/INFO] [GradleStart]: Extra: [--assetDir, ~/.gradle/caches/inecraft/assets/indexes/1.7.10.json]
[00:33:41] [main/INFO] [GradleStart]: Password found, attempting login
[00:33:41] [main/INFO]: Logging in with username & password
[00:33:42] [main/INFO] [GradleStart]: Login Succesful!
[00:33:42] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {twitch_access_token=[com.mojang.authlib.properties.Property@6033b0e4]}, --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, --assetDir, ~/.gradle/caches/inecraft/assets/indexes/1.7.10.json]
[00:33:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[00:33:42] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launc
This file has been truncated, but you can view the full file.
MultiMC version: 0.4.1
Minecraft folder is:
/home/anthony/.multimc5/instances/Arcadia Test/minecraft
Java path is:
java
Java Arguments:
[-Xms512m, -Xmx2048m, -Duser.language=en, -jar, /usr/lib/multimc5/jars/NewLaunch.jar]
package com.newlinegaming.Runix.item.rods;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import com.newlinegaming.Runix.RunixMain;