Fixed gitignore
This commit is contained in:
parent
6406bd333d
commit
374ded52b3
15 changed files with 2689 additions and 10 deletions
19
.gitignore
vendored
19
.gitignore
vendored
|
|
@ -1,10 +1,13 @@
|
||||||
/*/
|
/common/*
|
||||||
/*
|
|
||||||
|
|
||||||
!common/assets/**
|
!.gitignore
|
||||||
!common/mysticores/**
|
!*LICENSE.md
|
||||||
!common/mysticruins/**
|
!README.md
|
||||||
!common/mysticstones/**
|
!common/assets/
|
||||||
!common/mysticworld/**
|
!common/mysticores/
|
||||||
|
!common/mysticruins/
|
||||||
|
!common/mysticstones/
|
||||||
|
!common/mysticworld/
|
||||||
!common/mcmod.info
|
!common/mcmod.info
|
||||||
!common/build.gradle
|
!common/build.gradle
|
||||||
|
!common/gradle*
|
||||||
|
|
@ -20,7 +20,7 @@ public class Items {
|
||||||
public static Item Satchel;
|
public static Item Satchel;
|
||||||
|
|
||||||
public static void initialize() {
|
public static void initialize() {
|
||||||
Resource = new ItemResource().setUnlocalizedName("mysticores:resources");
|
Resource = new ItemResource().setUnlocalizedName("Resources");
|
||||||
VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword")
|
VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword")
|
||||||
.setCreativeTab(MysticOres.MysticOresTab);
|
.setCreativeTab(MysticOres.MysticOresTab);
|
||||||
VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe")
|
VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe")
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public class Strings {
|
||||||
public static final String AIR_STAFF_NAME = "airStaff";
|
public static final String AIR_STAFF_NAME = "airStaff";
|
||||||
public static final String ENERGY_STAFF_NAME = "energyStaff";
|
public static final String ENERGY_STAFF_NAME = "energyStaff";
|
||||||
|
|
||||||
public static final String STAFF_PART_NAME = "mysticworld:staffparts";
|
public static final String STAFF_PART_NAME = "staffparts";
|
||||||
|
|
||||||
public static final String FIRE_ORB_NAME = "fireOrb";
|
public static final String FIRE_ORB_NAME = "fireOrb";
|
||||||
public static final String WATER_ORB_NAME = "waterOrb";
|
public static final String WATER_ORB_NAME = "waterOrb";
|
||||||
|
|
|
||||||
68
common/assets/mysticores/lang/ru_RU.lang
Normal file
68
common/assets/mysticores/lang/ru_RU.lang
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
|
||||||
|
item.VerditeSword.name=Вердитовый меч
|
||||||
|
item.VerditePickaxe.name=Вердитовая кирка
|
||||||
|
item.VerditeShovel.name=Вердитовая лопата
|
||||||
|
item.VerditeAxe.name=Вердитовый топор
|
||||||
|
item.VerditeHoe.name=Вердитовая мотыга
|
||||||
|
|
||||||
|
item.MithrilSword.name=Мифриловый меч
|
||||||
|
item.MithrilPickaxe.name=Мифриловая кирка
|
||||||
|
item.MithrilShovel.name=Мифриловая лопата
|
||||||
|
item.MithrilAxe.name=Мифриловый топор
|
||||||
|
item.MithrilHoe.name=Мифриловая мотыга
|
||||||
|
|
||||||
|
item.AdamantineSword.name=Адамантиновый меч
|
||||||
|
item.AdamantinePickaxe.name=Адамантиновая кирка
|
||||||
|
item.AdamantineShovel.name=Адамантиновая лопата
|
||||||
|
item.AdamantineAxe.name=Адамантиновый топор
|
||||||
|
item.AdamantineHoe.name=Адамантиновая мотыга
|
||||||
|
|
||||||
|
item.IridiumSword.name=Иридиевый меч
|
||||||
|
item.IridiumPickaxe.name=Иридиевая кирка
|
||||||
|
item.IridiumShovel.name=Иридиевая лопата
|
||||||
|
item.IridiumAxe.name=Иридиевый топор
|
||||||
|
item.IridiumHoe.name=Иридиевая мотыга
|
||||||
|
|
||||||
|
item.ObsidianSword.name=Обсидиановый меч
|
||||||
|
item.ObsidianPickaxe.name=Обсидиановая кирка
|
||||||
|
item.ObsidianShovel.name=Обсидиановая лопата
|
||||||
|
item.ObsidianAxe.name=Обсидиановый топор
|
||||||
|
item.ObsidianHoe.name=Обсидиановая мотыга
|
||||||
|
|
||||||
|
item.BloodstoneSword.name=Меч из кровавого камня
|
||||||
|
item.BloodstonePickaxe.name=Кирка из кровавого камня
|
||||||
|
item.BloodstoneShovel.name=Лопата из кровавого камня
|
||||||
|
item.BloodstoneAxe.name=Топор из кровавого камня
|
||||||
|
item.BloodstoneHoe.name=Мотыга из кровавого камня
|
||||||
|
|
||||||
|
Verdite Ingot.name=Вердитовый слиток
|
||||||
|
Mithril Ingot.name=Мифриловый слиток
|
||||||
|
Adamantine Ingot.name=Адамантиновый слиток
|
||||||
|
Iridium Ingot.name=Иридиевый слиток
|
||||||
|
Iridium Nugget.name=Иридиевый самородок
|
||||||
|
Tourmaline Gem.name=Турмалин
|
||||||
|
Agate Gem.name=Агат
|
||||||
|
Topaz Gem.name=Топаз
|
||||||
|
Amethyst Gem.name=Аметист
|
||||||
|
Mystic Powder.name=Мистическая пыль
|
||||||
|
Bloodstone Shard.name=Осколок кровавого камня
|
||||||
|
Glass Shard.name=Осколок стекла
|
||||||
|
Obsidian Shard.name=Осколок обсидиана
|
||||||
|
Obsidian Rod.name=Обсидиановый стержень
|
||||||
|
item.Satchel.name=Магический рюкзак
|
||||||
|
|
||||||
|
Adamantine Ore.name=Адамантиновая руда
|
||||||
|
Amethyst Ore.name=Аметистовая руда
|
||||||
|
Iridium Ore.name=Иридиевая руда
|
||||||
|
Mithril Ore.name=Мифриловая руда
|
||||||
|
Tourmaline Ore.name=Турмалиновая руда
|
||||||
|
Topaz Ore.name=Топазовая руда
|
||||||
|
Verdite Ore.name=Вердитовая руда
|
||||||
|
Bloodstone.name=Кровавый камень
|
||||||
|
Black Soulstone.name=Чёрный Камень Душ
|
||||||
|
Blue Soulstone.name=Синий Камень Душ
|
||||||
|
Red Soulstone.name=Красный Камень Душ
|
||||||
|
Agate Ore.name=Агатовая руда
|
||||||
|
Tempered Glass.name=Закалённое стекло
|
||||||
|
|
||||||
|
itemGroup.MysticOresTab=MysticMods (Руды и инструменты)
|
||||||
43
common/assets/mysticstones/lang/ru_RU.lang
Normal file
43
common/assets/mysticstones/lang/ru_RU.lang
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
|
||||||
|
Purple Planks.name=Фиолетовые доски
|
||||||
|
Green Planks.name=Зелёные доски
|
||||||
|
Black Planks.name=Чёрные доски
|
||||||
|
Orange Planks.name=Оранжевые доски
|
||||||
|
Red Planks.name=Красные доски
|
||||||
|
Blue Planks.name=Синие доски
|
||||||
|
Yellow Planks.name=Жёлтые доски
|
||||||
|
|
||||||
|
Smooth Anorthosite.name=Гладкий анортозит
|
||||||
|
Smooth Limestone.name=Гладкий известняк
|
||||||
|
Smooth Slate.name=Гладкий сланец
|
||||||
|
Smooth Migmatite.name=Гладкий мигматит
|
||||||
|
Smooth Orthogneiss.name=Гладкий ортогнейс
|
||||||
|
Smooth Marble.name=Гладкий мрамор
|
||||||
|
Smooth Travertine.name=Гладкий травертин
|
||||||
|
|
||||||
|
Anorthosite.name=Анортозит
|
||||||
|
Limestone.name=Известняк
|
||||||
|
Slate.name=Сланец
|
||||||
|
Migmatite.name=Мигматит
|
||||||
|
Orthogneiss.name=Ортогнейс
|
||||||
|
Marble.name=Мрамор
|
||||||
|
Travertine.name=Травертин
|
||||||
|
|
||||||
|
Anorthosite Bricks.name=Анортозитовый кирпич
|
||||||
|
Limestone Bricks.name=Известняковый кирпич
|
||||||
|
Slate Bricks.name=Сланцевый кирпич
|
||||||
|
Migmatite Bricks.name=Мигматитовый кирпич
|
||||||
|
Orthogneiss Bricks.name=Ортогнейсовый кирпич
|
||||||
|
Marble Bricks.name=Мраморный кирпич
|
||||||
|
Travertine Bricks.name=Травертиновый кирпич
|
||||||
|
|
||||||
|
Verdite Bricks.name=Вердитовый армированный кирпич
|
||||||
|
Mithril Bricks.name=Мифриловый армированный кирпич
|
||||||
|
Adamantine Bricks.name=Адамантиновый армированный кирпич
|
||||||
|
Iridium Bricks.name=Иридиевый армированный кирпич
|
||||||
|
Topaz Bricks.name=Топазовый армированный кирпич
|
||||||
|
Tourmaline Bricks.name=Турмалиновый армированный кирпич
|
||||||
|
Amethyst Bricks.name=Аметистовый армированный кирпич
|
||||||
|
Agate Bricks.name=Агатовый армированный кирпич
|
||||||
|
|
||||||
|
itemGroup.MysticStonesTab=MysticMods (Камни и доски)
|
||||||
69
common/assets/mysticworld/lang/ru_RU.lang
Normal file
69
common/assets/mysticworld/lang/ru_RU.lang
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
|
||||||
|
imbuedStoneFire.name=Часть Магмового Камня
|
||||||
|
imbuedStoneWater.name=Часть Камня Воды
|
||||||
|
imbuedStoneEarth.name=Часть Камня Изобилия
|
||||||
|
imbuedStoneAir.name=Часть Камня Воздуха
|
||||||
|
imbuedStoneEnergy.name=Часть Камня Энергии
|
||||||
|
|
||||||
|
Bush.name=Кусты Мира
|
||||||
|
Poisonous Bush.name=Ядовитый куст
|
||||||
|
Weakness Bush.name=Куст слабости
|
||||||
|
Slowness Bush.name=Куст замедления
|
||||||
|
Harming Bush.name=Вредный куст
|
||||||
|
Wither Bush.name=Куст-иссушитель
|
||||||
|
Health Bush.name=Лечащий куст
|
||||||
|
Speed Bush.name=Куст скорости
|
||||||
|
Fire Resistance Bush.name=Куст спасения от огня
|
||||||
|
Regen Bush.name=Куст регенерации
|
||||||
|
Night Vision Bush.name=Куст ночного зрения
|
||||||
|
Invisibility Bush.name=Куст-невидимка
|
||||||
|
|
||||||
|
tile.platform.name=Навершие колонны
|
||||||
|
tile.pillar.name=Колонна
|
||||||
|
tile.pillarInsert.name=Колонна
|
||||||
|
|
||||||
|
Staff.name=Посох
|
||||||
|
Hilt.name=Древко посоха
|
||||||
|
Handle.name=Рукоять посоха
|
||||||
|
Head.name=Навершие посоха
|
||||||
|
|
||||||
|
item.imbuedShardFire.name=Магмовый осколок
|
||||||
|
item.imbuedShardWater.name=Водяной осколок
|
||||||
|
item.imbuedShardEarth.name=Осколок изобилия
|
||||||
|
item.imbuedShardAir.name=Воздушный осколок
|
||||||
|
item.imbuedShardEnergy.name=Энергетический осколок
|
||||||
|
item.fireStaff.name=Магмовый посох
|
||||||
|
item.waterStaff.name=Посох Воды
|
||||||
|
item.earthStaff.name=Посох Изобилия
|
||||||
|
item.airStaff.name=Посох Воздуха
|
||||||
|
item.energyStaff.name=Посох Энергии
|
||||||
|
item.bushFruit.name=Таинственный фрукт
|
||||||
|
|
||||||
|
item.verditeHelmet.name=Вердитовый шлем
|
||||||
|
item.verditeChestplate.name=Вердитовый нагрудник
|
||||||
|
item.verditeLeggings.name=Вердитовые поножи
|
||||||
|
item.verditeBoots.name=Вердитовые ботинки
|
||||||
|
|
||||||
|
item.mithrilHelmet.name=Мифриловый шлем
|
||||||
|
item.mithrilChestplate.name=Мифриловый нагрудник
|
||||||
|
item.mithrilLeggings.name=Мифриловые поножи
|
||||||
|
item.mithrilBoots.name=Мифриловые ботинки
|
||||||
|
|
||||||
|
item.adamantineHelmet.name=Адамантиновый шлем
|
||||||
|
item.adamantineChestplate.name=Адамантиновый нагрудник
|
||||||
|
item.adamantineLeggings.name=Адамантиновые поножи
|
||||||
|
item.adamantineBoots.name=Адамантиновые ботинки
|
||||||
|
|
||||||
|
item.iridiumHelmet.name=Иридиевый шлем
|
||||||
|
item.iridiumChestplate.name=Иридиевый нагрудник
|
||||||
|
item.iridiumLeggings.name=Иридиевые поножи
|
||||||
|
item.iridiumBoots.name=Иридиевые ботинки
|
||||||
|
|
||||||
|
item.fireOrb.name=Магмовый шар
|
||||||
|
item.waterOrb.name=Водяной шар
|
||||||
|
item.earthOrb.name=Шар изобилия
|
||||||
|
item.airOrb.name=Воздушный шар
|
||||||
|
item.energyOrb.name=Энергетический шар
|
||||||
|
item.voidShard.name=Пустой осколок
|
||||||
|
|
||||||
|
itemGroup.MysticWorldTab=MysticMods (Мир)
|
||||||
1962
common/assets/mysticworld/models/orb.obj
Normal file
1962
common/assets/mysticworld/models/orb.obj
Normal file
File diff suppressed because it is too large
Load diff
41
common/build.gradle
Normal file
41
common/build.gradle
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
name = "forge"
|
||||||
|
url = "http://files.minecraftforge.net/maven"
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
name = "sonatype"
|
||||||
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
apply plugin: 'forge'
|
||||||
|
minecraft {
|
||||||
|
version = "1.7.10-10.13.0.1184"
|
||||||
|
runDir = "eclipse/assets"
|
||||||
|
}
|
||||||
|
archivesBaseName = "MysticMods"
|
||||||
|
version = "0.1(1.7.2)"
|
||||||
|
sourceSets.main.java{srcDirs project.projectDir.getPath() include("mysticores/**", "mysticruins/**" , "mysticstones/**", "mysticworld/**")}
|
||||||
|
sourceSets.main.resources{srcDirs project.projectDir.getPath() include("assets/**" , "*.info")}
|
||||||
|
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(project.sourceSets.main.resources.srcDirs) {
|
||||||
|
include "mcmod.info"
|
||||||
|
// replace version and mcversion
|
||||||
|
expand([version:project.version, mcversion:project.minecraft.version])
|
||||||
|
}
|
||||||
|
// copy everything else, thats not mcmod.info
|
||||||
|
from(project.sourceSets.main.resources.srcDirs) {
|
||||||
|
include("assets/**", "pack.mcmeta")
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
common/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
common/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
common/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
common/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#Wed Jul 02 15:54:47 CDT 2014
|
||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip
|
||||||
164
common/gradlew
vendored
Normal file
164
common/gradlew
vendored
Normal file
|
|
@ -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 "$@"
|
||||||
90
common/gradlew.bat
vendored
Normal file
90
common/gradlew.bat
vendored
Normal file
|
|
@ -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
|
||||||
70
common/mcmod.info
Normal file
70
common/mcmod.info
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"modid": "mysticores",
|
||||||
|
"name": "Mystic Ores",
|
||||||
|
"description": "Adds ores into the Nether and Overworld",
|
||||||
|
"version": $version,
|
||||||
|
"credits": "oitsjustjose",
|
||||||
|
"logoFile": "",
|
||||||
|
"mcversion": $mcversion,
|
||||||
|
"url": "http://bit.ly/13ep6OW",
|
||||||
|
"updateUrl": "",
|
||||||
|
"authorList": [ "oitsjustjose", "GotoLink" ],
|
||||||
|
"parent":"",
|
||||||
|
"screenshots": [],
|
||||||
|
"dependencies": [
|
||||||
|
"MinecraftForge"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"modid": "mysticruins",
|
||||||
|
"name": "Mystic Ruins",
|
||||||
|
"description": "Magical structures to explore in your minecraft game!",
|
||||||
|
"version": $version,
|
||||||
|
"credits": "oitsjustjose",
|
||||||
|
"logoFile": "",
|
||||||
|
"mcversion": $mcversion,
|
||||||
|
"url": "http://bit.ly/13ep6OW",
|
||||||
|
"updateUrl": "",
|
||||||
|
"authorList": [ "oitsjustjose", "GotoLink" ],
|
||||||
|
"parent":"",
|
||||||
|
"screenshots": [],
|
||||||
|
"dependencies": [
|
||||||
|
"MinecraftForge"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"modid": "mysticstones",
|
||||||
|
"name": "Mystic Stones",
|
||||||
|
"description": "Adds stones into selected worlds",
|
||||||
|
"version": $version,
|
||||||
|
"credits": "oitsjustjose",
|
||||||
|
"logoFile": "",
|
||||||
|
"mcversion": $mcversion,
|
||||||
|
"url": "http://bit.ly/13ep6OW",
|
||||||
|
"updateUrl": "",
|
||||||
|
"authorList": [ "oitsjustjose", "GotoLink" ],
|
||||||
|
"parent":"",
|
||||||
|
"screenshots": [],
|
||||||
|
"dependencies": [
|
||||||
|
"MinecraftForge"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"modid": "mysticworld",
|
||||||
|
"name": "Mystic World",
|
||||||
|
"description": "Adds a lot of stuff related to the other mystic mods",
|
||||||
|
"version": $version,
|
||||||
|
"credits": "oitsjustjose",
|
||||||
|
"logoFile": "",
|
||||||
|
"mcversion": $mcversion,
|
||||||
|
"url": "http://bit.ly/13ep6OW",
|
||||||
|
"updateUrl": "",
|
||||||
|
"authorList": [ "oitsjustjose", "GotoLink" ],
|
||||||
|
"parent":"",
|
||||||
|
"screenshots": [],
|
||||||
|
"dependencies": [
|
||||||
|
"MinecraftForge"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
138
common/mysticworld/entity/EntityCharge.java
Normal file
138
common/mysticworld/entity/EntityCharge.java
Normal file
|
|
@ -0,0 +1,138 @@
|
||||||
|
package mysticworld.entity;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
|
import net.minecraft.util.Vec3;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class EntityCharge extends Entity{
|
||||||
|
public EntityPlayer shootingEntity;
|
||||||
|
protected int ticksInAir = 0;
|
||||||
|
|
||||||
|
public EntityCharge(World par1World) {
|
||||||
|
super(par1World);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntityCharge(World par1World, EntityPlayer par2EntityPlayer) {
|
||||||
|
super(par1World);
|
||||||
|
this.setSize(0.25F, 0.25F);
|
||||||
|
this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch);
|
||||||
|
this.setPosition(this.posX, this.posY, this.posZ);
|
||||||
|
this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI);
|
||||||
|
this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI));
|
||||||
|
this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI);
|
||||||
|
this.shootingEntity = par2EntityPlayer;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUpdate() {
|
||||||
|
if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) {
|
||||||
|
this.setDead();
|
||||||
|
} else {
|
||||||
|
ticksInAir++;
|
||||||
|
super.onUpdate();
|
||||||
|
Vec3 vec3 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
|
||||||
|
Vec3 vec31 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||||
|
MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false);
|
||||||
|
vec3 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
|
||||||
|
vec31 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||||
|
if (movingobjectposition != null) {
|
||||||
|
vec31 = Vec3.createVectorHelper(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);
|
||||||
|
}
|
||||||
|
Entity entity = null;
|
||||||
|
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||||
|
double d0 = 0.0D;
|
||||||
|
for (int j = 0; j < list.size(); ++j) {
|
||||||
|
Entity entity1 = (Entity) list.get(j);
|
||||||
|
if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) {
|
||||||
|
AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(0.3F, 0.3F, 0.3F);
|
||||||
|
MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);
|
||||||
|
if (movingobjectposition1 != null) {
|
||||||
|
double d1 = vec3.distanceTo(movingobjectposition1.hitVec);
|
||||||
|
if (d1 < d0 || d0 == 0.0D) {
|
||||||
|
entity = entity1;
|
||||||
|
d0 = d1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (entity != null) {
|
||||||
|
movingobjectposition = new MovingObjectPosition(entity);
|
||||||
|
}
|
||||||
|
if (movingobjectposition != null) {
|
||||||
|
this.onImpact(movingobjectposition);
|
||||||
|
}
|
||||||
|
this.posX += this.motionX;
|
||||||
|
this.posY += this.motionY;
|
||||||
|
this.posZ += this.motionZ;
|
||||||
|
if (this.isInWater()) {
|
||||||
|
for (int k = 0; k < 4; ++k) {
|
||||||
|
float f3 = 0.25F;
|
||||||
|
this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
chargeFX();
|
||||||
|
this.setPosition(this.posX, this.posY, this.posZ);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void onImpact(MovingObjectPosition par1MovingObjectPosition) {}
|
||||||
|
|
||||||
|
public void chargeFX(){}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public boolean isInRangeToRenderDist(double par1){
|
||||||
|
return par1 > 1.0D && super.isInRangeToRenderDist(par1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public int getBrightnessForRender(float par1) {
|
||||||
|
return 15728880;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getCollisionBorderSize() {
|
||||||
|
return 1.0F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public float getShadowSize() {
|
||||||
|
return 0.0F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getBrightness(float par1) {
|
||||||
|
return 1.0F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void entityInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void readEntityFromNBT(NBTTagCompound var1) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void writeEntityToNBT(NBTTagCompound var1) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canBeCollidedWith() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
25
common/mysticworld/items/ItemMaterialArmor.java
Normal file
25
common/mysticworld/items/ItemMaterialArmor.java
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package mysticworld.items;
|
||||||
|
|
||||||
|
import mysticworld.MysticWorld;
|
||||||
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.item.ItemArmor;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
public class ItemMaterialArmor extends ItemArmor{
|
||||||
|
public ItemMaterialArmor(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||||
|
super(par2EnumArmorMaterial, 0, par4);
|
||||||
|
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
||||||
|
int suffix = this.armorType == 2 ? 2 : 1;
|
||||||
|
return "mysticworld:textures/models/armor/"+getArmorMaterial().name()+"_layer_" + suffix + ".png";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void registerIcons(IIconRegister iconRegister) {
|
||||||
|
itemIcon = iconRegister.registerIcon("mysticworld:"+getArmorMaterial().name()+"Armor_" + armorType);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue