diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62f5a97 --- /dev/null +++ b/.gitignore @@ -0,0 +1,175 @@ + +# Created by https://www.gitignore.io/api/windows,linux,eclipse,java,intellij,gradle + +### Windows ### +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + + +### Eclipse ### + +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# Eclipse Core +.project + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/workspace.xml +.idea/tasks.xml +.idea/dictionaries +.idea/vcs.xml +.idea/jsLibraryMappings.xml + +# Sensitive or high-churn files: +.idea/dataSources.ids +.idea/dataSources.xml +.idea/dataSources.local.xml +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml + +# Gradle: +.idea/gradle.xml +.idea/libraries + +# Mongo Explorer plugin: +.idea/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +### Intellij Patch ### +*.iml + + +### Java ### +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +### Gradle ### +.gradle +build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + + +# Forge +run/ diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..298975b --- /dev/null +++ b/build.gradle @@ -0,0 +1,88 @@ + +// For those who want the bleeding edge +buildscript { + repositories { + jcenter() + maven { + name = "forge" + url = "http://files.minecraftforge.net/maven" + } + } + dependencies { + classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' + } +} +apply plugin: 'net.minecraftforge.gradle.forge' +repositories { + maven { + name "DVS1 Maven FS'" + url 'http://dvs1.progwml6.com/files/maven' + } +} + +/* +// for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot +//plugins { +// id "net.minecraftforge.gradle.forge" version "2.0.2" +//} +*/ +version = "0.1" +group= "com.sosnitzka.zcompression" // http://maven.apache.org/guides/mini/guide-naming-conventions.html +archivesBaseName = "zcompression" + +minecraft { + version = "1.9-12.16.0.1865-1.9" + runDir = "run" + + // the mappings can be changed at any time, and must be in the following format. + // snapshot_YYYYMMDD snapshot are built nightly. + // stable_# stables are built at the discretion of the MCP team. + // Use non-default mappings at your own risk. they may not allways work. + // simply re-run your setup task after changing the mappings to update your workspace. + mappings = "snapshot_20160428" + // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. +} + +dependencies { + // you may put jars on which you depend on in ./libs + // or you may define them like so.. + //compile "some.group:artifact:version:classifier" + //compile "some.group:artifact:version" + + // real examples + //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env + //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env + + // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. + //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' + + // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, + // except that these dependencies get remapped to your current MCP mappings + //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' + //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' + + // for more info... + // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html + // http://www.gradle.org/docs/current/userguide/dependency_management.html +compile "tconstruct:TConstruct:1.9-2.2.2.jenkins159:deobf" +} + +processResources +{ + // this will ensure that this task is redone when the versions change. + inputs.property "version", project.version + inputs.property "mcversion", project.minecraft.version + + // replace stuff in mcmod.info, nothing else + from(sourceSets.main.resources.srcDirs) { + include 'mcmod.info' + + // replace version and mcversion + expand 'version':project.version, 'mcversion':project.minecraft.version + } + + // copy everything else, thats not the mcmod.info + from(sourceSets.main.resources.srcDirs) { + exclude 'mcmod.info' + } +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..30d399d Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..9397848 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Mon Sep 14 12:28:28 PDT 2015 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-bin.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..91a7e26 --- /dev/null +++ b/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/src/main/java/blocks/BasicBlock.java b/src/main/java/blocks/BasicBlock.java new file mode 100644 index 0000000..2f61291 --- /dev/null +++ b/src/main/java/blocks/BasicBlock.java @@ -0,0 +1,16 @@ +package blocks; + +import net.minecraft.block.Block; +import net.minecraft.block.material.Material; + +public class BasicBlock extends Block{ + + public BasicBlock(String name, Material material, float hardness, float resistance) { + super(material); + setUnlocalizedName(name); + setRegistryName(name); + setHardness(hardness); + setResistance(resistance); + } + +} diff --git a/src/main/java/blocks/BlockAdamantiteOre.java b/src/main/java/blocks/BlockAdamantiteOre.java new file mode 100644 index 0000000..eaab00d --- /dev/null +++ b/src/main/java/blocks/BlockAdamantiteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockAdamantiteOre extends BasicBlock{ + + public BlockAdamantiteOre() { + super("adamantite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockArcaniteOre.java b/src/main/java/blocks/BlockArcaniteOre.java new file mode 100644 index 0000000..6be72a7 --- /dev/null +++ b/src/main/java/blocks/BlockArcaniteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockArcaniteOre extends BasicBlock{ + + public BlockArcaniteOre() { + super("arcanite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockBasalt.java b/src/main/java/blocks/BlockBasalt.java new file mode 100644 index 0000000..16ff9c3 --- /dev/null +++ b/src/main/java/blocks/BlockBasalt.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockBasalt extends BasicBlock{ + + public BlockBasalt() { + super("basalt", Material.ROCK, 12.0f, 2.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockBismuthOre.java b/src/main/java/blocks/BlockBismuthOre.java new file mode 100644 index 0000000..c8b0632 --- /dev/null +++ b/src/main/java/blocks/BlockBismuthOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockBismuthOre extends BasicBlock{ + + public BlockBismuthOre() { + super("bismuth_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockEterniteOre.java b/src/main/java/blocks/BlockEterniteOre.java new file mode 100644 index 0000000..30c1143 --- /dev/null +++ b/src/main/java/blocks/BlockEterniteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockEterniteOre extends BasicBlock{ + + public BlockEterniteOre() { + super("eternite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockKarmesineOre.java b/src/main/java/blocks/BlockKarmesineOre.java new file mode 100644 index 0000000..21d1c74 --- /dev/null +++ b/src/main/java/blocks/BlockKarmesineOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockKarmesineOre extends BasicBlock{ + + public BlockKarmesineOre() { + super("karmesine_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockLigniteOre.java b/src/main/java/blocks/BlockLigniteOre.java new file mode 100644 index 0000000..77f0f74 --- /dev/null +++ b/src/main/java/blocks/BlockLigniteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockLigniteOre extends BasicBlock{ + + public BlockLigniteOre() { + super("lignite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockMeteoriteOre.java b/src/main/java/blocks/BlockMeteoriteOre.java new file mode 100644 index 0000000..76e23c8 --- /dev/null +++ b/src/main/java/blocks/BlockMeteoriteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockMeteoriteOre extends BasicBlock{ + + public BlockMeteoriteOre() { + super("meteorite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockMindoriteOre.java b/src/main/java/blocks/BlockMindoriteOre.java new file mode 100644 index 0000000..1ace48b --- /dev/null +++ b/src/main/java/blocks/BlockMindoriteOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockMindoriteOre extends BasicBlock{ + + public BlockMindoriteOre() { + super("mindorite_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockMythrilOre.java b/src/main/java/blocks/BlockMythrilOre.java new file mode 100644 index 0000000..8e3975c --- /dev/null +++ b/src/main/java/blocks/BlockMythrilOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockMythrilOre extends BasicBlock{ + + public BlockMythrilOre() { + super("mythril_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockPalladiumOre.java b/src/main/java/blocks/BlockPalladiumOre.java new file mode 100644 index 0000000..61d8488 --- /dev/null +++ b/src/main/java/blocks/BlockPalladiumOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockPalladiumOre extends BasicBlock{ + + public BlockPalladiumOre() { + super("palladium_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockPrometheumOre.java b/src/main/java/blocks/BlockPrometheumOre.java new file mode 100644 index 0000000..e278783 --- /dev/null +++ b/src/main/java/blocks/BlockPrometheumOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockPrometheumOre extends BasicBlock{ + + public BlockPrometheumOre() { + super("prometheum_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockRottenGround.java b/src/main/java/blocks/BlockRottenGround.java new file mode 100644 index 0000000..c3f4723 --- /dev/null +++ b/src/main/java/blocks/BlockRottenGround.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockRottenGround extends BasicBlock{ + + public BlockRottenGround() { + super("rotten_ground", Material.GROUND, 1.0f, 1.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockSlagironOre.java b/src/main/java/blocks/BlockSlagironOre.java new file mode 100644 index 0000000..7023bc8 --- /dev/null +++ b/src/main/java/blocks/BlockSlagironOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockSlagironOre extends BasicBlock{ + + public BlockSlagironOre() { + super("slagiron_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockTiberiumOre.java b/src/main/java/blocks/BlockTiberiumOre.java new file mode 100644 index 0000000..d143846 --- /dev/null +++ b/src/main/java/blocks/BlockTiberiumOre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockTiberiumOre extends BasicBlock{ + + public BlockTiberiumOre() { + super("tiberium_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/blocks/BlockVibraniumre.java b/src/main/java/blocks/BlockVibraniumre.java new file mode 100644 index 0000000..792cad9 --- /dev/null +++ b/src/main/java/blocks/BlockVibraniumre.java @@ -0,0 +1,13 @@ +package blocks; + +import net.minecraft.block.material.Material; + +public class BlockVibraniumre extends BasicBlock{ + + public BlockVibraniumre() { + super("vibranium_ore", Material.ROCK, 3.0f, 5.0f); + } + + + +} diff --git a/src/main/java/items/BasicItem.java b/src/main/java/items/BasicItem.java new file mode 100644 index 0000000..92196cd --- /dev/null +++ b/src/main/java/items/BasicItem.java @@ -0,0 +1,12 @@ +package items; + +import net.minecraft.item.Item; + +public class BasicItem extends Item{ + + public BasicItem(String name) { + setUnlocalizedName(name); + setRegistryName(name); + } + +} diff --git a/src/main/java/items/ItemSlagiron.java b/src/main/java/items/ItemSlagiron.java new file mode 100644 index 0000000..9775409 --- /dev/null +++ b/src/main/java/items/ItemSlagiron.java @@ -0,0 +1,10 @@ +package items; + +public class ItemSlagiron extends BasicItem{ + + public ItemSlagiron() { + super("slagiron"); + } + + +} diff --git a/src/main/java/main/ZCompression.java b/src/main/java/main/ZCompression.java new file mode 100644 index 0000000..a264ec7 --- /dev/null +++ b/src/main/java/main/ZCompression.java @@ -0,0 +1,114 @@ +package main; + +import blocks.BasicBlock; +import blocks.BlockAdamantiteOre; +import blocks.BlockArcaniteOre; +import blocks.BlockBasalt; +import blocks.BlockBismuthOre; +import blocks.BlockEterniteOre; +import blocks.BlockKarmesineOre; +import blocks.BlockLigniteOre; +import blocks.BlockMeteoriteOre; +import blocks.BlockMindoriteOre; +import blocks.BlockMythrilOre; +import blocks.BlockPalladiumOre; +import blocks.BlockPrometheumOre; +import blocks.BlockRottenGround; +import blocks.BlockSlagironOre; +import blocks.BlockTiberiumOre; +import blocks.BlockVibraniumre; +import items.ItemSlagiron; +import main.world.ZWorldGen; +import net.minecraft.item.ItemBlock; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.Mod.EventHandler; +import net.minecraftforge.fml.common.SidedProxy; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import net.minecraftforge.fml.common.registry.GameRegistry; +import proxy.ServerProxy; + +@Mod(modid = ZCompression.MODID, version = ZCompression.VERSION) +public class ZCompression { + + public static final String MODID = "zcompression"; + public static final String VERSION = "1.0"; + + @SidedProxy(clientSide = "proxy.ClientProxy", serverSide = "proxy.ServerProxy") + public static ServerProxy proxy; + + // Items + public static ItemSlagiron slagiron = new ItemSlagiron(); + + + //Blocks, esp. for tconstruct + public static BlockAdamantiteOre adamantiteOre = new BlockAdamantiteOre(); + public static BlockArcaniteOre arcaniteOre = new BlockArcaniteOre(); + public static BlockBasalt basalt = new BlockBasalt(); + public static BlockBismuthOre bismuthOre = new BlockBismuthOre(); + public static BlockEterniteOre eterniteOre = new BlockEterniteOre(); + public static BlockKarmesineOre karmesineOre = new BlockKarmesineOre(); + public static BlockLigniteOre ligniteOre = new BlockLigniteOre(); + public static BlockMeteoriteOre meteoriteOre = new BlockMeteoriteOre(); + public static BlockMindoriteOre mindoriteOre = new BlockMindoriteOre(); + public static BlockMythrilOre mythrilOre = new BlockMythrilOre(); + public static BlockPalladiumOre palladiumOre = new BlockPalladiumOre(); + public static BlockPrometheumOre prometheumOre = new BlockPrometheumOre(); + public static BlockRottenGround rottenGround = new BlockRottenGround(); + public static BlockSlagironOre slagironOre = new BlockSlagironOre(); + public static BlockTiberiumOre tiberiumOre = new BlockTiberiumOre(); + public static BlockVibraniumre vibraniumOre = new BlockVibraniumre(); + + + + + + + + + + + + @EventHandler + public void preInit(FMLPreInitializationEvent e){ + GameRegistry.register(slagiron); + registerBlock(adamantiteOre); + registerBlock(arcaniteOre); + registerBlock(basalt); + registerBlock(bismuthOre); + registerBlock(eterniteOre); + registerBlock(karmesineOre); + registerBlock(ligniteOre); + registerBlock(meteoriteOre); + registerBlock(mindoriteOre); + registerBlock(mythrilOre); + registerBlock(palladiumOre); + registerBlock(prometheumOre); + registerBlock(rottenGround); + registerBlock(slagironOre); + registerBlock(tiberiumOre); + registerBlock(vibraniumOre); + + } + + @EventHandler + public void init(FMLInitializationEvent e){ + proxy.registerClientStuff(); + GameRegistry.registerWorldGenerator(new ZWorldGen(), 100); + + } + + @EventHandler + public void postInit(FMLPostInitializationEvent e){ + + } + + public static void registerBlock(BasicBlock block){ + GameRegistry.register(block); + GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName())); + } + + + +} diff --git a/src/main/java/main/util/Generator.java b/src/main/java/main/util/Generator.java new file mode 100644 index 0000000..5ff7781 --- /dev/null +++ b/src/main/java/main/util/Generator.java @@ -0,0 +1,39 @@ +package main.util; + +import java.util.Random; + +import com.google.common.base.Predicate; + +import net.minecraft.block.Block; +import net.minecraft.block.state.IBlockState; +import net.minecraft.block.state.pattern.BlockMatcher; +import net.minecraft.init.Blocks; +import net.minecraft.util.math.BlockPos; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenMinable; + +public class Generator { + + public static void generateOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize){ + generateOre(state, Blocks.STONE, random, x, z, world, chance, minY, maxY, minSize, maxSize); + } + + public static void generateNetherOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize){ + generateOre(state, Blocks.NETHERRACK, random, x, z, world, chance, minY, maxY, minSize, maxSize); + } + + + public static void generateOre(IBlockState state, Block replace, Random random, int chunkX, int chunkZ, World world, int chance, int minY, int maxY, int minSize, int maxSize){ + int size = minSize + random.nextInt(maxSize - minSize); + int height = maxY - minY; + + for(int i = 0; i < chance; i++) { + int posX = chunkX + random.nextInt(16); + int posY = random.nextInt(height) + minY; + int posZ = chunkZ + random.nextInt(16); + new WorldGenMinable(state, size, BlockMatcher.forBlock(replace)).generate(world, random, new BlockPos(posX, posY, posZ)); + } + } + + +} diff --git a/src/main/java/main/world/ZWorldGen.java b/src/main/java/main/world/ZWorldGen.java new file mode 100644 index 0000000..06910d3 --- /dev/null +++ b/src/main/java/main/world/ZWorldGen.java @@ -0,0 +1,65 @@ +package main.world; + +import java.util.Random; + +import com.google.common.base.Predicates; + +import main.ZCompression; +import main.util.Generator; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.chunk.IChunkGenerator; +import net.minecraft.world.chunk.IChunkProvider; +import net.minecraftforge.fml.common.IWorldGenerator; + +public class ZWorldGen implements IWorldGenerator { + + + private void nether(Random random, int x, int z, World world){ + Generator.generateNetherOre(ZCompression.adamantiteOre.getDefaultState(), random, x, z, world, 24, 1, 32, 2, 5); + Generator.generateNetherOre(ZCompression.tiberiumOre.getDefaultState(), random, x, z, world, 60, 1, 128, 2, 10); + Generator.generateNetherOre(ZCompression.palladiumOre.getDefaultState(), random, x, z, world, 15, 32, 64, 3, 6); + Generator.generateOre(ZCompression.prometheumOre.getDefaultState(), random, x, z, world, 20, 48, 64, 2, 4); + } + + private void world(Random random, int x, int z, World world){ + // Regular + Generator.generateOre(ZCompression.slagironOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 16); + Generator.generateOre(ZCompression.ligniteOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 15); + Generator.generateOre(Blocks.IRON_ORE.getDefaultState(),random, x, z, world, 40, 8, 96, 2, 10); + Generator.generateOre(ZCompression.basalt.getDefaultState(), Blocks.LAVA, random, x, z, world, 20, 8, 24, 2, 5); + Generator.generateOre(ZCompression.rottenGround.getDefaultState(), Blocks.DIRT, random, x, z, world, 25, 50, 70, 2, 15); + + Generator.generateOre(ZCompression.vibraniumOre.getDefaultState(), random, x, z, world, 16, 48, 64, 2, 4); + Generator.generateOre(ZCompression.mythrilOre.getDefaultState(), random, x, z, world, 16, 16, 32, 2, 4); + Generator.generateOre(ZCompression.meteoriteOre.getDefaultState(), random, x, z, world, 25, 0, 32, 3, 6); + Generator.generateOre(ZCompression.mindoriteOre.getDefaultState(), Blocks.STONE, random, x, z, world, 450, 32, 96, 3, 6); + } + + private void end(Random random, int x, int z, World world){ + + } + + + + @Override + public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, + IChunkProvider chunkProvider) { + int x = chunkX * 16; + int z = chunkZ * 16; + switch(world.provider.getDimension()) { + case -1: + nether(random, x, z, world); + break; + case 0: + world(random, x, z, world); + break; + case 1: + end(random, x, z, world); + break; + } + + } + +} diff --git a/src/main/java/proxy/ClientProxy.java b/src/main/java/proxy/ClientProxy.java new file mode 100644 index 0000000..1c44f72 --- /dev/null +++ b/src/main/java/proxy/ClientProxy.java @@ -0,0 +1,46 @@ +package proxy; + +import blocks.BasicBlock; +import items.BasicItem; +import main.ZCompression; +import net.minecraft.block.Block; +import net.minecraft.client.Minecraft; +import net.minecraft.client.renderer.block.model.ModelResourceLocation; +import net.minecraft.item.Item; + +public class ClientProxy extends ServerProxy{ + + @Override + public void registerClientStuff() { + // Items + registerItemModel(ZCompression.slagiron); + + // Blocks + registerBlockModel(ZCompression.adamantiteOre); + registerBlockModel(ZCompression.arcaniteOre); + registerBlockModel(ZCompression.basalt); + registerBlockModel(ZCompression.bismuthOre); + registerBlockModel(ZCompression.eterniteOre); + registerBlockModel(ZCompression.karmesineOre); + registerBlockModel(ZCompression.ligniteOre); + registerBlockModel(ZCompression.meteoriteOre); + registerBlockModel(ZCompression.mindoriteOre); + registerBlockModel(ZCompression.mythrilOre); + registerBlockModel(ZCompression.palladiumOre); + registerBlockModel(ZCompression.prometheumOre); + registerBlockModel(ZCompression.rottenGround); + registerBlockModel(ZCompression.slagironOre); + registerBlockModel(ZCompression.tiberiumOre); + registerBlockModel(ZCompression.vibraniumOre); + + + } + + public static void registerItemModel(Item item){ + Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); + } + + public static void registerBlockModel(Block block){ + registerItemModel(Item.getItemFromBlock(block)); + } +} diff --git a/src/main/java/proxy/ServerProxy.java b/src/main/java/proxy/ServerProxy.java new file mode 100644 index 0000000..c213f2b --- /dev/null +++ b/src/main/java/proxy/ServerProxy.java @@ -0,0 +1,7 @@ +package proxy; + +public class ServerProxy { + + public void registerClientStuff() {} + +} diff --git a/src/main/resources/assets/zcompression/blockstates/adamantite_ore.json b/src/main/resources/assets/zcompression/blockstates/adamantite_ore.json new file mode 100644 index 0000000..a50d36c --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/adamantite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:adamantite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/arcanite_ore.json b/src/main/resources/assets/zcompression/blockstates/arcanite_ore.json new file mode 100644 index 0000000..26df305 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/arcanite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:arcanite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/basalt.json b/src/main/resources/assets/zcompression/blockstates/basalt.json new file mode 100644 index 0000000..7850e01 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/basalt.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:basalt" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/bismuth_ore.json b/src/main/resources/assets/zcompression/blockstates/bismuth_ore.json new file mode 100644 index 0000000..397599e --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/bismuth_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:bismuth_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/eternite_ore.json b/src/main/resources/assets/zcompression/blockstates/eternite_ore.json new file mode 100644 index 0000000..6b8a216 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/eternite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:eternite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/karmesite_ore.json b/src/main/resources/assets/zcompression/blockstates/karmesite_ore.json new file mode 100644 index 0000000..548dbdb --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/karmesite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:karmesite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/lignite_ore.json b/src/main/resources/assets/zcompression/blockstates/lignite_ore.json new file mode 100644 index 0000000..7d532ed --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/lignite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:lignite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/meteorite_ore.json b/src/main/resources/assets/zcompression/blockstates/meteorite_ore.json new file mode 100644 index 0000000..620dfa9 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/meteorite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:meteorite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/mindorite_ore.json b/src/main/resources/assets/zcompression/blockstates/mindorite_ore.json new file mode 100644 index 0000000..e16b495 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/mindorite_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:mindorite_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/mythril_ore.json b/src/main/resources/assets/zcompression/blockstates/mythril_ore.json new file mode 100644 index 0000000..12c95ce --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/mythril_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:mythril_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/palladium_ore.json b/src/main/resources/assets/zcompression/blockstates/palladium_ore.json new file mode 100644 index 0000000..3cd7b34 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/palladium_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:palladium_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/prometheum_ore.json b/src/main/resources/assets/zcompression/blockstates/prometheum_ore.json new file mode 100644 index 0000000..df51c88 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/prometheum_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:prometheum_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/rotten_ground.json b/src/main/resources/assets/zcompression/blockstates/rotten_ground.json new file mode 100644 index 0000000..08ca7d8 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/rotten_ground.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:rotten_ground" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/slagiron_ore.json b/src/main/resources/assets/zcompression/blockstates/slagiron_ore.json new file mode 100644 index 0000000..cba54da --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/slagiron_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:slagiron_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/tiberium_ore.json b/src/main/resources/assets/zcompression/blockstates/tiberium_ore.json new file mode 100644 index 0000000..0558e54 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/tiberium_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:tiberium_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/blockstates/vibranium_ore.json b/src/main/resources/assets/zcompression/blockstates/vibranium_ore.json new file mode 100644 index 0000000..ae59ae3 --- /dev/null +++ b/src/main/resources/assets/zcompression/blockstates/vibranium_ore.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "zcompression:vibranium_ore" } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/lang/de_DE.lang b/src/main/resources/assets/zcompression/lang/de_DE.lang new file mode 100644 index 0000000..354be92 --- /dev/null +++ b/src/main/resources/assets/zcompression/lang/de_DE.lang @@ -0,0 +1,18 @@ +item.slagiron.name=Unreiner Eisenbarren +tile.adamantite_ore.name=Adamantiterz +tile.arcanite_ore.name=Arcaniterz +tile.basalt.name=Basalt +tile.bismuth_ore.name=Bismutherz +tile.eternite_ore.name=Eterniterz +tile.karmesine_ore.name=Karmesinerz +tile.lignite_ore.name=Braunkohleerz +tile.meteorite_ore.name=Meteoriterz +tile.mindorite_ore.name=Mindoriterz +tile.mythril_ore.name=Mythrilerz +tile.palladium_ore.name=Palladiumerz +tile.prometheum_ore.name=Prometheumerz +tile.rotten_ground.name=Verrottete Erde +tile.slagiron_ore.name=Unreines Eisenerz +tile.tiberium_ore.name=Tiberiumerz +tile.vibranium_ore.name=Vibraniumerz + diff --git a/src/main/resources/assets/zcompression/lang/en_US.lang b/src/main/resources/assets/zcompression/lang/en_US.lang new file mode 100644 index 0000000..cbf40a3 --- /dev/null +++ b/src/main/resources/assets/zcompression/lang/en_US.lang @@ -0,0 +1,17 @@ +item.slagiron.name=Slagiron Bar +tile.adamantite_ore.name=Adamantite Ore +tile.arcanite_ore.name=Arcanite Ore +tile.basalt.name=Basalt +tile.bismuth_ore.name=Bismuth Ore +tile.eternite_ore.name=Eternite Ore +tile.karmesine_ore.name=Karmesine Ore +tile.lignite_ore.name=Lignite Ore +tile.meteorite_ore.name=Meteorite Ore +tile.mindorite_ore.name=Mindorite Ore +tile.mythril_ore.name=Mythril Ore +tile.palladium_ore.name=Palladium Ore +tile.prometheum_ore.name=Prometheum Ore +tile.rotten_ground.name=Rotten Ground +tile.slagiron_ore.name=Slagiron Ore +tile.tiberium_ore.name=Tiberium Ore +tile.vibranium_ore.name=Vibranium Ore \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/adamantite_ore.json b/src/main/resources/assets/zcompression/models/block/adamantite_ore.json new file mode 100644 index 0000000..a3fd258 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/adamantite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/adamantite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/arcanite_ore.json b/src/main/resources/assets/zcompression/models/block/arcanite_ore.json new file mode 100644 index 0000000..c9f99b6 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/arcanite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/arcanite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/basalt.json b/src/main/resources/assets/zcompression/models/block/basalt.json new file mode 100644 index 0000000..5f51756 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/basalt.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/basalt" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/bismuth_ore.json b/src/main/resources/assets/zcompression/models/block/bismuth_ore.json new file mode 100644 index 0000000..9936063 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/bismuth_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/bismuth_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/eternite_ore.json b/src/main/resources/assets/zcompression/models/block/eternite_ore.json new file mode 100644 index 0000000..be530ae --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/eternite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/eternite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/karmesine_ore.json b/src/main/resources/assets/zcompression/models/block/karmesine_ore.json new file mode 100644 index 0000000..4553bc8 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/karmesine_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/karmesine_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/lignite_ore.json b/src/main/resources/assets/zcompression/models/block/lignite_ore.json new file mode 100644 index 0000000..35e681e --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/lignite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/lignite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/meteorite_ore.json b/src/main/resources/assets/zcompression/models/block/meteorite_ore.json new file mode 100644 index 0000000..d347f5c --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/meteorite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/meteorite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/mindorite_ore.json b/src/main/resources/assets/zcompression/models/block/mindorite_ore.json new file mode 100644 index 0000000..ba06590 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/mindorite_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/mindorite_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/mythril_ore.json b/src/main/resources/assets/zcompression/models/block/mythril_ore.json new file mode 100644 index 0000000..d0c5111 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/mythril_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/mythril_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/palladium_ore.json b/src/main/resources/assets/zcompression/models/block/palladium_ore.json new file mode 100644 index 0000000..429c93c --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/palladium_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/palladium_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/prometheum_ore.json b/src/main/resources/assets/zcompression/models/block/prometheum_ore.json new file mode 100644 index 0000000..d2752d6 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/prometheum_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/prometheum_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/rotten_ground.json b/src/main/resources/assets/zcompression/models/block/rotten_ground.json new file mode 100644 index 0000000..0b23202 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/rotten_ground.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/rotten_ground" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/slagiron_ore.json b/src/main/resources/assets/zcompression/models/block/slagiron_ore.json new file mode 100644 index 0000000..3e6032c --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/slagiron_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/slagiron_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/tiberium_ore.json b/src/main/resources/assets/zcompression/models/block/tiberium_ore.json new file mode 100644 index 0000000..075cdb5 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/tiberium_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/tiberium_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/block/vibranium_ore.json b/src/main/resources/assets/zcompression/models/block/vibranium_ore.json new file mode 100644 index 0000000..50b0675 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/block/vibranium_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "zcompression:blocks/vibranium_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/adamantite_ore.json b/src/main/resources/assets/zcompression/models/item/adamantite_ore.json new file mode 100644 index 0000000..7ec5126 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/adamantite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/adamantite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/arcanite_ore.json b/src/main/resources/assets/zcompression/models/item/arcanite_ore.json new file mode 100644 index 0000000..21a96d1 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/arcanite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/arcanite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/basalt.json b/src/main/resources/assets/zcompression/models/item/basalt.json new file mode 100644 index 0000000..200b982 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/basalt.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/basalt", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/bismuth_ore.json b/src/main/resources/assets/zcompression/models/item/bismuth_ore.json new file mode 100644 index 0000000..44b8f57 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/bismuth_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/bismuth_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/eternite_ore.json b/src/main/resources/assets/zcompression/models/item/eternite_ore.json new file mode 100644 index 0000000..a5fef31 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/eternite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/eternite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/karmesine_ore.json b/src/main/resources/assets/zcompression/models/item/karmesine_ore.json new file mode 100644 index 0000000..2a28475 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/karmesine_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/karmesine_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/lignite_ore.json b/src/main/resources/assets/zcompression/models/item/lignite_ore.json new file mode 100644 index 0000000..b4fbb0c --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/lignite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/lignite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/meteorite_ore.json b/src/main/resources/assets/zcompression/models/item/meteorite_ore.json new file mode 100644 index 0000000..b9e46b3 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/meteorite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/meteorite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/mindorite_ore.json b/src/main/resources/assets/zcompression/models/item/mindorite_ore.json new file mode 100644 index 0000000..a72e9bb --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/mindorite_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/mindorite_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/mythril_ore.json b/src/main/resources/assets/zcompression/models/item/mythril_ore.json new file mode 100644 index 0000000..d309dc2 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/mythril_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/mythril_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/palladium_ore.json b/src/main/resources/assets/zcompression/models/item/palladium_ore.json new file mode 100644 index 0000000..c9d79ce --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/palladium_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/palladium_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/prometheum_ore.json b/src/main/resources/assets/zcompression/models/item/prometheum_ore.json new file mode 100644 index 0000000..6617eb9 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/prometheum_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/prometheum_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/rotten_ground.json b/src/main/resources/assets/zcompression/models/item/rotten_ground.json new file mode 100644 index 0000000..d64b11e --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/rotten_ground.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/rotten_ground", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/slagiron.json b/src/main/resources/assets/zcompression/models/item/slagiron.json new file mode 100644 index 0000000..84b9cd1 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/slagiron.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "zcompression:items/slagiron" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/slagiron_ore.json b/src/main/resources/assets/zcompression/models/item/slagiron_ore.json new file mode 100644 index 0000000..4522013 --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/slagiron_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/slagiron_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/tiberium_ore.json b/src/main/resources/assets/zcompression/models/item/tiberium_ore.json new file mode 100644 index 0000000..164521f --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/tiberium_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/tiberium_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/models/item/vibranium_ore.json b/src/main/resources/assets/zcompression/models/item/vibranium_ore.json new file mode 100644 index 0000000..ce5f75d --- /dev/null +++ b/src/main/resources/assets/zcompression/models/item/vibranium_ore.json @@ -0,0 +1,10 @@ +{ + "parent": "zcompression:block/vibranium_ore", + "display": { + "thirdperson": { + "rotation": [ 10, -45, 170 ], + "translation": [ 0, 1.5, -2.75 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/zcompression/textures/blocks/adamantite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/adamantite_ore.png new file mode 100644 index 0000000..9c12b6a Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/adamantite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/arcanite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/arcanite_ore.png new file mode 100644 index 0000000..c0ccaa8 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/arcanite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/basalt.png b/src/main/resources/assets/zcompression/textures/blocks/basalt.png new file mode 100644 index 0000000..7fadea8 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/basalt.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/bismuth_ore.png b/src/main/resources/assets/zcompression/textures/blocks/bismuth_ore.png new file mode 100644 index 0000000..ae60242 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/bismuth_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/eternite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/eternite_ore.png new file mode 100644 index 0000000..70a777f Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/eternite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/karmesine_ore.png b/src/main/resources/assets/zcompression/textures/blocks/karmesine_ore.png new file mode 100644 index 0000000..fcdee06 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/karmesine_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/lignite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/lignite_ore.png new file mode 100644 index 0000000..b29c12c Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/lignite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/meteorite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/meteorite_ore.png new file mode 100644 index 0000000..bbd3b02 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/meteorite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/mindorite_ore.png b/src/main/resources/assets/zcompression/textures/blocks/mindorite_ore.png new file mode 100644 index 0000000..ccc8907 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/mindorite_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/mythril_ore.png b/src/main/resources/assets/zcompression/textures/blocks/mythril_ore.png new file mode 100644 index 0000000..fe8e447 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/mythril_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/palladium_ore.png b/src/main/resources/assets/zcompression/textures/blocks/palladium_ore.png new file mode 100644 index 0000000..0a6e072 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/palladium_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/prometheum_ore.png b/src/main/resources/assets/zcompression/textures/blocks/prometheum_ore.png new file mode 100644 index 0000000..36621e7 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/prometheum_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/rotten_ground.png b/src/main/resources/assets/zcompression/textures/blocks/rotten_ground.png new file mode 100644 index 0000000..10be0ab Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/rotten_ground.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/slagiron_ore.png b/src/main/resources/assets/zcompression/textures/blocks/slagiron_ore.png new file mode 100644 index 0000000..326eea2 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/slagiron_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/stone_andesite.png b/src/main/resources/assets/zcompression/textures/blocks/stone_andesite.png new file mode 100644 index 0000000..feba8d8 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/stone_andesite.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/stone_diorite.png b/src/main/resources/assets/zcompression/textures/blocks/stone_diorite.png new file mode 100644 index 0000000..8b68d7b Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/stone_diorite.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/stone_granite.png b/src/main/resources/assets/zcompression/textures/blocks/stone_granite.png new file mode 100644 index 0000000..74d03aa Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/stone_granite.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/tiberium_ore.png b/src/main/resources/assets/zcompression/textures/blocks/tiberium_ore.png new file mode 100644 index 0000000..0763e81 Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/tiberium_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/blocks/vibranium_ore.png b/src/main/resources/assets/zcompression/textures/blocks/vibranium_ore.png new file mode 100644 index 0000000..c9770db Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/blocks/vibranium_ore.png differ diff --git a/src/main/resources/assets/zcompression/textures/items/slagiron.png b/src/main/resources/assets/zcompression/textures/items/slagiron.png new file mode 100644 index 0000000..2b70a7e Binary files /dev/null and b/src/main/resources/assets/zcompression/textures/items/slagiron.png differ diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info new file mode 100644 index 0000000..3b7ef1a --- /dev/null +++ b/src/main/resources/mcmod.info @@ -0,0 +1,16 @@ +[ +{ + "modid": "zcompression", + "name": "Zkaface Compression Mod", + "description": "A modification to compress several items and blocks to a solid block with several features coming up on exponent five.", + "version": "0.1", + "mcversion": "1.9", + "url": "www.sosnitzka.com", + "updateUrl": "", + "authorList": ["Zkaface"], + "credits": "Chefe. He's there, if you need him.", + "logoFile": "", + "screenshots": [], + "dependencies": [] +} +] \ No newline at end of file