mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
319682ae2b | ||
|
|
c8f20bd513 | ||
|
|
6f6823b6d2 | ||
|
|
a65c593c9a | ||
|
|
55840ac08e | ||
|
|
a7076ce817 | ||
|
|
e5e6474ff9 | ||
|
|
1703e8a862 | ||
|
|
b16524e919 | ||
|
|
d8cd023876 | ||
|
|
d64ec3caa2 | ||
|
|
515e0e1751 | ||
|
|
cc9bbefa3f | ||
|
|
18c7790abd | ||
|
|
ccbfa4995d | ||
|
|
54faf63bab | ||
|
|
e14bbe254a | ||
|
|
50d914e846 | ||
|
|
3b8dec5425 | ||
|
|
a332d3f2e5 | ||
|
|
d921717965 | ||
|
|
55f9e58297 | ||
|
|
7930108032 | ||
|
|
0fd8b319de | ||
|
|
051cc96514 | ||
|
|
40fdbb29c6 | ||
|
|
52798c8175 | ||
|
|
a5fed5c9b7 | ||
|
|
07624a3a4c | ||
|
|
dc4cd3331c | ||
|
|
6ea6f1e017 | ||
|
|
cb7b515626 | ||
|
|
46cb2cb95a | ||
|
|
cc987d6ac8 | ||
|
|
4f39132e4e | ||
|
|
4938c29e8c | ||
|
|
cbb0b15dee | ||
|
|
b881283492 | ||
|
|
5d4b84727d | ||
|
|
ad9135590d | ||
|
|
5cd884929f | ||
|
|
7bd5e7ac54 | ||
|
|
8cda9b9f43 | ||
|
|
444303d06d | ||
|
|
b3ca22fd1f | ||
|
|
1f8f324c56 | ||
|
|
3d1cdfa9af | ||
|
|
1275abc1c4 | ||
|
|
3347afb0c3 | ||
|
|
016049ef67 | ||
|
|
33b0af6682 | ||
|
|
8bf47d8f5f | ||
|
|
e9c91cda37 | ||
|
|
f645076eeb | ||
|
|
8ccb8f4d75 | ||
|
|
142637151a | ||
|
|
469867bc1f | ||
|
|
712679d8ac | ||
|
|
8eb8363b31 | ||
|
|
cd758dfec2 | ||
|
|
629cd06ef6 | ||
|
|
8e11456ea3 | ||
|
|
2c5e6ca041 | ||
|
|
a739206e01 | ||
|
|
9b9926b340 | ||
|
|
dac7c0ddef | ||
|
|
a6d1a9f1a4 | ||
|
|
98a5e73ddf | ||
|
|
f68b47473f | ||
|
|
a0df95b36c | ||
|
|
6ff6b72580 | ||
|
|
2f5cbb7d3c | ||
|
|
250e5c159f | ||
|
|
0c5f27e192 | ||
|
|
a6c439c078 | ||
|
|
300a22efab | ||
|
|
fdf89303e4 | ||
|
|
ffe3f9d33e | ||
|
|
0e0eaac495 | ||
|
|
e9c423579b | ||
|
|
1be990eb0e | ||
|
|
87a918b7c6 | ||
|
|
580f1f4e12 | ||
|
|
2b0b729ad0 | ||
|
|
f5a6ca61ba | ||
|
|
44ecbbdc45 | ||
|
|
d3c6ad5433 | ||
|
|
5b053dd990 | ||
|
|
e416d09dde | ||
|
|
723506d04f | ||
|
|
c352b42fc1 | ||
|
|
95275e57d6 | ||
|
|
02659b2816 | ||
|
|
02655f092e | ||
|
|
03bc6c0d83 | ||
|
|
85f8ab960d | ||
|
|
2146249b9c | ||
|
|
a4ebd6d859 | ||
|
|
6c79dfb104 | ||
|
|
9233d45b33 | ||
|
|
7082436190 | ||
|
|
fb8873b781 | ||
|
|
12c1b3b5c3 | ||
|
|
ecaa9babf7 | ||
|
|
16086558e4 | ||
|
|
cc4390ec21 | ||
|
|
0cb6505fd4 | ||
|
|
52128123ef | ||
|
|
6136a59a15 | ||
|
|
0886fd1389 | ||
|
|
ea409d34de | ||
|
|
1f7fe61afe | ||
|
|
1cb45e24c5 | ||
|
|
7ab175d8b6 | ||
|
|
31ff948c6d | ||
|
|
fa2590d41e | ||
|
|
0e77348285 | ||
|
|
608656be73 | ||
|
|
58c56623af | ||
|
|
f05c12b2ee | ||
|
|
4b802d4727 | ||
|
|
ffd6f2ca94 | ||
|
|
c309c20268 | ||
|
|
3d75e97b20 | ||
|
|
e23ebd1011 | ||
|
|
707a9bd64e | ||
|
|
6c567e247a | ||
|
|
132d9b47f0 | ||
|
|
5090aa76ea | ||
|
|
61e6b82bc3 | ||
|
|
533d7d55a8 | ||
|
|
7513ba1255 | ||
|
|
a560085ac9 | ||
|
|
f9ceeba358 | ||
|
|
c5d59a4505 | ||
|
|
0a6f6eda09 | ||
|
|
ca8b206912 | ||
|
|
3aea0376bc | ||
|
|
7751c01463 | ||
|
|
5699937179 | ||
|
|
abb7e64613 | ||
|
|
f31d3b9b09 | ||
|
|
a7515baf69 | ||
|
|
888f86d8bb | ||
|
|
3989430408 |
No files matched your search
+26
@@ -0,0 +1,26 @@
|
|||||||
|
# IntelliJ IDEA Files
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
out/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Eclipse Project Files
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
.settings/
|
||||||
|
eclipse/
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.gradle
|
||||||
|
gradle/
|
||||||
|
build/
|
||||||
|
debug/
|
||||||
|
bin/
|
||||||
|
config/
|
||||||
|
crash-reports/
|
||||||
|
logs/
|
||||||
|
mods/
|
||||||
|
saves/
|
||||||
|
usernamecache.json
|
||||||
|
options.txt
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "src/api/java/thaumcraft/api"]
|
||||||
|
path = src/api/java/thaumcraft/api
|
||||||
|
url = https://github.com/Azanor/thaumcraft-api
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
Copyright © 2013 MysteriousAges
|
||||||
|
This work is free. You can redistribute it and/or modify it under the
|
||||||
|
terms of the Do What The Fuck You Want To Public License, Version 2,
|
||||||
|
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2004 Sam Hocevar <[email protected]>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# MagicBees
|
||||||
|
Magic Bees is an addon for Forestry that adds several new bee species with a magical theme. Breeding them will help you brew potions, or give you extra ways to make resources for other magic-themed mods such as Thaumcraft and Ars Magica.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
Magic Bees depends on Forestry, which is required. You may [download Forestry here](http://www.curse.com/mc-mods/minecraft/forestry).
|
||||||
|
|
||||||
|
Minecraft Forge is also needed to run Forestry. Magic Bees will usually work with whichever version of Forge Forestry requires.
|
||||||
|
|
||||||
|
To install, simply download the mod from [CurseForge](http://minecraft.curseforge.com/mc-mods/65764-magic-bees) and place in the mods folder of your Minecraft instance.
|
||||||
|
|
||||||
|
## Compatability
|
||||||
|
Adding the following mods will result in additional features being unlocked:
|
||||||
|
* [Extra Bees](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1284348-1-7-10-1-6-4-forestry-binnies-mods-1-8-0-2-0-dev) - Mutations to get the Thaumic Bees species will use Extra Bees species in some cases. If Thaumcraft is installed, TB will add aspects to Extra Bees items. You will also get access to Thaumic Bees alleles though the genetic machines.
|
||||||
|
* [Thaumcraft](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1292130-thaumcraft-4-2-3-0-updated-2015-1-5) - Adds several tools related to Thaumcraft & Forestry, as well as adding Thaumcraft aspects to many Forestry items and blocks.
|
||||||
|
* [Equivalent Exchange 3](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1286564-equivalent-exchange-3-0-1-142) - Adds the Minium Bee, which produces Minium Shards. More features to come in the future.
|
||||||
|
* [Ars Magica](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1286036-ars-magica-v5-52-014-updated-august-2-1-5-2) - Adds 13 bee species that interact with Ars Magica, or produce AM items.
|
||||||
|
* [Tinker's Construct](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2218638-tinkers-construct) - Adds 3 new bee species to help produce some of the higher tier metals. The Aluminum bee will also help with producing some lower-tier alloys as well.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MagicBees is licesed under the WTFPL ( http://www.wtfpl.net/ )
|
||||||
|
|
||||||
|
Seriously, do whatever. Just don't ask us to support it if we didn't distribute it. =D
|
||||||
|
|
||||||
|
We didn't distribute it if you downloaded it from a site other than CurseForge, or from a modpack that does not use CurseForge as their source.
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "forestry"
|
||||||
|
url = "http://maven.ic2.player.to/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'forge'
|
||||||
|
|
||||||
|
ext.version_mod = "${project.version_major}.${project.version_minor}.${project.version_rev}"
|
||||||
|
version = project.version_mc + "-" + project.version_mod
|
||||||
|
group= "magicbees" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
archivesBaseName = "magicbees"
|
||||||
|
|
||||||
|
minecraft {
|
||||||
|
version = project.version_mc + "-" + project.version_forge
|
||||||
|
runDir = "."
|
||||||
|
|
||||||
|
replace '@VERSION@', project.version_mod
|
||||||
|
replace '@MCVERSION@', project.version_mc
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile "net.sengir.forestry:forestry_${project.version_mc}:${project.version_forestry}:dev"
|
||||||
|
compile files("/libs/BloodMagic-${project.version_mc}-${project.version_bloodmagic}.jar")
|
||||||
|
compile files("/libs/Botania ${project.version_botania}-deobf.jar")
|
||||||
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
inheritOutputDirs = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,3 +1,96 @@
|
|||||||
|
2.1.22
|
||||||
|
+ Added configoption to change thaumcraft saplingdroprate using thaumiumgrafter
|
||||||
|
* First 1.7.10 update on CurseForge! Woohoo!
|
||||||
|
* Updated chinese translation courtesy of Astrologers
|
||||||
|
* Fixed texturebugs with thaumium scoop and grafter
|
||||||
|
* Fixed backpack issues. Hopefully fixed for real this time
|
||||||
|
|
||||||
|
2.1.21
|
||||||
|
* Bumped forestry requirement to 3.0.0.174 (Might work with lower versions, untested)
|
||||||
|
* Fixed issue with Thaumic tools not having icons/localized names
|
||||||
|
|
||||||
|
2.1.20
|
||||||
|
* Fixes crash due to not registrering backpack correctly
|
||||||
|
* Fixes crash when breeding metal bees
|
||||||
|
* Fixed a missing configoption
|
||||||
|
* Started work on ThaumicApiary
|
||||||
|
|
||||||
|
2.1.19
|
||||||
|
* Updated to Forestry 3. This is now required.
|
||||||
|
* Updated Thaumcraft integration to work in 1.7.10
|
||||||
|
* Updated ExtraBees integration
|
||||||
|
* Changed all language files to the .lang format
|
||||||
|
|
||||||
|
2.1.18
|
||||||
|
* A few critical bugfixes to stop centrifuge crashes.
|
||||||
|
|
||||||
|
2.1.13
|
||||||
|
Updated to 1.7.2.
|
||||||
|
|
||||||
|
2.1.12
|
||||||
|
Changing hive gen to use isGenMineableReplaceable, which should make Deep hives spawn in Underground Biomes stone.
|
||||||
|
Fixing logic error in handling world gen/retrogen
|
||||||
|
|
||||||
|
2.1.11
|
||||||
|
Thermal Expansion & Redstone Arsenal bees, courtesy of jadedcat.
|
||||||
|
Adding missing loc string for Blinding speed allele
|
||||||
|
|
||||||
|
2.1.10
|
||||||
|
Changing Aluminum bees to use changed ore dictionary entries. mDiyo Houuuuuuuuuuuuuuuuuse!
|
||||||
|
Updating AM2 mob-spawning bees to use newer names.
|
||||||
|
|
||||||
|
2.1.9
|
||||||
|
Adding configuration option to not spawn special hives in Magic Biomes for people who hate fun, and specialness.
|
||||||
|
Adding a shadow to the Tempus aspect for Vazkii.
|
||||||
|
Possibly fixing issues with fluid containers.
|
||||||
|
|
||||||
|
2.1.8
|
||||||
|
Fixing inconcistent recipes between Thaumonomicon & actual crafting
|
||||||
|
Added missing centrifuge recipe for the Transmuting combs. This is the source of Unstable Propolis.
|
||||||
|
|
||||||
|
2.1.7
|
||||||
|
Some non-bee bug removals.
|
||||||
|
Magnets are ... a bit expensive. >_>;
|
||||||
|
|
||||||
|
2.1.6
|
||||||
|
How about not crashing because I forgot a colour tuple? >.>
|
||||||
|
Presenting a new bee species: You can't see it though, because it's invisible. >_>
|
||||||
|
|
||||||
|
2.1.5
|
||||||
|
Behold! The Mysterious Magnet! It attracts items to it, and thus, you, from great distances! (well, greater than your arms anyhow.)
|
||||||
|
Updating TC4 API for when it releases.
|
||||||
|
|
||||||
|
2.1.4
|
||||||
|
Some cleanup of Helper code
|
||||||
|
Hammering out rest of Transmutation effect, and exposing parts of it in an API so other people can hook into it if they want.
|
||||||
|
Have some Ars Magica 2 integration.
|
||||||
|
Also, have some Thaumcraft 4 integration!
|
||||||
|
|
||||||
|
2.1.3
|
||||||
|
Added a new mini bee branch: Polymorphic. It is said Unusual bees can have some unusual effects on the world if they are advanced...
|
||||||
|
Altered mutation to get Minium bees to fit into the Polymorphic branch.
|
||||||
|
Crumbling effect ages the area around the hive.
|
||||||
|
Added an IMC Handler to allow other mods to send an IMC message with key 'addCrumblePair" and a value containing two NBT tags
|
||||||
|
'source' and 'target' for ItemStacks of the source block and target block. Blocks added on a first-come-first-serve basis.
|
||||||
|
Only one entry per source block is accepted. Several vanilla defaults are provided, can be overridden using IMC.
|
||||||
|
Changing humidity tolerance of Sorcerous bees to be actually useful.
|
||||||
|
Fixed issues with the bee effects rendering (the little bee icons that shoot out of the bee machine while they work) for custom effects.
|
||||||
|
|
||||||
|
2.1.2
|
||||||
|
Fixed issue with mob spawning effects incorrectly checking for effect data variables.
|
||||||
|
Updating localization files (RU, DE)
|
||||||
|
|
||||||
|
2.1.1
|
||||||
|
Reworking some language entries & code to enable string formatting in capsule names.
|
||||||
|
Localization file updates.
|
||||||
|
Tinker's Construct bees (Ardite, Cobalt, Manyullyn) and Aluminum bees.
|
||||||
|
|
||||||
|
2.1.0
|
||||||
|
Added new permanent methods for crafting all frames. These will be available even when Thaumcraft is installed.
|
||||||
|
Removed temporary frame recipes which used to be available when Thaumcraft was not installed.
|
||||||
|
Lowered the cost of creating several frames through Thaumcraft. These should still be a viable option with the new recipes.
|
||||||
|
Fixed issue with foundation-requiring mutations in Forestry Alvearies. (Will likely not work with Extra Bees Alveary blocks)
|
||||||
|
|
||||||
2.0.5
|
2.0.5
|
||||||
Fixed hard-coded value in a subroutine that should not have been hard-coded.
|
Fixed hard-coded value in a subroutine that should not have been hard-coded.
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
2.2.2
|
||||||
|
false
|
||||||
|
Magic Apiary, assorted bugfixes.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
version_major=2
|
||||||
|
version_minor=2
|
||||||
|
version_rev=3
|
||||||
|
|
||||||
|
version_forestry=3.4.0.7
|
||||||
|
version_bloodmagic=1.3.1-7
|
||||||
|
version_botania=r1.6-180
|
||||||
|
|
||||||
|
version_mc=1.7.10
|
||||||
|
version_forge=10.13.2.1230
|
||||||
Vendored
BIN
Binary file not shown.
+6
@@ -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
|
||||||
@@ -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 "$@"
|
||||||
Vendored
+90
@@ -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
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,171 +0,0 @@
|
|||||||
<project name="MagicBees" basedir="../../../" default="main">
|
|
||||||
<property name="build.dir" value="build" />
|
|
||||||
<property name="classes.dir" value="${build.dir}/classes" />
|
|
||||||
<property name="resource.dir" value="${build.dir}/mc.dev" />
|
|
||||||
<property name="jar.dir" value="${build.dir}/jar" />
|
|
||||||
|
|
||||||
<property name="src.dir" value="Sources/MagicBees" />
|
|
||||||
<property name="lang.dir" value="Sources/MagicBees/magicbees_res/lang" />
|
|
||||||
|
|
||||||
<property name="forge.dir" value="${build.dir}/forge" />
|
|
||||||
<property name="mcp.dir" value="${forge.dir}/mcp" />
|
|
||||||
<property name="forestry.dir" value="Sources/Forestry/forestry_common/core" />
|
|
||||||
<property name="thaumcraft.dir" value="Sources/Thaumcraft" />
|
|
||||||
|
|
||||||
<property name="clientsrc.dir" value="${mcp.dir}/src/minecraft" />
|
|
||||||
|
|
||||||
<property name="mc.version" value="1.5.2"/>
|
|
||||||
<property name="forge.version" value="7.8.0.700"/>
|
|
||||||
<property name="magicbees.version" value="2.0.5"/>
|
|
||||||
|
|
||||||
<!-- for local deployment only, not used by main -->
|
|
||||||
<property name="deploy.type" value="previews" />
|
|
||||||
<property name="deploy.root" value="C:\Users\Marc\Dropbox\Public\magicBees" />
|
|
||||||
<property name="deploy.dir" value="${deploy.root}\${deploy.type}" />
|
|
||||||
<property name="share.dir" value="C:\Users\Marc\Dropbox\Shared\magicBees" />
|
|
||||||
<property name="local.dir" value="D:\Games\Minecraft\MultiMC\instances\1.4.6 pure\minecraft\mods" />
|
|
||||||
|
|
||||||
<!-- TARGETS -->
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${clientsrc.dir}/forestry" />
|
|
||||||
<delete dir="${clientsrc.dir}/thaumcraft" />
|
|
||||||
<delete dir="${clientsrc.dir}/magicbees" />
|
|
||||||
<delete dir="${classes.dir}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="forgeclean">
|
|
||||||
<!-- Unzip forge -->
|
|
||||||
<echo message="Unpacking Forge..." />
|
|
||||||
<unzip dest="${build.dir}">
|
|
||||||
<fileset dir="${resource.dir}">
|
|
||||||
<include name="minecraftforge-src-${mc.version}-${forge.version}.zip"/>
|
|
||||||
</fileset>
|
|
||||||
</unzip>
|
|
||||||
|
|
||||||
<chmod file="${forge.dir}/install.sh" perm="+x"/>
|
|
||||||
|
|
||||||
<!-- Install forge -->
|
|
||||||
<echo message="Installing Forge..." />
|
|
||||||
<exec dir="${forge.dir}" executable="cmd" osfamily="windows">
|
|
||||||
<arg line="/c install.cmd"/>
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<exec dir="${forge.dir}" executable="sh" osfamily="unix">
|
|
||||||
<arg value="install.sh" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="setup">
|
|
||||||
<!-- Set build number -->
|
|
||||||
<buildnumber file="${src.dir}/magicbees_res/build.number"/>
|
|
||||||
|
|
||||||
<!-- Copy source -->
|
|
||||||
<echo message="Copying Source" />
|
|
||||||
<copy todir="${clientsrc.dir}">
|
|
||||||
<fileset dir="${forestry.dir}">
|
|
||||||
<include name="forestry/api/**" />
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${thaumcraft.dir}/">
|
|
||||||
<include name="thaumcraft/api/**" />
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${src.dir}/magicbees_src">
|
|
||||||
<include name="**/magicbees/**" />
|
|
||||||
<include name="**/forestry/**" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${clientsrc.dir}" overwrite="true" failonerror="true">
|
|
||||||
<fileset dir="${src.dir}/magicbees_src">
|
|
||||||
<include name="**/VersionInfo.java" />
|
|
||||||
</fileset>
|
|
||||||
<filterset>
|
|
||||||
<filter token="MCVERSION" value="${mc.version}" />
|
|
||||||
<filter token="VERSION" value="${magicbees.version}" />
|
|
||||||
<filter token="BUILD_NUMBER" value="${build.number}" />
|
|
||||||
<filter token="FINGERPRINT" value="${key.fingerprint}" />
|
|
||||||
</filterset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- COMPILATION -->
|
|
||||||
<target name="compile">
|
|
||||||
|
|
||||||
<!-- Recompile -->
|
|
||||||
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
|
||||||
<arg line="/c recompile.bat"/>
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
|
||||||
<arg value="recompile.sh" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<!-- Reobf -->
|
|
||||||
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
|
||||||
<arg line="/c reobfuscate_srg.bat"/>
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
|
||||||
<arg value="reobfuscate.sh_srg" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<!-- Copy classes -->
|
|
||||||
<copy todir="${classes.dir}/client">
|
|
||||||
<fileset dir="${mcp.dir}/reobf/minecraft">
|
|
||||||
<exclude name="forestry/api/**" />
|
|
||||||
|
|
||||||
<include name="**/magicbees/**" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Copy magicBees resources -->
|
|
||||||
<copy todir="${classes.dir}/client">
|
|
||||||
<fileset dir="${src.dir}/magicbees_res">
|
|
||||||
<exclude name="build.xml"/>
|
|
||||||
<exclude name="build.number"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${classes.dir}/client" overwrite="true" failonerror="true">
|
|
||||||
<fileset dir="${src.dir}/magicbees_res">
|
|
||||||
<include name="**/mcmod.info" />
|
|
||||||
</fileset>
|
|
||||||
<filterset>
|
|
||||||
<filter token="MODVERSION" value="${magicbees.version}" />
|
|
||||||
</filterset>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Package the jars -->
|
|
||||||
<target name="package" depends="setup,compile">
|
|
||||||
<echo message="Packaging basic jar..." />
|
|
||||||
<jar destfile="${jar.dir}/magicbees-${magicbees.version}-${build.number}.jar" basedir="${classes.dir}/client"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Deploy to private share -->
|
|
||||||
<target name="deploy.private" depends="clean,package">
|
|
||||||
<copy todir="${local.dir}">
|
|
||||||
<fileset dir="${jar.dir}">
|
|
||||||
<include name="magicbees-*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${share.dir}/">
|
|
||||||
<fileset dir="${jar.dir}">
|
|
||||||
<include name="magicbees-*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Deploy to public share -->
|
|
||||||
<target name="deploy.public" depends="deploy.private">
|
|
||||||
<copy todir="${deploy.dir}">
|
|
||||||
<fileset dir="${jar.dir}">
|
|
||||||
<include name="magicbees-*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- Clean build target without copying of jars -->
|
|
||||||
<target name="main" depends="clean,package" />
|
|
||||||
|
|
||||||
</project>
|
|
||||||
@@ -1,486 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
|
||||||
<properties version="1.0">
|
|
||||||
<!-- Item names -->
|
|
||||||
<entry key="item.magicbees:jellyBabies.name">Handvoll Gummibärchen</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumScoop.name">Thaumium-Kescher</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumGrafter.name">Thaumium-Gartenschere</entry>
|
|
||||||
|
|
||||||
<!-- Specially handled Item names -->
|
|
||||||
<entry key="item.moonDial.name">Jade-Mondskala</entry>
|
|
||||||
|
|
||||||
<!-- Block names -->
|
|
||||||
<entry key="tile.planks.greatwood.name">Greatwood-Planken</entry>
|
|
||||||
<entry key="tile.slab.wood.greatwood.name">Greatwood-Stufe</entry>
|
|
||||||
<entry key="tile.planks.silverwood.name">Silverwood-Planken</entry>
|
|
||||||
<entry key="tile.slab.wood.silverwood.name">Silverwood-Stufe</entry>
|
|
||||||
<entry key="tile.effectJar.name">Glas des Bienensammlers</entry>
|
|
||||||
<entry key="tile.hive.curious.name">Seltsamer Bienenstock</entry>
|
|
||||||
<entry key="tile.hive.unusual.name">Ungewöhnlicher Bienenstock</entry>
|
|
||||||
<entry key="tile.hive.deep.name">Tiefer Bienenstock</entry>
|
|
||||||
<entry key="tile.hive.resonant.name">Hallender Bienenstock</entry>
|
|
||||||
<entry key="tile.hive.infernal.name">Höllischer Bienenstock</entry>
|
|
||||||
<entry key="tile.hive.oblivion.name">Vergessenheits-Bienenstock</entry>
|
|
||||||
|
|
||||||
<!-- Comb names -->
|
|
||||||
<entry key="comb.mundane">Gewöhnliche Wabe</entry>
|
|
||||||
<entry key="comb.molten">Geschmolzene Wabe</entry>
|
|
||||||
<entry key="comb.forgotten">Vergessene Wabe</entry>
|
|
||||||
<entry key="comb.occult">Okkulte Wabe</entry>
|
|
||||||
<entry key="comb.otherworldly">Jenseitige Wabe</entry>
|
|
||||||
<entry key="comb.paper">Papierwabe</entry>
|
|
||||||
<entry key="comb.soul">Seelenwabe</entry>
|
|
||||||
<entry key="comb.furtive">Verstohlene Wabe</entry>
|
|
||||||
<entry key="comb.aware">Gedächtniswabe</entry>
|
|
||||||
<entry key="comb.time">Zeit-Wabe</entry>
|
|
||||||
<entry key="comb.harmonizing">Harmonisierende Wabe</entry>
|
|
||||||
<entry key="comb.air">Luftige Wabe</entry>
|
|
||||||
<entry key="comb.fire">Feurige Wabe</entry>
|
|
||||||
<entry key="comb.water">Wässrige Wabe</entry>
|
|
||||||
<entry key="comb.earth">Irdene Wabe</entry>
|
|
||||||
<entry key="comb.magic">Magische Wabe</entry>
|
|
||||||
<entry key="comb.essence">Essenzwabe</entry>
|
|
||||||
<entry key="comb.potent">Mächtige Wabe</entry>
|
|
||||||
|
|
||||||
<!-- Wax names -->
|
|
||||||
<entry key="wax.magic">Magisches Wachs</entry>
|
|
||||||
<entry key="wax.soul">Seelenvolles Wachs</entry>
|
|
||||||
<entry key="wax.amnesic">Amnesisches Wachs</entry>
|
|
||||||
|
|
||||||
<!-- Drop names -->
|
|
||||||
<entry key="drop.enchanting">Bezaubernder Tropfen</entry>
|
|
||||||
<entry key="drop.intellect">Verstandestropfen</entry>
|
|
||||||
|
|
||||||
<!-- Pollen names -->
|
|
||||||
<entry key="pollen.unusual">Ungewöhnliche Pollen</entry>
|
|
||||||
<entry key="pollen.phased">Geschichtete Pollen</entry>
|
|
||||||
|
|
||||||
<!-- Nugget names -->
|
|
||||||
<entry key="nugget.iron">Eisenklumpen</entry>
|
|
||||||
<entry key="nugget.steel">Stahlklumpen</entry>
|
|
||||||
<entry key="nugget.copper">Kupferklumpen</entry>
|
|
||||||
<entry key="nugget.tin">Zinnklumpen</entry>
|
|
||||||
<entry key="nugget.silver">Silberklumpen</entry>
|
|
||||||
<entry key="nugget.lead">Bleiklumpen</entry>
|
|
||||||
<entry key="nugget.diamond">Diamantscherbe</entry>
|
|
||||||
<entry key="nugget.emerald">Smaragdscherbe</entry>
|
|
||||||
<entry key="nugget.apatite">Apatitscherbe</entry>
|
|
||||||
|
|
||||||
<!-- Propolis names -->
|
|
||||||
<entry key="propolis.dull">Trübes Bienenharz</entry>
|
|
||||||
<entry key="propolis.air">Hauchiges Bienenharz</entry>
|
|
||||||
<entry key="propolis.fire">Brennendes Bienenharz</entry>
|
|
||||||
<entry key="propolis.water">Fließendes Bienenharz</entry>
|
|
||||||
<entry key="propolis.earth">Steiniges Bienenharz</entry>
|
|
||||||
<entry key="propolis.magic">Durchzogenes Bienenharz</entry>
|
|
||||||
<entry key="propolis.unstable">Instabiles Bienenharz</entry>
|
|
||||||
|
|
||||||
<!-- Misc Resources -->
|
|
||||||
<entry key="resource.fragment">Wissensfragment</entry>
|
|
||||||
<entry key="resource.lump">Aromatischer Klumpen</entry>
|
|
||||||
<entry key="resource.fertilizer">Konzentriertes Gemisch</entry>
|
|
||||||
<entry key="resource.skullChip">Witherskelett-Knochensplitter</entry>
|
|
||||||
<entry key="resource.skullFragment">Witherskelett-Schädelfragment</entry>
|
|
||||||
<entry key="resource.dragonDust">Drakonischer Staub</entry>
|
|
||||||
<entry key="resource.dragonChunk">Drakonischer Klumpen</entry>
|
|
||||||
<entry key="resource.essenceFalseLife">Essenz des Falschen Lebens</entry>
|
|
||||||
<entry key="resource.essenceShallowGrave">Essenz eines Flachen Grabes</entry>
|
|
||||||
<entry key="resource.startNode">Bienen und Magie</entry>
|
|
||||||
<entry key="resource.crystalAspect">Kristallisierter %s - Aspekt</entry>
|
|
||||||
|
|
||||||
<!-- Frames -->
|
|
||||||
<entry key="item.frameMagic.name">Magisches Rähmchen</entry>
|
|
||||||
<entry key="item.frameResilient.name">Elastisches Rähmchen</entry>
|
|
||||||
<entry key="item.frameGentle.name">Behutsames Rähmchen</entry>
|
|
||||||
<entry key="item.frameMetabolic.name">Metabolisches Rähmchen</entry>
|
|
||||||
<entry key="item.frameNecrotic.name">Nekrotisches Rähmchen</entry>
|
|
||||||
<entry key="item.frameTemporal.name">Zeiträhmchen</entry>
|
|
||||||
<entry key="item.frameOblivion.name">Vergessenheitsrähmchen</entry>
|
|
||||||
|
|
||||||
<!-- Capsule names -->
|
|
||||||
<entry key="capsule.magic">Magische Kapsel</entry>
|
|
||||||
<entry key="capsule.void">Kapsel der Leere</entry>
|
|
||||||
|
|
||||||
<!-- Liquids -->
|
|
||||||
<entry key="liquid.">Leere</entry>
|
|
||||||
<entry key="liquid.water">Wasser</entry>
|
|
||||||
<entry key="liquid.lava">Lava</entry>
|
|
||||||
<entry key="liquid.biomass">Biomasse</entry>
|
|
||||||
<entry key="liquid.biofuel">Biodiesel</entry>
|
|
||||||
<entry key="liquid.Oil">Öl</entry>
|
|
||||||
<entry key="liquid.Fuel">Diesel</entry>
|
|
||||||
<entry key="liquid.seedoil">Samenkernöl</entry>
|
|
||||||
<entry key="liquid.honey">Honig</entry>
|
|
||||||
<entry key="liquid.juice">Saft</entry>
|
|
||||||
<entry key="liquid.ice">Eis</entry>
|
|
||||||
<entry key="liquid.milk">Milkch</entry>
|
|
||||||
<entry key="liquid.acid">Säure</entry>
|
|
||||||
<entry key="liquid.poison">Gift</entry>
|
|
||||||
<entry key="liquid.liquidNitrogen">Flüssiger Stickstoff</entry>
|
|
||||||
<entry key="liquid.liquidDNA">Flüssige DNA</entry>
|
|
||||||
<entry key="liquid.Creosote Oil">Teeröl</entry>
|
|
||||||
<entry key="liquid.Steam">Dampf</entry>
|
|
||||||
|
|
||||||
<!-- Moon Phases -->
|
|
||||||
<entry key="moon.full">Vollmond</entry>
|
|
||||||
<entry key="moon.gibbousWaning">Abnehmender Dreiviertelmond</entry>
|
|
||||||
<entry key="moon.gibbousWaxing">Zunehmender Dreiviertelmond</entry>
|
|
||||||
<entry key="moon.halfWaning">Abnehmender Halbmond</entry>
|
|
||||||
<entry key="moon.halfWaxing">Zunehmender Halbmond</entry>
|
|
||||||
<entry key="moon.crescentWaning">Abnehmender Sichelmond</entry>
|
|
||||||
<entry key="moon.crescentWaxing">Zunehmender Sichelmond</entry>
|
|
||||||
<entry key="moon.new">Neumond</entry>
|
|
||||||
|
|
||||||
<!-- Miscellaneous names -->
|
|
||||||
<entry key="backpack.thaumaturge">Rucksack des Thaumaturgen</entry>
|
|
||||||
<entry key="itemGroup.magicBees">Magische Bienen</entry>
|
|
||||||
|
|
||||||
<!-- Escritoire Strings -->
|
|
||||||
<entry key="research.requiresBlock">Erfordert die Basis des %s</entry>
|
|
||||||
<entry key="research.requiresPhase">Kommt vor zwischen %s and %s</entry>
|
|
||||||
<entry key="research.requiresPhaseSingle">Während des %s</entry>
|
|
||||||
<entry key="research.requiresNode">Kommt nur vor, wenn eine Nodie nahe ist</entry>
|
|
||||||
<entry key="research.requiresNodeSpecific">Kommt nur vor im Einfluss einer %s Nodie</entry>
|
|
||||||
<entry key="research.requiresBiome">Kommt vor in einem %s</entry>
|
|
||||||
<entry key="research.node.pure">Pur</entry>
|
|
||||||
<entry key="research.node.dark">Dunkel</entry>
|
|
||||||
<entry key="research.node.chaotic">Chaotisch</entry>
|
|
||||||
<entry key="research.block.crystals">Kristalltraube</entry>
|
|
||||||
|
|
||||||
<!-- Species names -->
|
|
||||||
<entry key="magicbees.speciesMystical">Mystisch</entry>
|
|
||||||
<entry key="magicbees.speciesMystical.description">Gemein in vielen Teilen der Welt haben diese Bienen
|
|
||||||
ein wenig extra Laune auf sie.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous">Magisch</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous.description"></entry>
|
|
||||||
<entry key="magicbees.speciesUnusual">Ungewöhnlich</entry>
|
|
||||||
<entry key="magicbees.speciesUnusual.description">"Ein seltsames Exemplar für meine
|
|
||||||
Sammlung!"|Junior-Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned">Abgestimmt</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned.description">Sie fliegen durch die Luft, als ob sie von ungesehenen
|
|
||||||
Fäden geführt würden.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEldritch">Unheimlich</entry>
|
|
||||||
<entry key="magicbees.speciesEldritch.description">Das Potential, das in den Vorfahren dieser Bienen
|
|
||||||
verschlossen war, ist nun in den Vordergrund getreten.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEsoteric">Esoterisch</entry>
|
|
||||||
<entry key="magicbees.speciesEsoteric.description">Eine ungewöhnliche Kreuzung, welche magische
|
|
||||||
Eigenschaften zu haben scheint.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious">Mysteriös</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious.description">Diese Bienen sind zum Ender der Welt und wieder zurück
|
|
||||||
geflogen, ihre Macht ist dabei gestiegen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesArcane">Geheimnisvoll</entry>
|
|
||||||
<entry key="magicbees.speciesArcane.description">"Ihre Erzeugnisse sind mit Energie geladen."|Azanor,
|
|
||||||
Master Thaumaturge</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesCharmed">Bezaubert</entry>
|
|
||||||
<entry key="magicbees.speciesCharmed.description">Deine ersten Versuche in der Thaumcraft-Bienenzucht
|
|
||||||
haben Früchte getragen. Summende Früchte.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted">Verzaubert</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted.description">Erfolgreiche Generationen bezauberter Bienen haben
|
|
||||||
ihre Verbindungen zum Unbekannten verstärkt.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural">Übernatürlich</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural.description">Diese Bienen markieren die Linie zwischen dieser Welt
|
|
||||||
und dem Jenseits.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEthereal">Ätherisch</entry>
|
|
||||||
<entry key="magicbees.speciesEthereal.description">Geisterhaft, und geladen mit Energie von
|
|
||||||
jenseits.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesWatery">Wässrig</entry>
|
|
||||||
<entry key="magicbees.speciesWatery.description">Mögen feuchte Orte und fließendes Wasser.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen">Irden</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen.description">Sie haben eine eisenharte Verbundung mit Stein und
|
|
||||||
Erde.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesFirey">Feurig</entry>
|
|
||||||
<entry key="magicbees.speciesFirey.description">So nah, wie man an eine lebende Flamme kommen kann,
|
|
||||||
ohne Glühen zur Folge zu haben.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWindy">Windig</entry>
|
|
||||||
<entry key="magicbees.speciesWindy.description">Selten in flachen, weiten, offen Räumen gesehen. Ihre
|
|
||||||
Territorien sind gewaltig.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesPupil">Schülerhaft</entry>
|
|
||||||
<entry key="magicbees.speciesPupil.description">"Was will die Biene mit meinem Papier?!"|Yorae,
|
|
||||||
Biblothekar</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly">Schulisch</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly.description">"Ich bin mir nicht sicher, aber ich glaube sie sind
|
|
||||||
schlauer als ich..."|Yorae, Bibliothekar</entry>
|
|
||||||
<entry key="magicbees.speciesSavant">Gelehrt</entry>
|
|
||||||
<entry key="magicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))). Löse nach
|
|
||||||
Honig auf.|Notiz, gefunden auf Yoraes Schreibtisch</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAware">Bewusst</entry>
|
|
||||||
<entry key="magicbees.speciesAware.description">"Sie können in deine Seele sehen!"|Florastar,
|
|
||||||
Bienenzucht-Expertin</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit">Geist</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit.description">Es wird erzählt, diese Bienen könnten Kontakt zu den
|
|
||||||
Toten aufnehmen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSoul">Seele</entry>
|
|
||||||
<entry key="magicbees.speciesSoul.description">"Der furchtbare Pirat Roberts ist gekommen für deine
|
|
||||||
SEEEEEELE!!"|Furchtbarer Pirat Roberts</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesSkulking">Schleichend</entry>
|
|
||||||
<entry key="magicbees.speciesSkulking.description">Diese Bienen wurden xenophob und schlecht gelaunt,
|
|
||||||
lass Vorsicht walten!|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly">Gespenstisch</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly.description">"*seufz*... Ernsthaft?"|Taveria</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery">Spinnig</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery.description">Spinnenbiene; Macht, was auch immer eine Spinnenbiene
|
|
||||||
macht.|Unbekannt</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering">Schwelend</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering.description">Die schleichenden Bienen sind entflammt worden mit dem
|
|
||||||
Feuer der der immer brennenden Blazes.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTimely">Rechtzeitig</entry>
|
|
||||||
<entry key="magicbees.speciesTimely.description">"Ein Imker ist nie zu spät. Er kommt immer dann an,
|
|
||||||
wenn er er es geplant hat!"|Sengir, Verrückter Imker</entry>
|
|
||||||
<entry key="magicbees.speciesLordly">Stolz</entry>
|
|
||||||
<entry key="magicbees.speciesLordly.description">Sie leben in Frieden innerhalb des Sichtfelds des
|
|
||||||
Auges der Harmonie|Ramponierte überreste des antiken Apinomicons</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral">Doktorisch</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral.description">"Willst du ein Gummibärchen haben?"|Vorbeigehender
|
|
||||||
Unbekannter mit großem Schal und blauer Box</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesInfernal">Höllisch</entry>
|
|
||||||
<entry key="magicbees.speciesInfernal.description">Entstanden tief im höllischen Reich haben sie
|
|
||||||
unbekannte Fähigkeiten erworben.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesHateful">Hasserfüllt</entry>
|
|
||||||
<entry key="magicbees.speciesHateful.description">|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful">Gehässig</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful.description">Sie beschützen ihr Territorium entschlossen, mit dem
|
|
||||||
Eifer von Freunden und Rahmen aus Feuer.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWithering">Verfallend</entry>
|
|
||||||
<entry key="magicbees.speciesWithering.description">Ihr bloßes Vorbeikommen sorgt dafür, dass das Leben
|
|
||||||
versagt, indem sie langsam alle Energie aus ihrem Territorium
|
|
||||||
saugen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesOblivion">Vergessenheit</entry>
|
|
||||||
<entry key="magicbees.speciesOblivion.description">Es ist unklar, ob diese Bienen in dieser Welt
|
|
||||||
beheimatet sind oder in einer anderen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesNameless">Namenlos</entry>
|
|
||||||
<entry key="magicbees.speciesNameless.description">"Andere Naturforscher haben abgelehnt, diese Bienen zu studieren.
|
|
||||||
Ich muss wissen, warum."|Zerrissene Forschungsnotizen</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned">Verlassen</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned.description">"Je mehr ich diese Bienen studiere, desto mehr fühle ich,
|
|
||||||
dass sie nicht hierher oder irgendwo anders hin gehören."|Zerrissene Forschungsnotizen</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn">Einsam</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn.description">"Ich bin nun überzeugt, sie wurden mit Absicht in unserem Universum
|
|
||||||
von nicht auszumachenden Wesen zurückgelassen."|Zerrissene Forschungsnotizen</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic">Drakonisch</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic.description">"Mit einem höllischen Geräusch brachen sie aus ihrem Stock aus.
|
|
||||||
Das war das letzte, was wir jemals von Gerald gesehen haben."|Zerrissene Forschungsnotizen</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesIron">Eisenhaltig</entry>
|
|
||||||
<entry key="magicbees.speciesIron.description">Etwas des Grundmetalls absorbiert, können diese Bienen
|
|
||||||
die Essenz des Eisens aus der Region konzentrieren.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGold">Aurisch</entry>
|
|
||||||
<entry key="magicbees.speciesGold.description">Nicht alles ist Gold, was glänzt.|Antiker Aphorismus</entry>
|
|
||||||
<entry key="magicbees.speciesCopper">Cuprum</entry>
|
|
||||||
<entry key="magicbees.speciesCopper.description">Ein Grundmetall, gemein in vielen Anwendungen; diese
|
|
||||||
Bienen sind hilfreich für ressourcenhungrige Magier.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTin">Stannum</entry>
|
|
||||||
<entry key="magicbees.speciesTin.description">Obwohl metallisch, sind diese Bienen überraschend
|
|
||||||
fragil.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSilver">Argentum</entry>
|
|
||||||
<entry key="magicbees.speciesSilver.description">Obwohl sie nicht so viel Aufmerksamkeit bekommen wir
|
|
||||||
Goldene Bienen, sind sie nichtsdestotrotz wertvoll.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesLead">Plumbum</entry>
|
|
||||||
<entry key="magicbees.speciesLead.description">Ein Favorit von Amateuralchemisten, sie glauben, sie
|
|
||||||
können diese Bienen in Gold verwandeln.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond">Diamandi</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond.description">Kristallin, glitzernd, und härter als Drachenzähne.
|
|
||||||
Diese Bienen sind nichts davon.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald">Esmeraldi</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald.description">Es wird erzählt, sie waren in einem Land beherrscht
|
|
||||||
vom Großen Zauberer, und haben den Aspect der Stadt
|
|
||||||
angenommen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesApatite">Apatin</entry>
|
|
||||||
<entry key="magicbees.speciesApatite.description">Tag und Nacht summten die Weinenden. Ich
|
|
||||||
verbarrikadierte die Fenster und versteckte mich im Keller, aber
|
|
||||||
überall durchdrang der schrille Ton der Apatinen Bienen die Wände
|
|
||||||
brachte mich zum Wahnsinn.|Beekeeping 101</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCStark">Extrem</entry>
|
|
||||||
<entry key="magicbees.speciesTCStark.description">"Diese Bienen fühlen sich ungewönlich stark zu
|
|
||||||
Scherben hingezogen. Dies rechtfertigt weitere
|
|
||||||
Untersuchungen."|Azanor, Meisterthaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir">Aura</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir.description">"Sie arbeiten so atemberaubend schnell."|Sengir,
|
|
||||||
verrückter Imker</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire">Ignis</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire.description">Achtung: Inhalt des Bienenkorbs extrem
|
|
||||||
heiß.|Warnschild auf Azanors Bienenkorb</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater">Aqua</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater.description">"Ich habe mal versucht, die zu züchten, aber es lief
|
|
||||||
nicht alles so gut."|MysteriousAges, Fortgeschrittener Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth">Solum</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth.description">"Ich muss noch mal das Rezept für diese Bienen
|
|
||||||
ausgraben, aber Achtung, ihre Stacheln boren sich in deine
|
|
||||||
Haut."|MysteriousAges, Anfänger in der Comedy</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic">Praecantatio</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic.description">Bienenzucht ist Magie!|Apinomicon, Preface</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCVis">Vis</entry>
|
|
||||||
<entry key="magicbees.speciesTCVis.description">"Sie können Veränderungen in der Aura wahrnehmen, aber
|
|
||||||
noch nicht verändern."|Azanors Mitschriften</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure">Pur</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure.description">"Es ist wie ein Bienenwächter!"|MysteriousAges,
|
|
||||||
Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux">Flux</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux.description">"Ich dachte, sie würden mit beim Aufräumen helfen,
|
|
||||||
aber sie haben es noch dreckiger gemacht!"|Kreicus, Fortgeschrittener
|
|
||||||
Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive">Anziehend</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive.description">Nachdem sie eine irre Verwandlung hinter sich gebracht
|
|
||||||
haben, wirken diese Bienen nun anziehend auf Magie.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating">Verjüngend</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating.description">Das Summen dieses Stocks ist magisch, und wird nach
|
|
||||||
einiger Zeit von Nahen Knoten aufgenommen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCBrainy">Intelligent</entry>
|
|
||||||
<entry key="magicbees.speciesTCBrainy.description">Ihre Waben mögen zwar übel riechen und stinken, aber
|
|
||||||
ihr Geist ist weit entwickelt.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy">Wispig</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy.description">Ihre Sprache ist entstellt und unverständlich. Es ist
|
|
||||||
möglich, dass sie zu unnatürlichen Wesen sprechen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty">Verrückt</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty.description">Sie scheinen auf unerklärliche Art und Weise
|
|
||||||
Fledermäuse anzuziehen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCChicken">Geflügel</entry>
|
|
||||||
<entry key="magicbees.speciesTCChicken.description">"Gack, Gack, Gack! ... Du hast mich gehört."|Verwirrte
|
|
||||||
Biene</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef">Rindfleisch</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef.description">"Muh, muh, muh. Moment, was?"|Verwirrte Biene</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork">Schweineähnlich</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork.description">"Oink, oink. Äh.... bsss?"|Verwirrte Biene</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEEMinium">Minium</entry>
|
|
||||||
<entry key="magicbees.speciesEEMinium.description">Es könnte möglich sein, ihre launische und wechselnde
|
|
||||||
Natur auszunutzen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEssence">Essenz</entry>
|
|
||||||
<entry key="magicbees.speciesAMEssence.description">Veranlasst von Stäubchen in Luft und Erde,
|
|
||||||
konzentrieren sie Energie</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence">Quintessenziell</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence.description">Das Herz der Magie ruht in allen Dingen.|Apinomicon,
|
|
||||||
Einleitung</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEarth">Erde</entry>
|
|
||||||
<entry key="magicbees.speciesAMEarth.description">Gestärkt durch die Erde sind ihre Produkte mit Essenz
|
|
||||||
durchzogen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir">Luft</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir.description">Schnell wie der Wind und leichter als Luft.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire">Feuer</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire.description">Ihre Kolonie kann Temperaturen erreichen, die Wasser
|
|
||||||
sieden und Metall schmelzen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater">Wasser</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater.description">Dadurch, dass sie lange Flüssigkeiten ausgesetzt
|
|
||||||
waren, sind ihre Waben ziemlich nass und schwer.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMLightning">Blitz</entry>
|
|
||||||
<entry key="magicbees.speciesAMLightning.description">Sie können gewaltige Distanzen in einem Wimpernschlag
|
|
||||||
zurücklegen, und sie sind dafür bekannt, viele Waldbrände zu
|
|
||||||
legen.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant">Staude</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant.description">Sie haben eine Affinität zu allem, was grün ist und
|
|
||||||
wächst.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce">Eis</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce.description">"Sie bleiben dabei, mir sachen zu stehlen, und nie
|
|
||||||
sehe ich sie. Sie sind viel zu rutschig."|MysteriousAges,
|
|
||||||
unverbesserlicher Witzbold</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma">Magma</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma.description">Wenn sie vorbeisausen, sengen sie die Oberfläche der
|
|
||||||
Landschaft an, entfernen eventuell alle Pflanzen und fragilen
|
|
||||||
Mineralien.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMArcane">Arkanen</entry>
|
|
||||||
<entry key="magicbees.speciesAMArcane.description">"Seltsame Kreaturen, obwohl ihre Produkte sehr
|
|
||||||
nützlich sind."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMVortex">Vortex</entry>
|
|
||||||
<entry key="magicbees.speciesAMVortex.description">Heißhungrig auf Mana, könnten sie gefährlich für jeden
|
|
||||||
Zauberer sein.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight">Wicht</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight.description">"Sie ziehen magische Wesen an; nicht nur
|
|
||||||
sanftmütige."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<!-- Blank species entries <entry key="thaumicbees.species"></entry> <entry
|
|
||||||
key="thaumicbees.species.description"></entry> -->
|
|
||||||
|
|
||||||
<!-- Bee Alleles -->
|
|
||||||
<entry key="magicbees.effectCurative">Reinigend</entry>
|
|
||||||
<entry key="magicbees.effectDigSpeed">Abbaugeschwindigkeit</entry>
|
|
||||||
<entry key="magicbees.effectMoveSpeed">Schnelligkeit</entry>
|
|
||||||
<entry key="magicbees.effectSlowSpeed">Langsamkeit</entry>
|
|
||||||
<entry key="magicbees.effectWithering">Verfallen</entry>
|
|
||||||
<entry key="magicbees.effectNodeGeneration">Aura-Anziehungskraft</entry>
|
|
||||||
<entry key="magicbees.effectNodePurify">Aura reinigen</entry>
|
|
||||||
<entry key="magicbees.effectNodeFlux">Aura Flux</entry>
|
|
||||||
<entry key="magicbees.effectNodeCharge">Aura aufladen</entry>
|
|
||||||
<entry key="magicbees.effectBrainy">Intelligent</entry>
|
|
||||||
<entry key="magicbees.effectBatty">Verrückt</entry>
|
|
||||||
<entry key="magicbees.effectWispy">Dünn</entry>
|
|
||||||
<entry key="magicbees.effectGhastly">Gespenstisch</entry>
|
|
||||||
<entry key="magicbees.effectSpidery">Spinnig</entry>
|
|
||||||
<entry key="magicbees.effectAblaze">Brennen</entry>
|
|
||||||
<entry key="magicbees.effectManaDrainer">Vortex</entry>
|
|
||||||
<entry key="magicbees.effectAMWisp">Spirituell</entry>
|
|
||||||
<entry key="tb.bees.flower.book">Bücher</entry>
|
|
||||||
<entry key="tb.bees.flower.magic">Thaumische Blumen</entry>
|
|
||||||
<entry key="tb.bees.flower.arsmagica">Exotische Blumen</entry>
|
|
||||||
<entry key="tb.bees.flower.node">Nodie</entry>
|
|
||||||
|
|
||||||
<!-- Classifications -->
|
|
||||||
<entry key="classification.veiled">Verschleiert</entry>
|
|
||||||
<entry key="classification.veiled.description">Die seltsame Spezies gefunden verstreut in der Welt
|
|
||||||
könnte Fähigkeiten jenseits unserers Logik haben.|Apinomicon</entry>
|
|
||||||
<entry key="classification.arcane">Arkan</entry>
|
|
||||||
<entry key="classification.arcane.description">Diese Bienen haben eine unbescheibliche Affinität für
|
|
||||||
Magie.|Apinomicon</entry>
|
|
||||||
<entry key="classification.supernatural">Übernatürlich</entry>
|
|
||||||
<entry key="classification.supernatural.description">Keine ordinären Bienen mehr, sie sind mit vielen
|
|
||||||
merkwürdigen Vorkommnissen in Verbindung gebracht worden.|Apinomicon</entry>
|
|
||||||
<entry key="classification.scholarly">Gelehrt</entry>
|
|
||||||
<entry key="classification.scholarly.description">Die Kaste der Bienen, die einen großen Intellekt und
|
|
||||||
deduktive Fähigkeiten besitzen.|Apinomicon</entry>
|
|
||||||
<entry key="classification.skulking">Schleichend</entry>
|
|
||||||
<entry key="classification.skulking.description">Unangenehm und boshaft. Behandle diese Gruppe mit
|
|
||||||
Vorsicht.|Apinomicon</entry>
|
|
||||||
<entry key="classification.magic">Bewusst</entry>
|
|
||||||
<entry key="classification.magic.description">Es ist unklar, ob sie empfindsam sind, aber sie haben
|
|
||||||
ein überraschendes Bewusstsein ihrer Umgebung.|Apinomicon</entry>
|
|
||||||
<entry key="classification.time">Zeit</entry>
|
|
||||||
<entry key="classification.time.description">Durch die kluge Nutzung der Zeitreise schaffen diese
|
|
||||||
Bienen doppelt so viel an einem Tag.|Apinomicon</entry>
|
|
||||||
<entry key="classification.soul">Seelenvoll</entry>
|
|
||||||
<entry key="classification.soul.description">Es wäre unheimlich, zu denken, dass diese Bienen die
|
|
||||||
Seelen der Verstorbenen sammeln.|Apinomicon</entry>
|
|
||||||
<entry key="classification.abominable">Furchtbar</entry>
|
|
||||||
<entry key="classification.abominable.description">Entstanden in den feurigen Tiefen des Nethers gibt es
|
|
||||||
nichts schönes über diese Kreaturen.|Apinomicon</entry>
|
|
||||||
<entry key="classification.Extrinsic">Extrinsisch</entry>
|
|
||||||
<entry key="classification.Extrinsic.description">Es ist unbekannt, ob diese Kreaturen die Familie
|
|
||||||
Apidae in diesem Universum erzeugt haben oder ob diese sich
|
|
||||||
seperat entwickelt haben.|Apinomicon</entry>
|
|
||||||
<entry key="classification.metallic">Metallisch</entry>
|
|
||||||
<entry key="classification.metallic.description">Sie sammeln metallische Fragmente und kombinieren sie
|
|
||||||
zu größeren Portionen.|Apinomicon</entry>
|
|
||||||
<entry key="classification.gem">Edelstein</entry>
|
|
||||||
<entry key="classification.gem.description">Sie sammeln Fragmente kostbarer Edelsteine in ihren
|
|
||||||
Waben.|Apinomicon</entry>
|
|
||||||
<entry key="classification.thaumic">Thaumisch</entry>
|
|
||||||
<entry key="classification.thaumic.description">Diese Bienen haben eine erhöhte Affinität zu Magie und
|
|
||||||
Aura.|Apinomicon</entry>
|
|
||||||
<entry key="classification.fleshy">Fleischig</entry>
|
|
||||||
<entry key="classification.fleshy.description">Durch unbekannte Mechanismen erhalten diese Bienen
|
|
||||||
Stückchen von Tierfleisch. Irgendwie ist es immer noch
|
|
||||||
essbar.|Apinomicon</entry>
|
|
||||||
<entry key="classification.alchemical">Alchemisch</entry>
|
|
||||||
<entry key="classification.alchemical.description">Diese Bienen haben eine wechselhafte Natur.|Apinomicon</entry>
|
|
||||||
<entry key="classification.essential">Essentiell</entry>
|
|
||||||
<entry key="classification.essential.description">Diese Bienen haben eine erhöhte Affinität zu
|
|
||||||
aspektischer Magie.|Apinomicon</entry>
|
|
||||||
|
|
||||||
</properties>
|
|
||||||
@@ -1,392 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
|
||||||
<properties version="1.0">
|
|
||||||
<!-- Item names -->
|
|
||||||
<entry key="item.magicbees:jellyBabies.name">Handful of Jelly Babies</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumScoop.name">Thaumium Scoop</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumGrafter.name">Thaumium Grafter</entry>
|
|
||||||
|
|
||||||
<!-- Specially handled Item names -->
|
|
||||||
<entry key="item.moonDial.name">Jade Moon Dial</entry>
|
|
||||||
|
|
||||||
<!-- Block names -->
|
|
||||||
<entry key="tile.planks.greatwood.name">Greatwood Planks</entry>
|
|
||||||
<entry key="tile.slab.wood.greatwood.name">Greatwood Slab</entry>
|
|
||||||
<entry key="tile.planks.silverwood.name">Silverwood Planks</entry>
|
|
||||||
<entry key="tile.slab.wood.silverwood.name">Silverwood Slab</entry>
|
|
||||||
<entry key="tile.effectJar.name">Bee Collector's Jar</entry>
|
|
||||||
<entry key="tile.hive.curious.name">Curious Hive</entry>
|
|
||||||
<entry key="tile.hive.unusual.name">Unusual Hive</entry>
|
|
||||||
<entry key="tile.hive.deep.name">Deep Hive</entry>
|
|
||||||
<entry key="tile.hive.resonant.name">Resonating Hive</entry>
|
|
||||||
<entry key="tile.hive.infernal.name">Infernal Hive</entry>
|
|
||||||
<entry key="tile.hive.oblivion.name">Oblivion Hive</entry>
|
|
||||||
|
|
||||||
<!-- Comb names -->
|
|
||||||
<entry key="comb.mundane">Mundane Comb</entry>
|
|
||||||
<entry key="comb.molten">Molten Comb</entry>
|
|
||||||
<entry key="comb.forgotten">Forgotten Comb</entry>
|
|
||||||
<entry key="comb.occult">Occult Comb</entry>
|
|
||||||
<entry key="comb.otherworldly">Otherworldy Comb</entry>
|
|
||||||
<entry key="comb.paper">Papery Comb</entry>
|
|
||||||
<entry key="comb.soul">Soul Comb</entry>
|
|
||||||
<entry key="comb.furtive">Furtive Comb</entry>
|
|
||||||
<entry key="comb.aware">Memory Comb</entry>
|
|
||||||
<entry key="comb.time">Temporal Comb</entry>
|
|
||||||
<entry key="comb.harmonizing">Harmonizing Comb</entry>
|
|
||||||
<entry key="comb.air">Windy Comb</entry>
|
|
||||||
<entry key="comb.fire">Firey Comb</entry>
|
|
||||||
<entry key="comb.water">Watery Comb</entry>
|
|
||||||
<entry key="comb.earth">Earthy Comb</entry>
|
|
||||||
<entry key="comb.magic">Infused Comb</entry>
|
|
||||||
<entry key="comb.essence">Essence Comb</entry>
|
|
||||||
<entry key="comb.potent">Potent Comb</entry>
|
|
||||||
|
|
||||||
<!-- Wax names -->
|
|
||||||
<entry key="wax.magic">Magic Wax</entry>
|
|
||||||
<entry key="wax.soul">Soulful Wax</entry>
|
|
||||||
<entry key="wax.amnesic">Amnesic Wax</entry>
|
|
||||||
|
|
||||||
<!-- Drop names -->
|
|
||||||
<entry key="drop.enchanting">Enchanting Drop</entry>
|
|
||||||
<entry key="drop.intellect">Intellect Drop</entry>
|
|
||||||
|
|
||||||
<!-- Pollen names -->
|
|
||||||
<entry key="pollen.unusual">Unusual Pollen</entry>
|
|
||||||
<entry key="pollen.phased">Phased Pollen</entry>
|
|
||||||
|
|
||||||
<!-- Nugget names -->
|
|
||||||
<entry key="nugget.iron">Iron Nugget</entry>
|
|
||||||
<entry key="nugget.steel">Steel Nugget</entry>
|
|
||||||
<entry key="nugget.copper">Copper Nugget</entry>
|
|
||||||
<entry key="nugget.tin">Tin Nugget</entry>
|
|
||||||
<entry key="nugget.silver">Silver Nugget</entry>
|
|
||||||
<entry key="nugget.lead">Lead Nugget</entry>
|
|
||||||
<entry key="nugget.diamond">Diamond Shard</entry>
|
|
||||||
<entry key="nugget.emerald">Emerald Shard</entry>
|
|
||||||
<entry key="nugget.apatite">Apatite Shard</entry>
|
|
||||||
|
|
||||||
<!-- Propolis names -->
|
|
||||||
<entry key="propolis.dull">Dull Propolis</entry>
|
|
||||||
<entry key="propolis.air">Breezey Propolis</entry>
|
|
||||||
<entry key="propolis.fire">Burning Propolis</entry>
|
|
||||||
<entry key="propolis.water">Flowing Propolis</entry>
|
|
||||||
<entry key="propolis.earth">Stony Propolis</entry>
|
|
||||||
<entry key="propolis.magic">Infused Propolis</entry>
|
|
||||||
<entry key="propolis.unstable">Unstable Propolis</entry>
|
|
||||||
|
|
||||||
<!-- Misc Resources -->
|
|
||||||
<entry key="resource.fragment">Lore Fragment</entry>
|
|
||||||
<entry key="resource.lump">Aromatic Lump</entry>
|
|
||||||
<entry key="resource.fertilizer">Concentrated Compound</entry>
|
|
||||||
<entry key="resource.skullChip">Wither Skeleton Bone Chip</entry>
|
|
||||||
<entry key="resource.skullFragment">Wither Skeleton Skull Fragment</entry>
|
|
||||||
<entry key="resource.dragonDust">Draconic Dust</entry>
|
|
||||||
<entry key="resource.dragonChunk">Draconic Chunk</entry>
|
|
||||||
<entry key="resource.essenceFalseLife">Essence of False Life</entry>
|
|
||||||
<entry key="resource.essenceShallowGrave">Essence of a Shallow Grave</entry>
|
|
||||||
<entry key="resource.startNode">Bees and Magic</entry>
|
|
||||||
<entry key="resource.crystalAspect">Crystalized %s Aspect</entry>
|
|
||||||
|
|
||||||
<!-- Frames -->
|
|
||||||
<entry key="item.frameMagic.name">Magic Frame</entry>
|
|
||||||
<entry key="item.frameResilient.name">Resilient Frame</entry>
|
|
||||||
<entry key="item.frameGentle.name">Gentle Frame</entry>
|
|
||||||
<entry key="item.frameMetabolic.name">Metabolic Frame</entry>
|
|
||||||
<entry key="item.frameNecrotic.name">Necrotic Frame</entry>
|
|
||||||
<entry key="item.frameTemporal.name">Temporal Frame</entry>
|
|
||||||
<entry key="item.frameOblivion.name">Oblivion Frame</entry>
|
|
||||||
|
|
||||||
<!-- Capsule names -->
|
|
||||||
<entry key="capsule.magic">Magic Capsule</entry>
|
|
||||||
<entry key="capsule.void">Void Capsule</entry>
|
|
||||||
|
|
||||||
<!-- Liquids -->
|
|
||||||
<entry key="liquid.">Empty</entry>
|
|
||||||
<entry key="liquid.water">Water</entry>
|
|
||||||
<entry key="liquid.lava">Lava</entry>
|
|
||||||
<entry key="liquid.biomass">Biomass</entry>
|
|
||||||
<entry key="liquid.biofuel">Biofuel</entry>
|
|
||||||
<entry key="liquid.Oil">Oil</entry>
|
|
||||||
<entry key="liquid.Fuel">Fuel</entry>
|
|
||||||
<entry key="liquid.seedoil">Seed Oil</entry>
|
|
||||||
<entry key="liquid.honey">Honey</entry>
|
|
||||||
<entry key="liquid.juice">Juice</entry>
|
|
||||||
<entry key="liquid.ice">Ice</entry>
|
|
||||||
<entry key="liquid.milk">Milk</entry>
|
|
||||||
<entry key="liquid.acid">Acid</entry>
|
|
||||||
<entry key="liquid.poison">Poison</entry>
|
|
||||||
<entry key="liquid.liquidNitrogen">Liquid Nitrogen</entry>
|
|
||||||
<entry key="liquid.liquidDNA">Liquid DNA</entry>
|
|
||||||
<entry key="liquid.Creosote Oil">Creosote Oil</entry>
|
|
||||||
<entry key="liquid.Steam">Steam</entry>
|
|
||||||
|
|
||||||
<!-- Moon Phases -->
|
|
||||||
<entry key="moon.full">Full Moon</entry>
|
|
||||||
<entry key="moon.gibbousWaning">Waning Gibbous</entry>
|
|
||||||
<entry key="moon.gibbousWaxing">Waxing Gibbous</entry>
|
|
||||||
<entry key="moon.halfWaning">Waning Half</entry>
|
|
||||||
<entry key="moon.halfWaxing">Waxing Half</entry>
|
|
||||||
<entry key="moon.crescentWaning">Waning Crescent</entry>
|
|
||||||
<entry key="moon.crescentWaxing">Waxing Crescent</entry>
|
|
||||||
<entry key="moon.new">New Moon</entry>
|
|
||||||
|
|
||||||
<!-- Miscellaneous names -->
|
|
||||||
<entry key="backpack.thaumaturge">Thaumaturge's Backpack</entry>
|
|
||||||
<entry key="itemGroup.magicBees">Magic Bees</entry>
|
|
||||||
|
|
||||||
<!-- Escritoire Strings -->
|
|
||||||
<entry key="research.requiresBlock">Requires a foundation of %s</entry>
|
|
||||||
<entry key="research.requiresPhase">Occurs between the %s and %s</entry>
|
|
||||||
<entry key="research.requiresPhaseSingle">During the %s</entry>
|
|
||||||
<entry key="research.requiresNode">Only occurs when a node is near</entry>
|
|
||||||
<entry key="research.requiresNodeSpecific">Only occurs within influence of a %s node</entry>
|
|
||||||
<entry key="research.requiresBiome">Occurs within a %s biome</entry>
|
|
||||||
<entry key="research.node.pure">Pure</entry>
|
|
||||||
<entry key="research.node.dark">Dark</entry>
|
|
||||||
<entry key="research.node.chaotic">Chaotic</entry>
|
|
||||||
<entry key="research.block.crystals">Crystal Cluster</entry>
|
|
||||||
|
|
||||||
<!-- Species names -->
|
|
||||||
<entry key="magicbees.speciesMystical">Mystical</entry>
|
|
||||||
<entry key="magicbees.speciesMystical.description">Common in many parts of the world, these bees have a little extra whimsy about them.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous">Sorcerous</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous.description"></entry>
|
|
||||||
<entry key="magicbees.speciesUnusual">Unusual</entry>
|
|
||||||
<entry key="magicbees.speciesUnusual.description">"A curious specimen for my collection!"|Junior Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned">Attuned</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned.description">They fly as though guided by unseen threads through the air.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEldritch">Eldritch</entry>
|
|
||||||
<entry key="magicbees.speciesEldritch.description">The potential that was locked within this bee's ancestors has now come to the fore.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEsoteric">Esoteric</entry>
|
|
||||||
<entry key="magicbees.speciesEsoteric.description">An unusual crossbreed which seems to have magical properties.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious">Mysterious</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious.description">These bees have been to the end of the world and back, and their power has grown.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesArcane">Arcane</entry>
|
|
||||||
<entry key="magicbees.speciesArcane.description">"Their produce is charged with magic."|Azanor, Master Thaumaturge</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesCharmed">Charmed</entry>
|
|
||||||
<entry key="magicbees.speciesCharmed.description">Your first experiments in Thaumaturgical Apiculture have yielded fruit. Buzzing fruit.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted">Enchanted</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted.description">Successive generations of Charmed bees have reinforced their connection to the unknown.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural">Supernatural</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural.description">These bees walk the line between this world and the unseen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEthereal">Ethereal</entry>
|
|
||||||
<entry key="magicbees.speciesEthereal.description">Ghostly, and charged with energy from beyond.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesWatery">Watery</entry>
|
|
||||||
<entry key="magicbees.speciesWatery.description">Fond of damp spots and flowing water.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen">Earthen</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen.description">They have an iron-strong connection with stone and dirt.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesFirey">Firey</entry>
|
|
||||||
<entry key="magicbees.speciesFirey.description">As close as you can get to living flame without involving candescence.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWindy">Windy</entry>
|
|
||||||
<entry key="magicbees.speciesWindy.description">Rarely seen in flat, wide open spaces. Their territories are vast.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesPupil">Pupil</entry>
|
|
||||||
<entry key="magicbees.speciesPupil.description">"What does that bee want with my paper?!"|Yorae, Librarian</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly">Scholarly</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly.description">"I can't be sure, but I think they might be smarter than me..."|Yorae, Librarian</entry>
|
|
||||||
<entry key="magicbees.speciesSavant">Savant</entry>
|
|
||||||
<entry key="magicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))). Solve for honey.|Note found on Yorae's desk</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAware">Aware</entry>
|
|
||||||
<entry key="magicbees.speciesAware.description">"They can see into your soul!"|Florastar, Expert Beekeeper</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit">Spirit</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit.description">It is said these bees are able to contact the dead.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSoul">Soul</entry>
|
|
||||||
<entry key="magicbees.speciesSoul.description">"The Dread Pirate Roberts has come for your SOOOOOOULS!"|Dread Pirate Roberts</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesSkulking">Skulking</entry>
|
|
||||||
<entry key="magicbees.speciesSkulking.description">These bees have become xenophobic and bad-tempered. Use caution.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly">Ghastly</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly.description">"*sigh*... Really, Myst?"|Taveria, irritated Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery">Spidery</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery.description">Spiderbee; n. Does whatever a spider-bee does.|Unknown</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering">Smouldering</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering.description">The Skulking bees have become alight with the fire of the ever-burning Blazes.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTimely">Timely</entry>
|
|
||||||
<entry key="magicbees.speciesTimely.description">"An apiarist is never late. He arrives precisely when he means to!"|Sengir, Mad Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesLordly">Lordly</entry>
|
|
||||||
<entry key="magicbees.speciesLordly.description">They live in peace, within the sight of the Eye of Harmony|Tattered Remains of ancient Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral">Doctoral</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral.description">"Would you like a Jelly Baby?"|Passing stranger with a great scarf and a blue box</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesInfernal">Infernal</entry>
|
|
||||||
<entry key="magicbees.speciesInfernal.description">Spawned deep within the hellish realm, none have survived long enough to determine their abilities.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesHateful">Hateful</entry>
|
|
||||||
<entry key="magicbees.speciesHateful.description">|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful">Spiteful</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful.description">They guard their territory fiercely, with the zeal of fiends, and welts of fire.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWithering">Withering</entry>
|
|
||||||
<entry key="magicbees.speciesWithering.description">Their mere passing causes life to fail, slowly drawing all energy from their territory.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesOblivion">Oblivion</entry>
|
|
||||||
<entry key="magicbees.speciesOblivion.description">It is unclear whether these bees are native to this world, or some other.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesNameless">Nameless</entry>
|
|
||||||
<entry key="magicbees.speciesNameless.description">"Other naturalists have refused to study these bees. I must know why."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned">Abandoned</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned.description">"The more I study these bees, the more I feel they do not belong here, or anywhere else."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn">Forlorn</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn.description">"I am now convinced they were left in our universe on purpose by some unknowable beings."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic">Draconic</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic.description">"With a fel sound, they erupted from their hive. That was the last we ever saw of Gerald."|Tattered Research Notes</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesIron">Ferrous</entry>
|
|
||||||
<entry key="magicbees.speciesIron.description">Having absorbed some of the base metal, these bees can concentrate the essence of iron from the region.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGold">Auric</entry>
|
|
||||||
<entry key="magicbees.speciesGold.description">Not all that glitters is gold.|Ancient Aphorism</entry>
|
|
||||||
<entry key="magicbees.speciesCopper">Cuprum</entry>
|
|
||||||
<entry key="magicbees.speciesCopper.description">A base metal common in many applications; these bees are helpful for resource-starved magicians.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTin">Stannum</entry>
|
|
||||||
<entry key="magicbees.speciesTin.description">While metalic, these bees are suprisingly fragile.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSilver">Argentum</entry>
|
|
||||||
<entry key="magicbees.speciesSilver.description">While they do not recieve as much attention as Golden bees, they are nonetheless valuable.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesLead">Plumbum</entry>
|
|
||||||
<entry key="magicbees.speciesLead.description">A favourite of amateur alchemists, they believe they can transform these bees into gold.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond">Diamandi</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond.description">Crystalline, glittering, and harder than dragon's teeth. These bees are none of those.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald">Esmeraldi</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald.description">It is said they have been to a land ruled by a Great Wizard, and have taken the aspect of his city.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesApatite">Apatine</entry>
|
|
||||||
<entry key="magicbees.speciesApatite.description">Day and night the whining droned on. I barricaded the windows and hid in the cellar, but everywhere the high-pitched noise of the apatine bees penetrated the walls and drove me to distraction.|Beekeeping 101</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCStark">Stark</entry>
|
|
||||||
<entry key="magicbees.speciesTCStark.description">"These are unusually attracted to shards. This warrents further investigation."|Azanor, Master Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir">Aura</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir.description">"They work so fast it's breathtaking."|Sengir, Mad Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire">Ignis</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire.description">Caution: Contents of hive extremely hot.|Warning label on Azanor's apiary</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater">Aqua</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater.description">"I tried to breed them once, but that was a wash."|MysteriousAges, Apprentice Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth">Solum</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth.description">"You're really gonna dig these bees, but watch out - they bore quite easily."|MysteriousAges, Apprentice Comedian</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic">Praecantatio</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic.description">Beekeeping is magic!|Apinomicon, Preface</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCVis">Vis</entry>
|
|
||||||
<entry key="magicbees.speciesTCVis.description">"They can feel changes in the aura, but are not yet able to affect it."|Azanor, research notes</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure">Pure</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure.description">"It's like a bee janitor!"|MysteriousAges, Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux">Flux</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux.description">"I thought they would help clean up, but it only makes things worse!"|Kreicus, Apprentice Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive">Attractive</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive.description">Having undergone a freak mutation, these bees now attract magic to them.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating">Rejuvenating</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating.description">The hum of the hive is magical, and over time is absorbed by nearby nodes.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCBrainy">Brainy</entry>
|
|
||||||
<entry key="magicbees.speciesTCBrainy.description">Their combs may be fetid and foul-smelling, but their intelligence is well-developed.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy">Wispy</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy.description">Their language is garbled and unintelligible. It is probable they are speaking to unnatural beings.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty">Batty</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty.description">They tend to attract bats to their hives through means unknown.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCChicken">Poultry</entry>
|
|
||||||
<entry key="magicbees.speciesTCChicken.description">"Cluck. Cluck cluck! ... You heard me."|Confused bee</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef">Beefy</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef.description">"Moo, moo, moo. Wait, what?"|Confused bee</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork">Porcine</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork.description">"Oink, oink. Er.... bzzz?"|Confused bee</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEEMinium">Minium</entry>
|
|
||||||
<entry key="magicbees.speciesEEMinium.description">It may be possible to exploit their mercurial and changeable nature.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEssence">Essence</entry>
|
|
||||||
<entry key="magicbees.speciesAMEssence.description">Drawing from motes of dust in the air and ground, they concentrate the energy</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence">Quintessential</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence.description">The heart of magic lies dormant in all things.|Apinomicon, preface</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEarth">Erde</entry>
|
|
||||||
<entry key="magicbees.speciesAMEarth.description">Empowered by the Earth, their produce is infused with its essence.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir">Luft</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir.description">Swift as the wind, and lighter than air.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire">Feuer</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire.description">Their colony can reach temperatures that boil water and melt metals.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater">Wasser</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater.description">Through prolonged exposure to liquids, their combs are quite wet and heavy.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMLightning">Blitz</entry>
|
|
||||||
<entry key="magicbees.speciesAMLightning.description">They can travel vast distances in a blink, and are known for starting many wildfires.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant">Staude</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant.description">They have an affinity for all that is green and grows.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce">Eis</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce.description">"They keep stealing stuff from me, and I never see them. They're far too slippery."|MysteriousAges, incorrigible punster</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma">Magma</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma.description">As they fly by, they sear the surface of the landscape, eventually scouring all plants and fragile minerals away.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMArcane">Arkanen</entry>
|
|
||||||
<entry key="magicbees.speciesAMArcane.description">"Curious creatures, though their produce is quite useful."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMVortex">Vortex</entry>
|
|
||||||
<entry key="magicbees.speciesAMVortex.description">Ravenous for mana, they may be dangerous for any caster.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight">Wight</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight.description">"They attract magical spirits; not always docile."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<!-- Blank species entries
|
|
||||||
<entry key="magicbees.species"></entry>
|
|
||||||
<entry key="magicbees.species.description"></entry>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Bee Alleles -->
|
|
||||||
<entry key="magicbees.effectCurative">Cleansing</entry>
|
|
||||||
<entry key="magicbees.effectDigSpeed">Mining</entry>
|
|
||||||
<entry key="magicbees.effectMoveSpeed">Swiftness</entry>
|
|
||||||
<entry key="magicbees.effectSlowSpeed">Time Warp</entry>
|
|
||||||
<entry key="magicbees.effectWithering">Withering</entry>
|
|
||||||
<entry key="magicbees.effectNodeAttract">Aura Attract</entry>
|
|
||||||
<entry key="magicbees.effectNodePurify">Purify Aura</entry>
|
|
||||||
<entry key="magicbees.effectNodeFlux">Aura Flux</entry>
|
|
||||||
<entry key="magicbees.effectNodeCharge">Aura Charge</entry>
|
|
||||||
<entry key="magicbees.effectBrainy">Brainy</entry>
|
|
||||||
<entry key="magicbees.effectBatty">Batty</entry>
|
|
||||||
<entry key="magicbees.effectWispy">Wispy</entry>
|
|
||||||
<entry key="magicbees.effectGhastly">Ghastly</entry>
|
|
||||||
<entry key="magicbees.effectSpidery">Spidery</entry>
|
|
||||||
<entry key="magicbees.effectAblaze">Ablaze</entry>
|
|
||||||
<entry key="magicbees.effectManaDrainer">Vortex</entry>
|
|
||||||
<entry key="magicbees.effectAMWisp">Spiritual</entry>
|
|
||||||
<entry key="flowerProvider.book">Books</entry>
|
|
||||||
<entry key="flowerProvider.magic">Thaumic Flowers</entry>
|
|
||||||
<entry key="flowerProvider.arsmagica">Exotic Flowers</entry>
|
|
||||||
<entry key="flowerProvider.node">Node</entry>
|
|
||||||
|
|
||||||
<!-- Classifications -->
|
|
||||||
<entry key="classification.veiled">Veiled</entry>
|
|
||||||
<entry key="classification.veiled.description">The curious species found scattered through the world may have abilities beyond one's reasoning.|Apinomicon</entry>
|
|
||||||
<entry key="classification.arcane">Arcane</entry>
|
|
||||||
<entry key="classification.arcane.description">These bees have inexplicable affinity for magic.|Apinomicon</entry>
|
|
||||||
<entry key="classification.supernatural">Supernatural</entry>
|
|
||||||
<entry key="classification.supernatural.description">No longer ordinary bees, they have been associated with many odd occurances.|Apinomicon</entry>
|
|
||||||
<entry key="classification.scholarly">Scholarly</entry>
|
|
||||||
<entry key="classification.scholarly.description">The caste of bees which have great intellect and deductive ability.|Apinomicon</entry>
|
|
||||||
<entry key="classification.skulking">Skulking</entry>
|
|
||||||
<entry key="classification.skulking.description">Unpleasant and malicious. Treat this group with caution.|Apinomicon</entry>
|
|
||||||
<entry key="classification.magic">Aware</entry>
|
|
||||||
<entry key="classification.magic.description">It is unclear whether they are sentient, but they have suprising awareness of their surroundings.|Apinomicon</entry>
|
|
||||||
<entry key="classification.time">Time</entry>
|
|
||||||
<entry key="classification.time.description">Though clever use of time travel, these bees accomplish twice as much in one day.|Apinomicon</entry>
|
|
||||||
<entry key="classification.soul">Soulful</entry>
|
|
||||||
<entry key="classification.soul.description">It would be eerie to think that they collected the souls of the deceased.|Apinomicon</entry>
|
|
||||||
<entry key="classification.abominable">Abominable</entry>
|
|
||||||
<entry key="classification.abominable.description">Spawned in the firey depths of the Nether, there is nothing pleasant about these creatures.|Apinomicon</entry>
|
|
||||||
<entry key="classification.Extrinsic">Extrinsic</entry>
|
|
||||||
<entry key="classification.Extrinsic.description">It is unknown whether these creatures gave rise to the family Apidae in this universe, or if these evolved seperately.|Apinomicon</entry>
|
|
||||||
<entry key="classification.metallic">Metallic</entry>
|
|
||||||
<entry key="classification.metallic.description">They collect fragments of metal and combine them into larger portions.|Apinomicon</entry>
|
|
||||||
<entry key="classification.gem">Gem</entry>
|
|
||||||
<entry key="classification.gem.description">They collect fragments of precious gems in their combs.|Apinomicon</entry>
|
|
||||||
<entry key="classification.thaumic">Thaumic</entry>
|
|
||||||
<entry key="classification.thaumic.description">These bees have an increased affinity to magic and aura.|Apinomicon</entry>
|
|
||||||
<entry key="classification.fleshy">Fleshy</entry>
|
|
||||||
<entry key="classification.fleshy.description">Through an unknown mechanism, these bees accrue chunks of animal flesh. Somehow, it's still edible.|Apinomicon</entry>
|
|
||||||
<entry key="classification.alchemical">Alchemical</entry>
|
|
||||||
<entry key="classification.alchemical.description">These bees have a changeable nature.|Apinomicon</entry>
|
|
||||||
<entry key="classification.essential">Essential</entry>
|
|
||||||
<entry key="classification.essential.description">These bees have an increased affinity for aspected magic.|Apinomicon</entry>
|
|
||||||
|
|
||||||
</properties>
|
|
||||||
@@ -1,474 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
|
||||||
<properties version="1.0">
|
|
||||||
<!-- Item names -->
|
|
||||||
<entry key="item.magicbees:jellyBabies.name">Горсть маленького желе</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumScoop.name">Таумический сачок</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumGrafter.name">Таумический садовый нож</entry>
|
|
||||||
|
|
||||||
<!-- Specially handled Item names -->
|
|
||||||
<entry key="item.moonDial.name">Нефритовый набор луны</entry>
|
|
||||||
|
|
||||||
<!-- Block names -->
|
|
||||||
<entry key="tile.planks.greatwood.name">Доски грейтвуда</entry>
|
|
||||||
<entry key="tile.slab.wood.greatwood.name">Плиты грейтвуда</entry>
|
|
||||||
<entry key="tile.planks.silverwood.name">Доски сильвервуда</entry>
|
|
||||||
<entry key="tile.slab.wood.silverwood.name">Плиты сильвервуда</entry>
|
|
||||||
<entry key="tile.effectJar.name">Банка для сбора пчёл</entry>
|
|
||||||
<entry key="tile.hive.curious.name">Странный улей</entry>
|
|
||||||
<entry key="tile.hive.unusual.name">Необычный улей</entry>
|
|
||||||
<entry key="tile.hive.deep.name">Глубокий улей</entry>
|
|
||||||
<entry key="tile.hive.resonant.name">Резонирующий улей</entry>
|
|
||||||
<entry key="tile.hive.infernal.name">Адский улей</entry>
|
|
||||||
<entry key="tile.hive.oblivion.name">Забвенный улей</entry>
|
|
||||||
|
|
||||||
<!-- Comb names -->
|
|
||||||
<entry key="comb.mundane">Земные соты</entry>
|
|
||||||
<entry key="comb.molten">Расплавленные соты</entry>
|
|
||||||
<entry key="comb.forgotten">Забытые соты</entry>
|
|
||||||
<entry key="comb.occult">Оккультические соты</entry>
|
|
||||||
<entry key="comb.otherworldly">Потусторонние соты</entry>
|
|
||||||
<entry key="comb.paper">Бумажные соты</entry>
|
|
||||||
<entry key="comb.soul">Душевные соты</entry>
|
|
||||||
<entry key="comb.furtive">Незаметные соты</entry>
|
|
||||||
<entry key="comb.aware">Памятные соты</entry>
|
|
||||||
<entry key="comb.time">Временные соты</entry>
|
|
||||||
<entry key="comb.harmonizing">Гармоничные соты</entry>
|
|
||||||
<entry key="comb.air">Воздушные соты</entry>
|
|
||||||
<entry key="comb.fire">Огненные соты</entry>
|
|
||||||
<entry key="comb.water">Водяные соты</entry>
|
|
||||||
<entry key="comb.earth">Земляные соты</entry>
|
|
||||||
<entry key="comb.magic">Заряженные соты</entry>
|
|
||||||
<entry key="comb.essence">Сущные соты</entry>
|
|
||||||
<entry key="comb.potent">Крепкие соты</entry>
|
|
||||||
|
|
||||||
<!-- Wax names -->
|
|
||||||
<entry key="wax.magic">Магический воск</entry>
|
|
||||||
<entry key="wax.soul">Душевный воск</entry>
|
|
||||||
<entry key="wax.amnesic">Амнезийный воск</entry>
|
|
||||||
|
|
||||||
<!-- Drop names -->
|
|
||||||
<entry key="drop.enchanting">Зачарованная капля</entry>
|
|
||||||
<entry key="drop.intellect">Интеллектуальная капля</entry>
|
|
||||||
|
|
||||||
<!-- Pollen names -->
|
|
||||||
<entry key="pollen.unusual">Необычная пыльца</entry>
|
|
||||||
<entry key="pollen.phased">Поэтапная пыльца</entry>
|
|
||||||
|
|
||||||
<!-- Nugget names -->
|
|
||||||
<entry key="nugget.iron">Железный самородок</entry>
|
|
||||||
<entry key="nugget.steel">Стальной самородок</entry>
|
|
||||||
<entry key="nugget.copper">Медный самородок</entry>
|
|
||||||
<entry key="nugget.tin">Оловянный самородок</entry>
|
|
||||||
<entry key="nugget.silver">Серебряный самородок</entry>
|
|
||||||
<entry key="nugget.lead">Свинцовый самородок</entry>
|
|
||||||
<entry key="nugget.diamond">Алмазный осколок</entry>
|
|
||||||
<entry key="nugget.emerald">Изумрудный осколок</entry>
|
|
||||||
<entry key="nugget.apatite">Осколок апатита</entry>
|
|
||||||
|
|
||||||
<!-- Propolis names -->
|
|
||||||
<entry key="propolis.dull">Тусклый прополис</entry>
|
|
||||||
<entry key="propolis.air">Свежий прополис</entry>
|
|
||||||
<entry key="propolis.fire">Горящий прополис</entry>
|
|
||||||
<entry key="propolis.water">Мягкий прополис</entry>
|
|
||||||
<entry key="propolis.earth">Каменный прополис</entry>
|
|
||||||
<entry key="propolis.magic">Заряженный прополис</entry>
|
|
||||||
<entry key="propolis.unstable">Нетвёрдый прополис</entry>
|
|
||||||
|
|
||||||
<!-- Misc Resources -->
|
|
||||||
<entry key="resource.fragment">Фрагмент знаний</entry>
|
|
||||||
<entry key="resource.lump">Ароматическая лампа</entry>
|
|
||||||
<entry key="resource.fertilizer">Концентрированные соединения</entry>
|
|
||||||
<entry key="resource.skullChip">Обломок кости скелета-иссушителя</entry>
|
|
||||||
<entry key="resource.skullFragment">Фрагмент черепа скелета-иссушителя</entry>
|
|
||||||
<entry key="resource.dragonDust">Драконья пыль</entry>
|
|
||||||
<entry key="resource.dragonChunk">Драконий кусок</entry>
|
|
||||||
<entry key="resource.essenceFalseLife">Эссенция ложной жизни</entry>
|
|
||||||
<entry key="resource.essenceShallowGrave">Эссенция неглубокой могилы</entry>
|
|
||||||
<entry key="resource.startNode">Пчёлы и магия</entry>
|
|
||||||
<entry key="resource.crystalAspect">Кристаллизованный %s Аспект</entry>
|
|
||||||
|
|
||||||
<!-- Frames -->
|
|
||||||
<entry key="item.frameMagic.name">Магическая рамка</entry>
|
|
||||||
<entry key="item.frameResilient.name">Эластичная рамка</entry>
|
|
||||||
<entry key="item.frameGentle.name">Лёгкая рамка</entry>
|
|
||||||
<entry key="item.frameMetabolic.name">Метаболическая рамка</entry>
|
|
||||||
<entry key="item.frameNecrotic.name">Некротическая рамка</entry>
|
|
||||||
<entry key="item.frameTemporal.name">Временная рамка</entry>
|
|
||||||
<entry key="item.frameOblivion.name">Забвенная рамка</entry>
|
|
||||||
|
|
||||||
<!-- Capsule names -->
|
|
||||||
<entry key="capsule.magic">Магическая капсула</entry>
|
|
||||||
<entry key="capsule.void">Пустотная капсула</entry>
|
|
||||||
|
|
||||||
<!-- Liquids -->
|
|
||||||
<entry key="liquid.">Пустая</entry>
|
|
||||||
<entry key="liquid.water">Вода</entry>
|
|
||||||
<entry key="liquid.lava">Лава</entry>
|
|
||||||
<entry key="liquid.biomass">Биомасса</entry>
|
|
||||||
<entry key="liquid.biofuel">Биотопливо</entry>
|
|
||||||
<entry key="liquid.Oil">Нефть</entry>
|
|
||||||
<entry key="liquid.Fuel">Топливо</entry>
|
|
||||||
<entry key="liquid.seedoil">Растительное масло</entry>
|
|
||||||
<entry key="liquid.honey">Мёд</entry>
|
|
||||||
<entry key="liquid.juice">Фруктовый сок</entry>
|
|
||||||
<entry key="liquid.ice">Лёд(жидкий)</entry>
|
|
||||||
<entry key="liquid.milk">Молоко</entry>
|
|
||||||
<entry key="liquid.acid">Кислота</entry>
|
|
||||||
<entry key="liquid.poison">Яд</entry>
|
|
||||||
<entry key="liquid.liquidNitrogen">Жидкий Азот</entry>
|
|
||||||
<entry key="liquid.liquidDNA">Жидкий ДНК</entry>
|
|
||||||
<entry key="liquid.Creosote Oil">Креозотное Масло</entry>
|
|
||||||
<entry key="liquid.Steam">Пар(жидкий)</entry>
|
|
||||||
|
|
||||||
<!-- Moon Phases -->
|
|
||||||
<entry key="moon.full">Полная луна</entry>
|
|
||||||
<entry key="moon.gibbousWaning">Убывающая луна</entry>
|
|
||||||
<entry key="moon.gibbousWaxing">Растущая луна</entry>
|
|
||||||
<entry key="moon.halfWaning">Убывающая половина</entry>
|
|
||||||
<entry key="moon.halfWaxing">Растущая половина</entry>
|
|
||||||
<entry key="moon.crescentWaning">Убывающая луна</entry>
|
|
||||||
<entry key="moon.crescentWaxing">Растущая луна</entry>
|
|
||||||
<entry key="moon.new">Новолуние</entry>
|
|
||||||
|
|
||||||
<!-- Miscellaneous names -->
|
|
||||||
<entry key="backpack.thaumaturge">Таумотургический рюкзак</entry>
|
|
||||||
<entry key="itemGroup.magicBees">Magic Bees</entry>
|
|
||||||
|
|
||||||
<!-- Escritoire Strings -->
|
|
||||||
<entry key="research.requiresBlock">Требует основы %s</entry>
|
|
||||||
<entry key="research.requiresPhase">Происходит между %s и %s</entry>
|
|
||||||
<entry key="research.requiresPhaseSingle">Во время %s</entry>
|
|
||||||
<entry key="research.requiresNode">Происходит только тогда, когда нод находится вблизи</entry>
|
|
||||||
<entry key="research.requiresNodeSpecific">Происходит только под влиянием %s нода</entry>
|
|
||||||
<entry key="research.requiresBiome">Происходит в пределах %s биома</entry>
|
|
||||||
<entry key="research.node.pure">Чистый</entry>
|
|
||||||
<entry key="research.node.dark">Тёмный</entry>
|
|
||||||
<entry key="research.node.chaotic">Хаотический</entry>
|
|
||||||
|
|
||||||
<!-- Species names -->
|
|
||||||
<entry key="magicbees.speciesMystical">Mystical</entry>
|
|
||||||
<entry key="magicbees.speciesMystical.description">Common in many parts of the world, these bees have a
|
|
||||||
little extra whimsy about them.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous">Sorcerous</entry>
|
|
||||||
<entry key="magicbees.speciesSorcerous.description"></entry>
|
|
||||||
<entry key="magicbees.speciesUnusual">Unusual</entry>
|
|
||||||
<entry key="magicbees.speciesUnusual.description">"A curious specimen for my collection!"|Junior
|
|
||||||
Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned">Attuned</entry>
|
|
||||||
<entry key="magicbees.speciesAttuned.description">They fly as though guided by unseen threads through
|
|
||||||
the air.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEldritch">Eldritch</entry>
|
|
||||||
<entry key="magicbees.speciesEldritch.description">The potential that was locked within this bee's
|
|
||||||
ancestors has now come to the fore.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEsoteric">Esoteric</entry>
|
|
||||||
<entry key="magicbees.speciesEsoteric.description">An unusual crossbreed which seems to have magical
|
|
||||||
properties.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious">Mysterious</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious.description">These bees have been to the end of the world and back,
|
|
||||||
and their power has grown.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesArcane">Arcane</entry>
|
|
||||||
<entry key="magicbees.speciesArcane.description">"Their produce is charged with magic."|Azanor, Master
|
|
||||||
Thaumaturge</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesCharmed">Charmed</entry>
|
|
||||||
<entry key="magicbees.speciesCharmed.description">Your first experiments in Thaumaturgical Apiculture
|
|
||||||
have yielded fruit. Buzzing fruit.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted">Enchanted</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted.description">Successive generations of Charmed bees have reinforced
|
|
||||||
their connection to the unknown.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural">Supernatural</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural.description">These bees walk the line between this world and the
|
|
||||||
unseen.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEthereal">Ethereal</entry>
|
|
||||||
<entry key="magicbees.speciesEthereal.description">Ghostly, and charged with energy from
|
|
||||||
beyond.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesWatery">Watery</entry>
|
|
||||||
<entry key="magicbees.speciesWatery.description">Fond of damp spots and flowing water.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen">Earthen</entry>
|
|
||||||
<entry key="magicbees.speciesEarthen.description">They have an iron-strong connection with stone and
|
|
||||||
dirt.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesFirey">Firey</entry>
|
|
||||||
<entry key="magicbees.speciesFirey.description">As close as you can get to living flame without
|
|
||||||
involving candescence.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWindy">Windy</entry>
|
|
||||||
<entry key="magicbees.speciesWindy.description">Rarely seen in flat, wide open spaces. Their
|
|
||||||
territories are vast.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesPupil">Pupil</entry>
|
|
||||||
<entry key="magicbees.speciesPupil.description">"What does that bee want with my paper?!"|Yorae,
|
|
||||||
Librarian</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly">Scholarly</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly.description">"I can't be sure, but I think they might be smarter
|
|
||||||
than me..."|Yorae, Librarian</entry>
|
|
||||||
<entry key="magicbees.speciesSavant">Savant</entry>
|
|
||||||
<entry key="magicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))). Solve for
|
|
||||||
honey.|Note found on Yorae's desk</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAware">Aware</entry>
|
|
||||||
<entry key="magicbees.speciesAware.description">"They can see into your soul!"|Florastar, Expert
|
|
||||||
Beekeeper</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit">Spirit</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit.description">It is said these bees are able to contact the
|
|
||||||
dead.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSoul">Soul</entry>
|
|
||||||
<entry key="magicbees.speciesSoul.description">"The Dread Pirate Roberts has come for your
|
|
||||||
SOOOOOOULS!"|Dread Pirate Roberts</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesSkulking">Skulking</entry>
|
|
||||||
<entry key="magicbees.speciesSkulking.description">These bees have become xenophobic and bad-tempered.
|
|
||||||
Use caution.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly">Ghastly</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly.description">"*sigh*... Really, Myst?"|Taveria, irritated Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery">Spidery</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery.description">Spiderbee; n. Does whatever a spider-bee does.|Unknown</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering">Smouldering</entry>
|
|
||||||
<entry key="magicbees.speciesSmouldering.description">The Skulking bees have become alight with the fire of
|
|
||||||
the ever-burning Blazes.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTimely">Timely</entry>
|
|
||||||
<entry key="magicbees.speciesTimely.description">"An apiarist is never late. He arrives precisely when
|
|
||||||
he means to!"|Sengir, Mad Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesLordly">Lordly</entry>
|
|
||||||
<entry key="magicbees.speciesLordly.description">They live in peace, within the sight of the Eye of
|
|
||||||
Harmony|Tattered Remains of ancient Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral">Doctoral</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral.description">"Would you like a Jelly Baby?"|Passing stranger with a
|
|
||||||
great scarf and a blue box</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesInfernal">Infernal</entry>
|
|
||||||
<entry key="magicbees.speciesInfernal.description">Spawned deep within the hellish realm, none have
|
|
||||||
survived long enough to determine their abilities.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesHateful">Hateful</entry>
|
|
||||||
<entry key="magicbees.speciesHateful.description">|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful">Spiteful</entry>
|
|
||||||
<entry key="magicbees.speciesSpiteful.description">They guard their territory fiercely, with the zeal of
|
|
||||||
fiends, and welts of fire.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesWithering">Withering</entry>
|
|
||||||
<entry key="magicbees.speciesWithering.description">Their mere passing causes life to fail, slowly drawing
|
|
||||||
all energy from their territory.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesOblivion">Oblivion</entry>
|
|
||||||
<entry key="magicbees.speciesOblivion.description">It is unclear whether these bees are native to this
|
|
||||||
world, or some other.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesNameless">Nameless</entry>
|
|
||||||
<entry key="magicbees.speciesNameless.description">"Other naturalists have refused to study these bees. I
|
|
||||||
must know why."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned">Abandoned</entry>
|
|
||||||
<entry key="magicbees.speciesAbandoned.description">"The more I study these bees, the more I feel they do
|
|
||||||
not belong here, or anywhere else."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn">Forlorn</entry>
|
|
||||||
<entry key="magicbees.speciesForlorn.description">"I am now convinced they were left in our universe on
|
|
||||||
purpose by some unknowable beings."|Tattered Research Notes</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic">Draconic</entry>
|
|
||||||
<entry key="magicbees.speciesDraconic.description">"With a fel sound, they erupted from their hive. That
|
|
||||||
was the last we ever saw of Gerald."|Tattered Research Notes</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesIron">Ferrous</entry>
|
|
||||||
<entry key="magicbees.speciesIron.description">Having absorbed some of the base metal, these bees can
|
|
||||||
concentrate the essence of iron from the region.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGold">Auric</entry>
|
|
||||||
<entry key="magicbees.speciesGold.description">Not all that glitters is gold.|Ancient Aphorism</entry>
|
|
||||||
<entry key="magicbees.speciesCopper">Cuprum</entry>
|
|
||||||
<entry key="magicbees.speciesCopper.description">A base metal common in many applications; these bees
|
|
||||||
are helpful for resource-starved magicians.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTin">Stannum</entry>
|
|
||||||
<entry key="magicbees.speciesTin.description">While metalic, these bees are suprisingly
|
|
||||||
fragile.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSilver">Argentum</entry>
|
|
||||||
<entry key="magicbees.speciesSilver.description">While they do not recieve as much attention as Golden
|
|
||||||
bees, they are nonetheless valuable.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesLead">Plumbum</entry>
|
|
||||||
<entry key="magicbees.speciesLead.description">A favourite of amateur alchemists, they believe they
|
|
||||||
can transform these bees into gold.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond">Diamandi</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond.description">Crystalline, glittering, and harder than dragon's
|
|
||||||
teeth. These bees are none of those.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald">Esmeraldi</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald.description">It is said they have been to a land ruled by a Great
|
|
||||||
Wizard, and have taken the aspect of his city.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesApatite">Apatine</entry>
|
|
||||||
<entry key="magicbees.speciesApatite.description">Day and night the whining droned on. I barricaded the
|
|
||||||
windows and hid in the cellar, but everywhere the high-pitched noise
|
|
||||||
of the apatine bees penetrated the walls and drove me to
|
|
||||||
distraction.|Beekeeping 101</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCStark">Stark</entry>
|
|
||||||
<entry key="magicbees.speciesTCStark.description">"These are unusually attracted to shards. This
|
|
||||||
warrents further investigation."|Azanor, Master Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir">Aura</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir.description">"They work so fast it's breathtaking."|Sengir, Mad
|
|
||||||
Apiarist</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire">Ignis</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire.description">Caution: Contents of hive extremely hot.|Warning label
|
|
||||||
on Azanor's apiary</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater">Aqua</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater.description">"I tried to breed them once, but that was a
|
|
||||||
wash."|MysteriousAges, Apprentice Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth">Solum</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth.description">"You're really gonna dig these bees, but watch out -
|
|
||||||
they bore quite easily."|MysteriousAges, Apprentice Comedian</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic">Praecantatio</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic.description">Beekeeping is magic!|Apinomicon, Preface</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCVis">Vis</entry>
|
|
||||||
<entry key="magicbees.speciesTCVis.description">"They can feel changes in the aura, but are not yet
|
|
||||||
able to affect it."|Azanor, research notes</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure">Pure</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure.description">"It's like a bee janitor!"|MysteriousAges, Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux">Flux</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux.description">"I thought they would help clean up, but it only makes
|
|
||||||
things worse!"|Kreicus, Apprentice Thaumaturge</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive">Attractive</entry>
|
|
||||||
<entry key="magicbees.speciesTCAttractive.description">Having undergone a freak mutation, these bees now
|
|
||||||
attract magic to them.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating">Rejuvenating</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating.description">The hum of the hive is magical, and over time is
|
|
||||||
absorbed by nearby nodes.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCBrainy">Brainy</entry>
|
|
||||||
<entry key="magicbees.speciesTCBrainy.description">Their combs may be fetid and foul-smelling, but their
|
|
||||||
intelligence is well-developed.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy">Wispy</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy.description">Their language is garbled and unintelligible. It is
|
|
||||||
probable they are speaking to unnatural beings.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty">Batty</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty.description">They tend to attract bats to their hives through means
|
|
||||||
unknown.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCChicken">Poultry</entry>
|
|
||||||
<entry key="magicbees.speciesTCChicken.description">"Cluck. Cluck cluck! ... You heard me."|Confused bee</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef">Beefy</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef.description">"Moo, moo, moo. Wait, what?"|Confused bee</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork">Porcine</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork.description">"Oink, oink. Er.... bzzz?"|Confused bee</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEEMinium">Minium</entry>
|
|
||||||
<entry key="magicbees.speciesEEMinium.description">It may be possible to exploit their mercurial and
|
|
||||||
changeable nature.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEssence">Essence</entry>
|
|
||||||
<entry key="magicbees.speciesAMEssence.description">Drawing from motes of dust in the air and ground, they
|
|
||||||
concentrate the energy</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence">Quintessential</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence.description">The heart of magic lies dormant in all
|
|
||||||
things.|Apinomicon, preface</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEarth">Erde</entry>
|
|
||||||
<entry key="magicbees.speciesAMEarth.description">Empowered by the Earth, their produce is infused with
|
|
||||||
its essence.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir">Luft</entry>
|
|
||||||
<entry key="magicbees.speciesAMAir.description">Swift as the wind, and lighter than air.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire">Feuer</entry>
|
|
||||||
<entry key="magicbees.speciesAMFire.description">Their colony can reach temperatures that boil water
|
|
||||||
and melt metals.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater">Wasser</entry>
|
|
||||||
<entry key="magicbees.speciesAMWater.description">Through prolonged exposure to liquids, their combs are
|
|
||||||
quite wet and heavy.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMLightning">Blitz</entry>
|
|
||||||
<entry key="magicbees.speciesAMLightning.description">They can travel vast distances in a blink, and are
|
|
||||||
known for starting many wildfires.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant">Staude</entry>
|
|
||||||
<entry key="magicbees.speciesAMPlant.description">They have an affinity for all that is green and
|
|
||||||
grows.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce">Eis</entry>
|
|
||||||
<entry key="magicbees.speciesAMIce.description">"They keep stealing stuff from me, and I never see
|
|
||||||
them. They're far too slippery."|MysteriousAges, incorrigible punster</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma">Magma</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma.description">As they fly by, they sear the surface of the
|
|
||||||
landscape, eventually scouring all plants and fragile minerals
|
|
||||||
away.|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMArcane">Arkanen</entry>
|
|
||||||
<entry key="magicbees.speciesAMArcane.description">"Curious creatures, though their produce is quite
|
|
||||||
useful."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMVortex">Vortex</entry>
|
|
||||||
<entry key="magicbees.speciesAMVortex.description">Ravenous for mana, they may be dangerous for any
|
|
||||||
caster.|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight">Wight</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight.description">"They attract magical spirits; not always
|
|
||||||
docile."|Mithion, Adept</entry>
|
|
||||||
|
|
||||||
<!-- Blank species entries <entry key="magicbees.species"></entry> <entry
|
|
||||||
key="magicbees.species.description"></entry> -->
|
|
||||||
|
|
||||||
<!-- Bee Alleles -->
|
|
||||||
<entry key="magicbees.effectCurative">Очищающая</entry>
|
|
||||||
<entry key="magicbees.effectDigSpeed">Добывающая</entry>
|
|
||||||
<entry key="magicbees.effectMoveSpeed">Ускоряющая</entry>
|
|
||||||
<entry key="magicbees.effectSlowSpeed">Искривляющая Время</entry>
|
|
||||||
<entry key="magicbees.effectWithering">Иссушающая</entry>
|
|
||||||
<entry key="magicbees.effectNodeAttract">Привлечённая Аурой</entry>
|
|
||||||
<entry key="magicbees.effectNodePurify">Очищенная аурой</entry>
|
|
||||||
<entry key="magicbees.effectNodeFlux">Загрязнённая аурой</entry>
|
|
||||||
<entry key="magicbees.effectNodeCharge">Заряженная аурой</entry>
|
|
||||||
<entry key="magicbees.effectBrainy">Умная</entry>
|
|
||||||
<entry key="magicbees.effectBatty">Сумасшедшая</entry>
|
|
||||||
<entry key="magicbees.effectWispy">Призрачная</entry>
|
|
||||||
<entry key="magicbees.effectGhastly">Ужасная</entry>
|
|
||||||
<entry key="magicbees.effectSpidery">Паучая</entry>
|
|
||||||
<entry key="magicbees.effectAblaze">Горящая</entry>
|
|
||||||
<entry key="magicbees.effectManaDrainer">Вихревая</entry>
|
|
||||||
<entry key="magicbees.effectAMWisp">Духовная</entry>
|
|
||||||
<entry key="flowerProvider.book">Книги</entry>
|
|
||||||
<entry key="flowerProvider.magic">Магические Цветы</entry>
|
|
||||||
<entry key="flowerProvider.arsmagica">Экзотические цветы</entry>
|
|
||||||
<entry key="flowerProvider.node">Нод</entry>
|
|
||||||
|
|
||||||
<!-- Classifications -->
|
|
||||||
<entry key="classification.veiled">Сокрытые</entry>
|
|
||||||
<entry key="classification.veiled.description">Эти странные виды разбросаны по всему миру, могут
|
|
||||||
иметь способности за пределами своего мышления.|Apinomicon</entry>
|
|
||||||
<entry key="classification.arcane">Мистические</entry>
|
|
||||||
<entry key="classification.arcane.description">Эти пчёлы имеют необъяснимую близость к
|
|
||||||
магии.|Apinomicon</entry>
|
|
||||||
<entry key="classification.supernatural">Сверхъестественные</entry>
|
|
||||||
<entry key="classification.supernatural.description">Уже необыкновенные пчёлы, они были связаны со многими
|
|
||||||
странными происшествиями.|Apinomicon</entry>
|
|
||||||
<entry key="classification.scholarly">Научные</entry>
|
|
||||||
<entry key="classification.scholarly.description">Каста пчёл, которые имеют большой интеллект и
|
|
||||||
дедуктивные способности.|Apinomicon</entry>
|
|
||||||
<entry key="classification.skulking">Прячущиеся</entry>
|
|
||||||
<entry key="classification.skulking.description">Неприятные и злобные.Относитесь к этой группе с
|
|
||||||
осторожностью.|Apinomicon</entry>
|
|
||||||
<entry key="classification.magic">Знающие</entry>
|
|
||||||
<entry key="classification.magic.description">Неясно, являются ли они разумными, но у них есть
|
|
||||||
поразительное осознание о своих средах обитания.|Apinomicon</entry>
|
|
||||||
<entry key="classification.time">Временные</entry>
|
|
||||||
<entry key="classification.time.description">Несмотря на умное использование времени на
|
|
||||||
путешествие, эти пчёлы выполняют в два раза больше работы за один
|
|
||||||
день.|Apinomicon</entry>
|
|
||||||
<entry key="classification.soul">Душевные</entry>
|
|
||||||
<entry key="classification.soul.description">Становится жутко когда думаешь, что они собирают души
|
|
||||||
умерших.|Apinomicon</entry>
|
|
||||||
<entry key="classification.abominable">Отвратительные</entry>
|
|
||||||
<entry key="classification.abominable.description">Спавнятся в огненных глубинах нижнего мира, нет ничего
|
|
||||||
приятного об этих существах.|Apinomicon</entry>
|
|
||||||
<entry key="classification.Extrinsic">Посторнонние</entry>
|
|
||||||
<entry key="classification.Extrinsic.description">Неизвестно, является ли эти существа порождением семьи
|
|
||||||
Apidae в этой вселенной, или они развивались отдельно.|Apinomicon</entry>
|
|
||||||
<entry key="classification.metallic">Металлические</entry>
|
|
||||||
<entry key="classification.metallic.description">Они собирают фрагменты металла и объединяют их в
|
|
||||||
большие части.|Apinomicon</entry>
|
|
||||||
<entry key="classification.gem">Жемчужные</entry>
|
|
||||||
<entry key="classification.gem.description">Они собирают фрагменты драгоценных камней в их
|
|
||||||
сотах.|Apinomicon</entry>
|
|
||||||
<entry key="classification.thaumic">Таумические</entry>
|
|
||||||
<entry key="classification.thaumic.description">Эти пчёлы имеют повышенную близость к магии и
|
|
||||||
ауре.|Apinomicon</entry>
|
|
||||||
<entry key="classification.fleshy">Мясистые</entry>
|
|
||||||
<entry key="classification.fleshy.description">Через неизвестный механизм, эти пчёлы накапливают
|
|
||||||
куски мяса животных. Так или иначе, это все еще съедобно.|Apinomicon</entry>
|
|
||||||
<entry key="classification.alchemical">Алхимические</entry>
|
|
||||||
<entry key="classification.alchemical.description">Эти пчёлы имеют непостоянную сущность.|Apinomicon</entry>
|
|
||||||
<entry key="classification.essential">Ценные</entry>
|
|
||||||
<entry key="classification.essential.description">Эти пчёлы имеют повышенную близость к аспектированной
|
|
||||||
магии.|Apinomicon</entry>
|
|
||||||
|
|
||||||
</properties>
|
|
||||||
@@ -1,301 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
|
||||||
<properties version="1.0">
|
|
||||||
<!-- Item names -->
|
|
||||||
<entry key="item.magicbees:jellyBabies.name">胶糖娃娃</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumScoop.name">奥法捕蜂网</entry>
|
|
||||||
<entry key="item.magicbees:thaumiumGrafter.name">奥法剪枝器</entry>
|
|
||||||
|
|
||||||
<!-- Specially handled Item names -->
|
|
||||||
<entry key="item.moonDial.name">翡翠色月相盘</entry>
|
|
||||||
|
|
||||||
<!-- Block names -->
|
|
||||||
<entry key="tile.planks.greatwood.name">宏伟之木木板</entry>
|
|
||||||
<entry key="tile.slab.wood.greatwood.name">宏伟之木台阶</entry>
|
|
||||||
<entry key="tile.planks.silverwood.name">银树木板</entry>
|
|
||||||
<entry key="tile.slab.wood.silverwood.name">银树台阶</entry>
|
|
||||||
<entry key="tile.effectJar.name">蜜蜂收集者的罐子</entry>
|
|
||||||
|
|
||||||
<!-- Comb names -->
|
|
||||||
<entry key="comb.occult">神秘蜂巢</entry>
|
|
||||||
<entry key="comb.otherworldly">异域蜂巢</entry>
|
|
||||||
<entry key="comb.paper">纸质蜂巢</entry>
|
|
||||||
<entry key="comb.stark">朴实蜂巢</entry>
|
|
||||||
<entry key="comb.air">风之蜂巢</entry>
|
|
||||||
<entry key="comb.fire">火之蜂巢</entry>
|
|
||||||
<entry key="comb.water">水之蜂巢</entry>
|
|
||||||
<entry key="comb.earth">地之蜂巢</entry>
|
|
||||||
<entry key="comb.magic">蕴魔蜂巢</entry>
|
|
||||||
<entry key="comb.aware">回忆蜂巢</entry>
|
|
||||||
<entry key="comb.furtive">诡秘蜂巢</entry>
|
|
||||||
<entry key="comb.soul">灵魂蜂巢</entry>
|
|
||||||
<entry key="comb.essence">源质蜂巢</entry>
|
|
||||||
<entry key="comb.potent">强力蜂巢</entry>
|
|
||||||
|
|
||||||
<!-- Wax names -->
|
|
||||||
<entry key="wax.magic">魔力蜜蜡</entry>
|
|
||||||
<entry key="wax.soul">灵魂蜜蜡</entry>
|
|
||||||
|
|
||||||
<!-- Drop names -->
|
|
||||||
<entry key="drop.enchanting">蕴魔液滴</entry>
|
|
||||||
<entry key="drop.intellect">智慧液滴</entry>
|
|
||||||
|
|
||||||
<!-- Pollen names -->
|
|
||||||
<entry key="pollen.unusual">罕见花粉</entry>
|
|
||||||
<entry key="pollen.phased">相位花粉</entry>
|
|
||||||
|
|
||||||
<!-- Nugget names -->
|
|
||||||
<entry key="nugget.iron">铁粒</entry>
|
|
||||||
<entry key="nugget.steel">钢粒</entry>
|
|
||||||
<entry key="nugget.copper">铜粒</entry>
|
|
||||||
<entry key="nugget.tin">锡粒</entry>
|
|
||||||
<entry key="nugget.silver">银粒</entry>
|
|
||||||
<entry key="nugget.lead">铅粒</entry>
|
|
||||||
<entry key="nugget.diamond">钻石碎片</entry>
|
|
||||||
<entry key="nugget.emerald">绿宝石碎片</entry>
|
|
||||||
<entry key="nugget.apatite">磷灰石碎片</entry>
|
|
||||||
|
|
||||||
<!-- Propolis names -->
|
|
||||||
<entry key="propolis.dull">枯竭蜂胶</entry>
|
|
||||||
<entry key="propolis.air">和风蜂胶</entry>
|
|
||||||
<entry key="propolis.fire">炽热蜂胶</entry>
|
|
||||||
<entry key="propolis.water">奔流蜂胶</entry>
|
|
||||||
<entry key="propolis.earth">石化蜂胶</entry>
|
|
||||||
<entry key="propolis.magic">蕴魔蜂胶</entry>
|
|
||||||
|
|
||||||
<!-- Misc Resources -->
|
|
||||||
<entry key="resource.fragment">卷章碎片</entry>
|
|
||||||
<entry key="resource.lump">芬芳块</entry>
|
|
||||||
<entry key="resource.fertilizer">浓缩复合物</entry>
|
|
||||||
<entry key="resource.startNode">蜜蜂与魔法</entry>
|
|
||||||
<entry key="resource.beeEnchant">朴实蜂蕴魔物</entry>
|
|
||||||
<entry key="resource.crystalAspect">晶化%s要素</entry>
|
|
||||||
|
|
||||||
<!-- Frames -->
|
|
||||||
<entry key="item.frameMagic.name">魔力框架</entry>
|
|
||||||
<entry key="item.frameResilient.name">弹力框架</entry>
|
|
||||||
<entry key="item.frameGentle.name">柔性框架</entry>
|
|
||||||
<entry key="item.frameMetabolic.name">代谢框架</entry>
|
|
||||||
<entry key="item.frameNecrotic.name">坏死框架</entry>
|
|
||||||
<entry key="item.frameTemporal.name">瞬息框架</entry>
|
|
||||||
<entry key="item.frameOblivion.name">湮灭框架</entry>
|
|
||||||
|
|
||||||
<!-- Capsule names -->
|
|
||||||
<entry key="capsule.magic">魔力胶囊</entry>
|
|
||||||
<entry key="capsule.void">虚空胶囊</entry>
|
|
||||||
|
|
||||||
<!-- Liquids -->
|
|
||||||
<entry key="liquid.">空</entry>
|
|
||||||
<entry key="liquid.water">水</entry>
|
|
||||||
<entry key="liquid.lava">岩浆</entry>
|
|
||||||
<entry key="liquid.biomass">生物质</entry>
|
|
||||||
<entry key="liquid.biofuel">空</entry>
|
|
||||||
<entry key="liquid.Oil">石油</entry>
|
|
||||||
<entry key="liquid.Fuel">燃油</entry>
|
|
||||||
<entry key="liquid.seedoil">种子油</entry>
|
|
||||||
<entry key="liquid.honey">蜂蜜</entry>
|
|
||||||
<entry key="liquid.juice">果汁</entry>
|
|
||||||
<entry key="liquid.ice">冰</entry>
|
|
||||||
<entry key="liquid.milk">牛奶</entry>
|
|
||||||
<entry key="liquid.acid">酸</entry>
|
|
||||||
<entry key="liquid.poison">毒液</entry>
|
|
||||||
<entry key="liquid.liquidNitrogen">液氮</entry>
|
|
||||||
<entry key="liquid.liquidDNA">液态DNA</entry>
|
|
||||||
<entry key="liquid.Creosote Oil">木榴油</entry>
|
|
||||||
<entry key="liquid.Steam">蒸汽</entry>
|
|
||||||
|
|
||||||
<!-- Moon Phases -->
|
|
||||||
<entry key="moon.full">满月</entry>
|
|
||||||
<entry key="moon.gibbousWaning">亏凸月</entry>
|
|
||||||
<entry key="moon.gibousWaxing">盈凸月</entry>
|
|
||||||
<entry key="moon.halfWaning">下弦月</entry>
|
|
||||||
<entry key="moon.halfWaxing">上弦月</entry>
|
|
||||||
<entry key="moon.crescentWaning">亏蛾眉月</entry>
|
|
||||||
<entry key="moon.crescentWaxing">凸娥眉月</entry>
|
|
||||||
<entry key="moon.new">新月</entry>
|
|
||||||
|
|
||||||
<!-- Miscellaneous names -->
|
|
||||||
<entry key="backpack.thaumaturge">神秘使背包</entry>
|
|
||||||
<entry key="itemGroup.magicbees">神秘蜜蜂</entry>
|
|
||||||
|
|
||||||
<!-- Species names -->
|
|
||||||
<entry key="magicbees.speciesEsoteric">玄奥</entry>
|
|
||||||
<entry key="magicbees.speciesEsoteric.description">罕见的杂交品种,具有魔力特性。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious">神秘</entry>
|
|
||||||
<entry key="magicbees.speciesMysterious.description">这些蜜蜂曾经去过世界的尽头并凯旋归来,它们的能力得到了长足增强。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesArcane">奥能</entry>
|
|
||||||
<entry key="magicbees.speciesArcane.description">"它们的产物充满了魔力!"|Azanor, 大神秘使</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesCharmed">魅惑</entry>
|
|
||||||
<entry key="magicbees.speciesCharmed.description">你的神秘学养蜂试验终于结出了硕果-一种会嗡嗡叫名为蜜蜂的硕果。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted">蕴魔</entry>
|
|
||||||
<entry key="magicbees.speciesEnchanted.description">数带魅惑蜂的繁衍让小东西们逐渐接触到未知的存在。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural">超能</entry>
|
|
||||||
<entry key="magicbees.speciesSupernatural.description">蜜蜂行走在不可视境界线之上。|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesPupil">学徒</entry>
|
|
||||||
<entry key="magicbees.speciesPupil.description">"这群蜜蜂想对我的研究稿做什么?!|Yorae,图书馆馆员</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly">博学</entry>
|
|
||||||
<entry key="magicbees.speciesScholarly.description">"我难以确信,但我觉得它们比我更聪明 ..."|Yorae,图书馆馆员</entry>
|
|
||||||
<entry key="magicbees.speciesSavant">专家</entry>
|
|
||||||
<entry key="magicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))).
|
|
||||||
把这个解出来我就给你们蜂蜜。|Yorae的桌子上发现的便签</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAware">感知</entry>
|
|
||||||
<entry key="magicbees.speciesAware.description">"它们看得见你的灵魂!"|Florastar,养蜂专家</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit">精神</entry>
|
|
||||||
<entry key="magicbees.speciesSpirit.description">据说这种蜜蜂能和死者沟通。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSoul">魂魄</entry>
|
|
||||||
<entry key="magicbees.speciesSoul.description">"路西法亲自收割你的灵魂来啦!"|Yooooooooo</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesSkulking">诡隐</entry>
|
|
||||||
<entry key="magicbees.speciesSkulking.description">这些蜜蜂变得暴躁排外,你可得当心了!|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly">幽魂</entry>
|
|
||||||
<entry key="magicbees.speciesGhastly.description">"*叹息*... 真的,神秘?"|Taveria</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery">蜘蛛</entry>
|
|
||||||
<entry key="magicbees.speciesSpidery.description">蜘蛛蜂; 嗯.做蜘蛛蜂该做的事情。|未知语</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTimely">瞬息</entry>
|
|
||||||
<entry key="magicbees.speciesTimely.description">"养蜂员从不迟到,他想去的时候就能准点到达!"|Sengir,养蜂狂人</entry>
|
|
||||||
<entry key="magicbees.speciesLordly">贵族</entry>
|
|
||||||
<entry key="magicbees.speciesLordly.description">它们平和生活,共建和谐社会|古遗物</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral">博士</entry>
|
|
||||||
<entry key="magicbees.speciesDoctoral.description">"你们喜欢胶糖娃娃吗?"|戴着大围巾,手持蓝色盒子的陌生人</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesIron">灰铁</entry>
|
|
||||||
<entry key="magicbees.speciesIron.description">这种蜜蜂能从周围聚集铁元素。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesGold">黄金</entry>
|
|
||||||
<entry key="magicbees.speciesGold.description">闪光的东西未必是黄金。|古代格言</entry>
|
|
||||||
<entry key="magicbees.speciesCopper">紫铜</entry>
|
|
||||||
<entry key="magicbees.speciesCopper.description">铜是非常有用的常见金属,这种蜜蜂能从周围聚集铜元素。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTin">白锡</entry>
|
|
||||||
<entry key="magicbees.speciesTin.description">涉及到金属的时候,这些蜜蜂异常脆弱。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesSilver">白银</entry>
|
|
||||||
<entry key="magicbees.speciesSilver.description">即使略逊于黄金蜂,它们也自有其价值所在。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesLead">黑铅</entry>
|
|
||||||
<entry key="magicbees.speciesLead.description">业余炼金术师的最好,它们相信这种蜜蜂能点铅化金。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond">钻石</entry>
|
|
||||||
<entry key="magicbees.speciesDiamond.description">闪光的结晶,硬比龙牙。钻石恒久远,一颗永流传。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald">宝石</entry>
|
|
||||||
<entry key="magicbees.speciesEmerald.description">据说它们曾造访伟大巫师统治之地,并带走了巫师之城的要素。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesApatite">磷化</entry>
|
|
||||||
<entry key="magicbees.speciesApatite.description">这些东西真心是日夜牢骚不断。我关紧窗户躲进地下室,但蜜蜂尖锐的嗡嗡声却无处不在地透墙而过,乱我心绪。|养蜂入门</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCStark">朴实</entry>
|
|
||||||
<entry key="magicbees.speciesTCStark.description">"它们能吸引魔力的碎片,具体有待研究!"|Azanor,大神秘使</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir">灵气</entry>
|
|
||||||
<entry key="magicbees.speciesTCAir.description">"工作敏捷,扣人心弦!"|Sengir,养蜂狂人</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire">灼热</entry>
|
|
||||||
<entry key="magicbees.speciesTCFire.description">注意:蜂房中的东西相当灼热。|Azanor的蜂房的警告牌</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater">流水</entry>
|
|
||||||
<entry key="magicbees.speciesTCWater.description">"我试图养育它们,结果变成落汤鸡!"|MysteriousAges,神秘使学徒</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth">泥土</entry>
|
|
||||||
<entry key="magicbees.speciesTCEarth.description">"这些蜜蜂真心是挖掘专家,小心它们挖洞"|MysteriousAges,滑稽剧学徒</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic">奇术</entry>
|
|
||||||
<entry key="magicbees.speciesTCMagic.description">养蜂本身就是一种魔法!|Apinomicon,绪论</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCVis">魔力</entry>
|
|
||||||
<entry key="magicbees.speciesTCVis.description">"它们能感知到魔力的存在,却还不能影响到魔力。"|Azanor,研究笔记</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure">纯净</entry>
|
|
||||||
<entry key="magicbees.speciesTCPure.description">"蜜蜂中的卫士!"|MysteriousAges,神秘使</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux">咒波</entry>
|
|
||||||
<entry key="magicbees.speciesTCFlux.description">"我以为能解决咒波问题呢,结果情况更糟糕了!"|Kreicus,神秘使学徒</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating">复兴</entry>
|
|
||||||
<entry key="magicbees.speciesTCRejuvenating.description">神奇的蜜蜂,能吸引附近的节点靠近。|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCBrainy">怒尸</entry>
|
|
||||||
<entry key="magicbees.speciesTCBrainy.description">蜂巢变得恶臭难闻,但这些家伙变得好聪明!|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy">精灵</entry>
|
|
||||||
<entry key="magicbees.speciesTCWispy.description">它们的语言支离破碎,难以理解,也许它们在和某种超自然的生物沟通?|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty">火蝠</entry>
|
|
||||||
<entry key="magicbees.speciesTCBatty.description">它们通过未知的方法吸引了许多火焰蝙蝠。|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesTCChicken">家禽</entry>
|
|
||||||
<entry key="magicbees.speciesTCChicken.description">"咯咯。咯咯咯,咯咯咯咯! ... 听到没?"|困惑的蜜蜂</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef">壮牛</entry>
|
|
||||||
<entry key="magicbees.speciesTCBeef.description">"哞哞,哞哞,哞哞。稍等,咋回事?"|困惑的蜜蜂</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork">猪啰</entry>
|
|
||||||
<entry key="magicbees.speciesTCPork.description">"呼噜,呼噜噜.额.... 嗡嗡?"|困惑的蜜蜂</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesEEMinium">铅丹</entry>
|
|
||||||
<entry key="magicbees.speciesEEMinium.description">善变乃其天性。|Apinomicon</entry>
|
|
||||||
|
|
||||||
<entry key="magicbees.speciesAMEssence">源质</entry>
|
|
||||||
<entry key="magicbees.speciesAMEssence.description">集中力量汇集大气中的微尘。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence">精萃</entry>
|
|
||||||
<entry key="magicbees.speciesAMQuintessence.description">魔法之心蕴藏世间诸事。|Apinomicon,绪论</entry>
|
|
||||||
<entry key="magicbees.speciesAMErde">大地</entry>
|
|
||||||
<entry key="magicbees.speciesAMErde.description">大地的力量灌注下,它们制造地属性的源质。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMLuft">和风</entry>
|
|
||||||
<entry key="magicbees.speciesAMLuft.description">在风的加持下,比空气更轻盈。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMFeuer">焰火</entry>
|
|
||||||
<entry key="magicbees.speciesAMFeuer.description">它们能沸水溶金。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWasser">水灵</entry>
|
|
||||||
<entry key="magicbees.speciesAMWasser.description">浸透了液体后,它们的蜂巢潮湿又沉重。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMBlitz">闪电</entry>
|
|
||||||
<entry key="magicbees.speciesAMBlitz.description">瞬息千里,所到即生野火。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMStaude">延年</entry>
|
|
||||||
<entry key="magicbees.speciesAMStaude.description">与绿色和生命的力量天生亲和。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMEis">冰霜</entry>
|
|
||||||
<entry key="magicbees.speciesAMEis.description">"它们老偷我东西,但我却抓不住它们。它们太滑溜。"|MysteriousAges, incorrigible
|
|
||||||
punster</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma">熔岩</entry>
|
|
||||||
<entry key="magicbees.speciesAMMagma.description">它们飞过之处,大地被烧灼成灰烬之地,所有的植被都被焚烧干净。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMArkanen">奥义</entry>
|
|
||||||
<entry key="magicbees.speciesAMArkanen.description">"古怪的生物,但是产物蛮有用的"|Mithion,专家级法师</entry>
|
|
||||||
<entry key="magicbees.speciesAMVortex">漩涡</entry>
|
|
||||||
<entry key="magicbees.speciesAMVortex.description">它们贪婪地渴求法力,被任何施法者它们都能危险。|Apinomicon</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight">重量</entry>
|
|
||||||
<entry key="magicbees.speciesAMWight.description">"它们能吸收魔力;并非总是很温顺。"|Mithion,专家级法师</entry>
|
|
||||||
|
|
||||||
<!-- Blank species entries <entry key="magicbees.species"></entry> <entry
|
|
||||||
key="magicbees.species.description"></entry> -->
|
|
||||||
<!-- Bee Alleles -->
|
|
||||||
<entry key="magicbees.effectCurative">驱散</entry>
|
|
||||||
<entry key="magicbees.effectDigSpeed">挖掘加速</entry>
|
|
||||||
<entry key="magicbees.effectMoveSpeed">速度</entry>
|
|
||||||
<entry key="magicbees.effectSlowSpeed">缓慢</entry>
|
|
||||||
<entry key="magicbees.effectNodeGeneration">灵气吸收</entry>
|
|
||||||
<entry key="magicbees.effectNodePurify">灵气纯化</entry>
|
|
||||||
<entry key="magicbees.effectNodeFlux">咒波</entry>
|
|
||||||
<entry key="magicbees.effectNodeCharge">灵气充能</entry>
|
|
||||||
<entry key="magicbees.effectBrainy">怒尸</entry>
|
|
||||||
<entry key="magicbees.effectBatty">火蝠</entry>
|
|
||||||
<entry key="magicbees.effectWispy">精灵</entry>
|
|
||||||
<entry key="magicbees.effectGhastly">幽魂</entry>
|
|
||||||
<entry key="magicbees.effectManaDrainer">漩涡</entry>
|
|
||||||
<entry key="magicbees.effectAMWisp">精灵[AM]</entry>
|
|
||||||
<entry key="flowerProvider.book">书</entry>
|
|
||||||
<entry key="flowerProvider.magic">神秘植物</entry>
|
|
||||||
<entry key="flowerProvider.arsmagica">异域植物</entry>
|
|
||||||
<entry key="flowerProvider.node">节点</entry>
|
|
||||||
|
|
||||||
<!-- Classifications -->
|
|
||||||
<entry key="classification.arcane">奥能</entry>
|
|
||||||
<entry key="classification.arcane.description">对奥法亲和的蜜蜂。|Apinomicon</entry>
|
|
||||||
<entry key="classification.supernatural">超能</entry>
|
|
||||||
<entry key="classification.supernatural.description">非比寻常,和很多神秘现象有关。|Apinomicon</entry>
|
|
||||||
<entry key="classification.scholarly">博学</entry>
|
|
||||||
<entry key="classification.scholarly.description">这种蜜蜂拥有强大的智慧和演算能力。|Apinomicon</entry>
|
|
||||||
<entry key="classification.skulking">诡隐</entry>
|
|
||||||
<entry key="classification.skulking.description">令人不快的恶意。当心它们。|Apinomicon</entry>
|
|
||||||
<entry key="classification.magic">意识</entry>
|
|
||||||
<entry key="classification.magic.description">它们是否有意识不能妄断,但它们对周围的环境很敏锐。|Apinomicon</entry>
|
|
||||||
<entry key="classification.time">时间</entry>
|
|
||||||
<entry key="classification.time.description">通过巧妙的时间控制能力,这种蜜蜂一天能当两天过。|Apinomicon</entry>
|
|
||||||
<entry key="classification.soul">灵魂</entry>
|
|
||||||
<entry key="classification.soul.description">它们在收集死者的魂魄,好可怕!|Apinomicon</entry>
|
|
||||||
<entry key="classification.metallic">金属</entry>
|
|
||||||
<entry key="classification.metallic.description">汇聚金属的蜜蜂。|Apinomicon</entry>
|
|
||||||
<entry key="classification.gem">宝石</entry>
|
|
||||||
<entry key="classification.gem.description">汇聚宝石的蜜蜂。|Apinomicon</entry>
|
|
||||||
<entry key="classification.thaumic">神秘</entry>
|
|
||||||
<entry key="classification.thaumic.description">和很多神秘力量亲和的蜜蜂。|Apinomicon</entry>
|
|
||||||
<entry key="classification.fleshy">肉块</entry>
|
|
||||||
<entry key="classification.fleshy.description">因为未知原因,这种蜜蜂大量产出可使用的肉。|Apinomicon</entry>
|
|
||||||
<entry key="classification.alchemical">炼金</entry>
|
|
||||||
<entry key="classification.alchemical.description">这种蜜蜂有一种嬗变的天性。|Apinomicon</entry>
|
|
||||||
<entry key="classification.essential">源质</entry>
|
|
||||||
<entry key="classification.essential.description">这种蜜蜂对魔法源质非常亲和。|Apinomicon</entry>
|
|
||||||
|
|
||||||
</properties>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
20*2
|
|
||||||
21*2
|
|
||||||
22*2
|
|
||||||
23*2
|
|
||||||
24*2
|
|
||||||
25*2
|
|
||||||
26*2
|
|
||||||
27*2
|
|
||||||
28*2
|
|
||||||
29*2
|
|
||||||
30*2
|
|
||||||
31*2
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
20*2
|
|
||||||
21*2
|
|
||||||
22*2
|
|
||||||
23*2
|
|
||||||
24*2
|
|
||||||
25*2
|
|
||||||
26*2
|
|
||||||
27*2
|
|
||||||
28*2
|
|
||||||
29*2
|
|
||||||
30*2
|
|
||||||
31*2
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
18*2
|
|
||||||
17*2
|
|
||||||
16*2
|
|
||||||
15*2
|
|
||||||
14*2
|
|
||||||
13*2
|
|
||||||
12*2
|
|
||||||
11*2
|
|
||||||
10*2
|
|
||||||
9*2
|
|
||||||
8*2
|
|
||||||
7*2
|
|
||||||
6*2
|
|
||||||
5*2
|
|
||||||
4*2
|
|
||||||
3*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
18*2
|
|
||||||
17*2
|
|
||||||
16*2
|
|
||||||
15*2
|
|
||||||
14*2
|
|
||||||
13*2
|
|
||||||
12*2
|
|
||||||
11*2
|
|
||||||
10*2
|
|
||||||
9*2
|
|
||||||
8*2
|
|
||||||
7*2
|
|
||||||
6*2
|
|
||||||
5*2
|
|
||||||
4*2
|
|
||||||
3*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
20*2
|
|
||||||
21*2
|
|
||||||
22*2
|
|
||||||
23*2
|
|
||||||
24*2
|
|
||||||
25*2
|
|
||||||
26*2
|
|
||||||
27*2
|
|
||||||
28*2
|
|
||||||
29*2
|
|
||||||
30*2
|
|
||||||
31*2
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
0*2
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
3*2
|
|
||||||
4*2
|
|
||||||
5*2
|
|
||||||
6*2
|
|
||||||
7*2
|
|
||||||
8*2
|
|
||||||
9*2
|
|
||||||
10*2
|
|
||||||
11*2
|
|
||||||
12*2
|
|
||||||
13*2
|
|
||||||
14*2
|
|
||||||
15*2
|
|
||||||
16*2
|
|
||||||
17*2
|
|
||||||
18*2
|
|
||||||
19*2
|
|
||||||
20*2
|
|
||||||
21*2
|
|
||||||
22*2
|
|
||||||
23*2
|
|
||||||
24*2
|
|
||||||
25*2
|
|
||||||
26*2
|
|
||||||
27*2
|
|
||||||
28*2
|
|
||||||
29*2
|
|
||||||
30*2
|
|
||||||
31*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
0*48
|
|
||||||
1*2
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
0*48
|
|
||||||
1*2
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
0*48
|
|
||||||
1*2
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*64
|
|
||||||
1*2
|
|
||||||
2*2
|
|
||||||
1*2
|
|
||||||
0*96
|
|
||||||
3*4
|
|
||||||
0*128
|
|
||||||
4*2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
0*3
|
|
||||||
1*3
|
|
||||||
2*3
|
|
||||||
3*3
|
|
||||||
4*3
|
|
||||||
5*3
|
|
||||||
6*3
|
|
||||||
7*3
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
@@ -1,68 +0,0 @@
|
|||||||
package magicbees.bees;
|
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.aura.AuraNode;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
|
||||||
|
|
||||||
public class AlleleEffectAuraNodeAttract extends AlleleEffect
|
|
||||||
{
|
|
||||||
|
|
||||||
public AlleleEffectAuraNodeAttract(String id, boolean isDominant, int timeout)
|
|
||||||
{
|
|
||||||
super(id, isDominant, timeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
|
||||||
{
|
|
||||||
if (storedData == null)
|
|
||||||
{
|
|
||||||
storedData = new EffectData(1, 0, 0);
|
|
||||||
}
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
|
||||||
{
|
|
||||||
World w = housing.getWorld();
|
|
||||||
if (w.rand.nextInt(10) < 1)
|
|
||||||
{
|
|
||||||
float x = housing.getXCoord();
|
|
||||||
float y = housing.getYCoord();
|
|
||||||
float z = housing.getZCoord();
|
|
||||||
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(w, x, y, z, 1800);
|
|
||||||
if (nodeId != -1)
|
|
||||||
{
|
|
||||||
AuraNode node = ThaumcraftApi.getNodeCopy(nodeId);
|
|
||||||
if (node.level >= node.baseLevel * 4 / 5)
|
|
||||||
{
|
|
||||||
x = (float)(x - node.xPos);
|
|
||||||
y = (float)(y - node.yPos);
|
|
||||||
z = (float)(z - node.zPos);
|
|
||||||
|
|
||||||
float distance = (float)Math.sqrt(x * x + y * y + z * z);
|
|
||||||
x = x / distance;
|
|
||||||
y = y / distance;
|
|
||||||
z = z / distance;
|
|
||||||
|
|
||||||
x *= 0.05f;
|
|
||||||
y *= 0.05f;
|
|
||||||
z *= 0.05f;
|
|
||||||
|
|
||||||
ThaumcraftApi.queueNodeChanges(nodeId, -1, 0, false, null, x, y, z);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
storedData.setInteger(0, 0);
|
|
||||||
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
package magicbees.bees;
|
|
||||||
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
|
||||||
|
|
||||||
public class AlleleEffectAuraNodeCharge extends AlleleEffect
|
|
||||||
{
|
|
||||||
|
|
||||||
AlleleEffectAuraNodeCharge(String id, boolean dominant, int timeout)
|
|
||||||
{
|
|
||||||
super(id, dominant, timeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
|
||||||
{
|
|
||||||
if (storedData == null)
|
|
||||||
{
|
|
||||||
storedData = new EffectData(1, 0, 0);
|
|
||||||
}
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
|
||||||
{
|
|
||||||
World world = housing.getWorld();
|
|
||||||
int x = housing.getXCoord();
|
|
||||||
int y = housing.getYCoord();
|
|
||||||
int z = housing.getZCoord();
|
|
||||||
|
|
||||||
if (world.rand.nextBoolean())
|
|
||||||
{
|
|
||||||
ThaumcraftApi.increaseLowestAura(world, x, y, z, 1);
|
|
||||||
}
|
|
||||||
storedData.setInteger(0, 0);
|
|
||||||
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
package magicbees.bees;
|
|
||||||
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
|
||||||
|
|
||||||
public class AlleleEffectAuraNodeFlux extends AlleleEffect
|
|
||||||
{
|
|
||||||
private int nodeRange;
|
|
||||||
|
|
||||||
AlleleEffectAuraNodeFlux(String id, boolean dominant, int timeout, int range)
|
|
||||||
{
|
|
||||||
super(id, dominant, timeout);
|
|
||||||
this.nodeRange = range;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
|
||||||
{
|
|
||||||
if (storedData == null)
|
|
||||||
{
|
|
||||||
storedData = new EffectData(1, 0, 0);
|
|
||||||
}
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
|
||||||
{
|
|
||||||
World world = housing.getWorld();
|
|
||||||
int x = housing.getXCoord();
|
|
||||||
int y = housing.getYCoord();
|
|
||||||
int z = housing.getZCoord();
|
|
||||||
|
|
||||||
EnumTag tag;
|
|
||||||
do
|
|
||||||
{
|
|
||||||
tag = EnumTag.values()[world.rand.nextInt(EnumTag.values().length)];
|
|
||||||
}
|
|
||||||
while (tag == EnumTag.UNKNOWN || tag == EnumTag.WEATHER);
|
|
||||||
|
|
||||||
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange);
|
|
||||||
if (nodeId != -1)
|
|
||||||
{
|
|
||||||
int quantity = world.rand.nextInt(2) + 1;
|
|
||||||
ThaumcraftApi.queueNodeChanges(nodeId, 0, 0, false, new ObjectTags().add(tag, quantity), 0f, 0f, 0f);
|
|
||||||
}
|
|
||||||
storedData.setInteger(0, 0);
|
|
||||||
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
package magicbees.bees;
|
|
||||||
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.aura.AuraNode;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
|
||||||
|
|
||||||
public class AlleleEffectAuraNodePurify extends AlleleEffect
|
|
||||||
{
|
|
||||||
private int nodeRange;
|
|
||||||
|
|
||||||
public AlleleEffectAuraNodePurify(String id, boolean dominant, int timeout, int range)
|
|
||||||
{
|
|
||||||
super(id, dominant, timeout);
|
|
||||||
this.nodeRange = range;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
|
||||||
{
|
|
||||||
if (storedData == null)
|
|
||||||
{
|
|
||||||
storedData = new EffectData(1, 0, 0);
|
|
||||||
}
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
|
||||||
{
|
|
||||||
World world = housing.getWorld();
|
|
||||||
int x = housing.getXCoord();
|
|
||||||
int y = housing.getYCoord();
|
|
||||||
int z = housing.getZCoord();
|
|
||||||
|
|
||||||
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange);
|
|
||||||
if (nodeId >= 0)
|
|
||||||
{
|
|
||||||
AuraNode node = ThaumcraftApi.getNodeCopy(nodeId);
|
|
||||||
if (node != null)
|
|
||||||
{
|
|
||||||
int aspectCount = node.flux.tags.size();
|
|
||||||
if (aspectCount > 0)
|
|
||||||
{
|
|
||||||
EnumTag selectedTag = node.flux.getAspectsSorted()[world.rand.nextInt(node.flux.tags.size())];
|
|
||||||
if (selectedTag != null && housing.addProduct(new ItemStack(Config.solidFlux, 1, selectedTag.id), true))
|
|
||||||
{
|
|
||||||
node.flux.remove(selectedTag, 1);
|
|
||||||
ThaumcraftApi.queueNodeChanges(node.key, 0, 0, false, new ObjectTags().remove(selectedTag, 1), 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
storedData.setInteger(0, 0);
|
|
||||||
|
|
||||||
return storedData;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
package magicbees.bees;
|
|
||||||
|
|
||||||
import forestry.api.apiculture.IBeeRoot;
|
|
||||||
import forestry.api.genetics.AlleleManager;
|
|
||||||
import magicbees.block.types.HiveType;
|
|
||||||
import magicbees.item.types.DropType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
|
|
||||||
public class BeeManager
|
|
||||||
{
|
|
||||||
public static IBeeRoot beeRoot;
|
|
||||||
|
|
||||||
public static void ititializeBees()
|
|
||||||
{
|
|
||||||
beeRoot = (IBeeRoot)AlleleManager.alleleRegistry.getSpeciesRoot("rootBees");
|
|
||||||
|
|
||||||
Allele.setupAdditionalAlleles();
|
|
||||||
BeeSpecies.setupBeeSpecies();
|
|
||||||
Allele.registerDeprecatedAlleleReplacements();
|
|
||||||
BeeMutation.setupMutations();
|
|
||||||
|
|
||||||
HiveType.initHiveData();
|
|
||||||
|
|
||||||
beeRoot.setResearchSuitability(Config.drops.getStackForType(DropType.INTELLECT), 0.5f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
package magicbees.block;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.Icon;
|
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
public class BlockPlanks extends Block
|
|
||||||
{
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private Icon[] icons;
|
|
||||||
|
|
||||||
public BlockPlanks(int id)
|
|
||||||
{
|
|
||||||
super(id, Material.wood);
|
|
||||||
this.setHardness(2.5f);
|
|
||||||
this.setResistance(6.0f);
|
|
||||||
this.setCreativeTab(CreativeTabs.tabBlock);
|
|
||||||
if (MagicBees.getConfig().AreMagicPlanksFlammable)
|
|
||||||
{
|
|
||||||
Block.setBurnProperties(id, 5, 20);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int damageDropped(int meta)
|
|
||||||
{
|
|
||||||
return meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
@Override
|
|
||||||
public void getSubBlocks(int id, CreativeTabs tab, List itemsList)
|
|
||||||
{
|
|
||||||
for (PlankType type : PlankType.values())
|
|
||||||
{
|
|
||||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
@Override
|
|
||||||
public Icon getIcon(int side, int meta)
|
|
||||||
{
|
|
||||||
return this.icons[Math.max(0, Math.min(meta & 7, icons.length-1))];
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void registerIcons(IconRegister par1IconRegister)
|
|
||||||
{
|
|
||||||
this.icons = new Icon[PlankType.values().length];
|
|
||||||
for (PlankType t : PlankType.values())
|
|
||||||
{
|
|
||||||
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":" + t.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
package magicbees.block;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.block.BlockHalfSlab;
|
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.Icon;
|
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
public class BlockWoodSlab extends BlockHalfSlab
|
|
||||||
{
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private Icon[] icons;
|
|
||||||
|
|
||||||
public BlockWoodSlab(int id, boolean doubleSlab)
|
|
||||||
{
|
|
||||||
super(id, doubleSlab, Material.wood);
|
|
||||||
this.setHardness(2.5f);
|
|
||||||
this.setResistance(6.0f);
|
|
||||||
this.setUnlocalizedName("tb.slab.wood");
|
|
||||||
this.setCreativeTab(CreativeTabs.tabBlock);
|
|
||||||
this.setLightOpacity(doubleSlab ? 255 : 0);
|
|
||||||
if (MagicBees.getConfig().AreMagicPlanksFlammable)
|
|
||||||
{
|
|
||||||
Block.setBurnProperties(id, 5, 20);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int idDropped(int id, Random rand, int par3)
|
|
||||||
{
|
|
||||||
return Config.slabWoodHalf.blockID;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected ItemStack createStackedBlock(int meta)
|
|
||||||
{
|
|
||||||
return new ItemStack(Config.planksWood.blockID, 1, meta & 7);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getFullSlabName(int meta)
|
|
||||||
{
|
|
||||||
return this.getUnlocalizedName() + "." + PlankType.getType(meta).name;
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
@Override
|
|
||||||
public void getSubBlocks(int id, CreativeTabs tab, List itemsList)
|
|
||||||
{
|
|
||||||
for (PlankType type : PlankType.values())
|
|
||||||
{
|
|
||||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
@Override
|
|
||||||
public Icon getIcon(int side, int meta)
|
|
||||||
{
|
|
||||||
return this.icons[Math.max(0, Math.min(meta & 7, icons.length-1))];
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void registerIcons(IconRegister par1IconRegister)
|
|
||||||
{
|
|
||||||
this.icons = new Icon[PlankType.values().length];
|
|
||||||
for (PlankType t : PlankType.values())
|
|
||||||
{
|
|
||||||
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":" + t.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
|
|
||||||
{
|
|
||||||
int id = world.getBlockId(x, y, z);
|
|
||||||
|
|
||||||
if (id == 0)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Item item = Item.itemsList[id];
|
|
||||||
if (item == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new ItemStack(id, 1, getDamageValue(world, x, y, z) & 7);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,297 +0,0 @@
|
|||||||
package magicbees.block.types;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import magicbees.bees.BeeGenomeManager;
|
|
||||||
import magicbees.bees.BeeSpecies;
|
|
||||||
import magicbees.bees.HiveDrop;
|
|
||||||
import magicbees.item.types.CombType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
|
||||||
import magicbees.world.feature.FeatureHive;
|
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.Icon;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
|
||||||
import net.minecraftforge.common.BiomeDictionary;
|
|
||||||
import net.minecraftforge.common.BiomeDictionary.Type;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import forestry.api.apiculture.IHiveDrop;
|
|
||||||
|
|
||||||
public enum HiveType
|
|
||||||
{
|
|
||||||
CURIOUS("curious", 12, true),
|
|
||||||
UNUSUAL("unusual", 12, true),
|
|
||||||
RESONANT("resonant", 12, true),
|
|
||||||
DEEP("deep", 4, false),
|
|
||||||
INFERNAL("infernal", 15, false),
|
|
||||||
OBLIVION("oblivion", 7, false),
|
|
||||||
;
|
|
||||||
|
|
||||||
private static String[] nameList;
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
public boolean show;
|
|
||||||
private int lightLevel;
|
|
||||||
private ArrayList<IHiveDrop> drops;
|
|
||||||
private ArrayList<BiomeDictionary.Type> validBiomes;
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private Icon[] icons;
|
|
||||||
|
|
||||||
public static HiveType getHiveFromMeta(int meta)
|
|
||||||
{
|
|
||||||
HiveType type = CURIOUS;
|
|
||||||
|
|
||||||
if (meta > 0 && meta < HiveType.values().length)
|
|
||||||
{
|
|
||||||
type = HiveType.values()[meta];
|
|
||||||
}
|
|
||||||
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void initHiveData()
|
|
||||||
{
|
|
||||||
ItemStack[] combs = new ItemStack[] {Config.combs.getStackForType(CombType.MUNDANE)};
|
|
||||||
HiveDrop valiantDrop = new HiveDrop(BeeGenomeManager.addRainResist(ForestryHelper.getTemplateForestryForSpecies("Valiant")), combs, 5);
|
|
||||||
|
|
||||||
CURIOUS.validBiomes.add(Type.FOREST);
|
|
||||||
CURIOUS.validBiomes.add(Type.JUNGLE);
|
|
||||||
CURIOUS.validBiomes.add(Type.HILLS);
|
|
||||||
CURIOUS.drops.add(new HiveDrop(BeeSpecies.MYSTICAL.getGenome(), combs, 80));
|
|
||||||
CURIOUS.drops.add(new HiveDrop(BeeGenomeManager.addRainResist(BeeSpecies.MYSTICAL.getGenome()), combs, 15));
|
|
||||||
CURIOUS.drops.add(valiantDrop);
|
|
||||||
|
|
||||||
UNUSUAL.validBiomes.add(Type.PLAINS);
|
|
||||||
UNUSUAL.validBiomes.add(Type.MOUNTAIN);
|
|
||||||
UNUSUAL.validBiomes.add(Type.HILLS);
|
|
||||||
UNUSUAL.drops.add(new HiveDrop(BeeSpecies.UNUSUAL.getGenome(), combs, 80));
|
|
||||||
UNUSUAL.drops.add(new HiveDrop(BeeGenomeManager.addRainResist(BeeSpecies.UNUSUAL.getGenome()), combs, 15));
|
|
||||||
UNUSUAL.drops.add(valiantDrop);
|
|
||||||
|
|
||||||
RESONANT.validBiomes.add(Type.DESERT);
|
|
||||||
RESONANT.validBiomes.add(Type.MAGICAL);
|
|
||||||
RESONANT.drops.add(new HiveDrop(BeeSpecies.SORCEROUS.getGenome(), combs, 80));
|
|
||||||
RESONANT.drops.add(new HiveDrop(BeeGenomeManager.addRainResist(BeeSpecies.SORCEROUS.getGenome()), combs, 20));
|
|
||||||
RESONANT.drops.add(valiantDrop);
|
|
||||||
|
|
||||||
DEEP.validBiomes.add(Type.HILLS);
|
|
||||||
DEEP.validBiomes.add(Type.MOUNTAIN);
|
|
||||||
DEEP.validBiomes.add(Type.MAGICAL);
|
|
||||||
DEEP.drops.add(new HiveDrop(BeeSpecies.ATTUNED.getGenome(), combs, 80));
|
|
||||||
DEEP.drops.add(new HiveDrop(BeeGenomeManager.addRainResist(BeeSpecies.ATTUNED.getGenome()), combs, 20));
|
|
||||||
DEEP.drops.add(valiantDrop);
|
|
||||||
|
|
||||||
combs = new ItemStack[] {Config.combs.getStackForType(CombType.MOLTEN), new ItemStack(Item.lightStoneDust, 6)};
|
|
||||||
|
|
||||||
INFERNAL.validBiomes.add(Type.NETHER);
|
|
||||||
INFERNAL.validBiomes.add(Type.MAGICAL);
|
|
||||||
INFERNAL.drops.add(new HiveDrop(BeeSpecies.INFERNAL.getGenome(), combs, 80));
|
|
||||||
INFERNAL.drops.add(new HiveDrop(ForestryHelper.getTemplateForestryForSpecies("Steadfast"), combs, 3));
|
|
||||||
|
|
||||||
combs = new ItemStack[] {Config.combs.getStackForType(CombType.FORGOTTEN), new ItemStack(Item.enderPearl, 1)};
|
|
||||||
|
|
||||||
OBLIVION.validBiomes.add(Type.END);
|
|
||||||
OBLIVION.validBiomes.add(Type.MAGICAL);
|
|
||||||
OBLIVION.drops.add(new HiveDrop(BeeSpecies.OBLIVION.getGenome(), combs, 80));
|
|
||||||
OBLIVION.drops.add(new HiveDrop(ForestryHelper.getTemplateForestryForSpecies("Steadfast"), combs, 9));
|
|
||||||
}
|
|
||||||
|
|
||||||
private HiveType(String hiveName, int light, boolean visible)
|
|
||||||
{
|
|
||||||
this.name = hiveName;
|
|
||||||
this.lightLevel = light;
|
|
||||||
this.show = visible;
|
|
||||||
this.drops = new ArrayList<IHiveDrop>();
|
|
||||||
this.validBiomes = new ArrayList<BiomeDictionary.Type>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public static void registerIcons(IconRegister register)
|
|
||||||
{
|
|
||||||
for (HiveType type : HiveType.values())
|
|
||||||
{
|
|
||||||
type.icons = new Icon[2];
|
|
||||||
|
|
||||||
type.icons[0] = register.registerIcon(VersionInfo.ModName.toLowerCase() + ":beehive." + type.ordinal() + ".top");
|
|
||||||
type.icons[1] = register.registerIcon(VersionInfo.ModName.toLowerCase() + ":beehive." + type.ordinal() + ".side");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private HiveType()
|
|
||||||
{
|
|
||||||
this.drops = new ArrayList<IHiveDrop>();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addDrop(IHiveDrop drop)
|
|
||||||
{
|
|
||||||
this.drops.add(drop);
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public Icon getIconForSide(int side)
|
|
||||||
{
|
|
||||||
Icon i = this.icons[0];
|
|
||||||
|
|
||||||
if (side != 0 && side != 1)
|
|
||||||
{
|
|
||||||
i = this.icons[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getLightValue()
|
|
||||||
{
|
|
||||||
return this.lightLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int fortune)
|
|
||||||
{
|
|
||||||
ArrayList<ItemStack> hiveDrops = new ArrayList<ItemStack>();
|
|
||||||
int dart;
|
|
||||||
|
|
||||||
// Get a princess.
|
|
||||||
int throttle = 0;
|
|
||||||
while (hiveDrops.size() <= 0 && throttle < 10)
|
|
||||||
{
|
|
||||||
++throttle;
|
|
||||||
dart = world.rand.nextInt(100);
|
|
||||||
for (IHiveDrop drop : drops)
|
|
||||||
{
|
|
||||||
if (dart <= drop.getChance(world, x, y, z))
|
|
||||||
{
|
|
||||||
hiveDrops.add(drop.getPrincess(world, x, y, z, fortune));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get a drone, maybe.
|
|
||||||
dart = world.rand.nextInt(100);
|
|
||||||
for (IHiveDrop drop : drops)
|
|
||||||
{
|
|
||||||
if (dart <= drop.getChance(world, x, y, z))
|
|
||||||
{
|
|
||||||
hiveDrops.addAll(drop.getDrones(world, x, y, z, fortune));
|
|
||||||
hiveDrops.addAll(drop.getAdditional(world, x, y, z, fortune));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return hiveDrops;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String[] getAllNames()
|
|
||||||
{
|
|
||||||
return (nameList == null) ? nameList = generateNames() : nameList;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String[] generateNames()
|
|
||||||
{
|
|
||||||
String[] names = new String[values().length];
|
|
||||||
for (int i = 0; i < names.length; ++i)
|
|
||||||
{
|
|
||||||
names[i] = values()[i].name;
|
|
||||||
}
|
|
||||||
return names;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void generateHive(World world, Random random, int chunkX, int chunkZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
if (spawnsInBiome(world.getBiomeGenForCoordsBody(chunkX * 16, chunkZ * 16)))
|
|
||||||
{
|
|
||||||
switch (this)
|
|
||||||
{
|
|
||||||
case CURIOUS:
|
|
||||||
for (int i = 0; i < 3; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveCurious(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case UNUSUAL:
|
|
||||||
for (int i = 0; i < 3; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveUnusual(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case RESONANT:
|
|
||||||
for (int i = 0; i < 2; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveResonant(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DEEP:
|
|
||||||
for (int i = 0; i < 1; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveDeep(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case INFERNAL:
|
|
||||||
for (int i = 0; i < 1; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveInfernal(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case OBLIVION:
|
|
||||||
for (int i = 0; i < 3; ++i)
|
|
||||||
{
|
|
||||||
int coordX = chunkX * 16 + random.nextInt(16);
|
|
||||||
int coordZ = chunkZ * 16 + random.nextInt(16);
|
|
||||||
if (FeatureHive.generateHiveOblivion(world, random, coordX, coordZ, initialGen))
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean spawnsInBiome(BiomeGenBase biomeGen)
|
|
||||||
{
|
|
||||||
boolean found = false;
|
|
||||||
BiomeDictionary.Type[] types = BiomeDictionary.getTypesForBiome(biomeGen);
|
|
||||||
for (int i = 0; i < types.length; ++i)
|
|
||||||
{
|
|
||||||
if (this.validBiomes.contains(types[i]))
|
|
||||||
{
|
|
||||||
found = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return found;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
package magicbees.client.gui;
|
|
||||||
|
|
||||||
import magicbees.tileentity.TileEntityEffectJar;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import cpw.mods.fml.common.network.IGuiHandler;
|
|
||||||
|
|
||||||
public class GUIHandler implements IGuiHandler
|
|
||||||
{
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
|
|
||||||
{
|
|
||||||
Object value = null;
|
|
||||||
|
|
||||||
if (ID == UIScreens.EFFECT_JAR.ordinal())
|
|
||||||
{
|
|
||||||
value = new ContainerEffectJar((TileEntityEffectJar)world.getBlockTileEntity(x, y, z), player);
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
|
|
||||||
{
|
|
||||||
Object value = null;
|
|
||||||
|
|
||||||
if (ID == UIScreens.EFFECT_JAR.ordinal())
|
|
||||||
{
|
|
||||||
value = new GUIEffectJar((TileEntityEffectJar)world.getBlockTileEntity(x, y, z), player);
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
package magicbees.client.render;
|
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
|
||||||
|
|
||||||
|
|
||||||
import magicbees.main.CommonProxy;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import net.minecraft.client.particle.EntityFX;
|
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.client.ForgeHooksClient;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Borrowed from Forestry with some modifications.
|
|
||||||
*/
|
|
||||||
public class BeeRenderEffect extends EntityFX
|
|
||||||
{
|
|
||||||
public int blendmode = 1;
|
|
||||||
private static String texture = "/mods/forestry/textures/items/particles/swarm_bee";
|
|
||||||
|
|
||||||
public BeeRenderEffect(World world, double x, double y, double z, float motionScaleX, float motionScaleY, float motionScaleZ, int color)
|
|
||||||
{
|
|
||||||
|
|
||||||
super(world, x, y, z, 0.0D, 0.0D, 0.0D);
|
|
||||||
|
|
||||||
// Colour is stored in 4-byte int: XXRRGGBB
|
|
||||||
particleRed = (color >> 16 & 255) / 255.0F;
|
|
||||||
particleGreen = (color >> 8 & 255) / 255.0F;
|
|
||||||
particleBlue = (color & 255) / 255.0F;
|
|
||||||
|
|
||||||
this.setParticleTextureIndex(0);
|
|
||||||
this.setSize(0.1F, 0.1F);
|
|
||||||
this.particleScale *= 0.2F;
|
|
||||||
this.particleMaxAge = (int) (20.0D / (Math.random() * 0.8D + 0.2D));
|
|
||||||
this.noClip = true;
|
|
||||||
|
|
||||||
this.motionX *= 0.119999999552965164D;
|
|
||||||
this.motionY *= 0.119999999552965164D;
|
|
||||||
this.motionZ *= 0.119999999552965164D;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called to update the entity's position/logic.
|
|
||||||
*/
|
|
||||||
public void onUpdate()
|
|
||||||
{
|
|
||||||
|
|
||||||
this.prevPosX = this.posX;
|
|
||||||
this.prevPosY = this.posY;
|
|
||||||
this.prevPosZ = this.posZ;
|
|
||||||
this.moveEntity(this.motionX, this.motionY, this.motionZ);
|
|
||||||
this.motionX *= 1.08D;
|
|
||||||
this.motionY *= 1.08D;
|
|
||||||
this.motionZ *= 1.08D;
|
|
||||||
|
|
||||||
if (this.particleMaxAge-- <= 0)
|
|
||||||
{
|
|
||||||
this.setDead();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void renderParticle(Tessellator tessellator, float f, float f1, float f2, float f3, float f4, float f5)
|
|
||||||
{
|
|
||||||
|
|
||||||
tessellator.draw();
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
|
|
||||||
GL11.glDepthMask(false);
|
|
||||||
GL11.glEnable(3042);
|
|
||||||
GL11.glBlendFunc(770, blendmode);
|
|
||||||
|
|
||||||
FMLClientHandler.instance().getClient().renderEngine.bindTexture(texture);
|
|
||||||
|
|
||||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
|
||||||
|
|
||||||
float f10 = 0.1F * particleScale;
|
|
||||||
float f11 = (float) ((prevPosX + (posX - prevPosX) * f) - interpPosX);
|
|
||||||
float f12 = (float) ((prevPosY + (posY - prevPosY) * f) - interpPosY);
|
|
||||||
float f13 = (float) ((prevPosZ + (posZ - prevPosZ) * f) - interpPosZ);
|
|
||||||
|
|
||||||
// GL11.glRotatef(this.rand.nextFloat(), 0.0F, 1.0F, 0.0F);
|
|
||||||
tessellator.startDrawingQuads();
|
|
||||||
tessellator.setBrightness(0x0000f0);
|
|
||||||
|
|
||||||
tessellator.setColorRGBA_F(particleRed, particleGreen, particleBlue, 1.0F);
|
|
||||||
tessellator.addVertexWithUV(f11 - f1 * f10 - f4 * f10, f12 - f2 * f10, f13 - f3 * f10 - f5 * f10, 0, 1);
|
|
||||||
tessellator.addVertexWithUV((f11 - f1 * f10) + f4 * f10, f12 + f2 * f10, (f13 - f3 * f10) + f5 * f10, 1, 1);
|
|
||||||
tessellator.addVertexWithUV(f11 + f1 * f10 + f4 * f10, f12 + f2 * f10, f13 + f3 * f10 + f5 * f10, 1, 0);
|
|
||||||
tessellator.addVertexWithUV((f11 + f1 * f10) - f4 * f10, f12 - f2 * f10, (f13 + f3 * f10) - f5 * f10, 0, 0);
|
|
||||||
|
|
||||||
tessellator.draw();
|
|
||||||
|
|
||||||
GL11.glDisable(3042);
|
|
||||||
GL11.glDepthMask(true);
|
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
GL11.glBindTexture(3553 /* GL_TEXTURE_2D *//* GL_TEXTURE_2D */, MagicBees.proxy.getClientInstance().renderEngine.getTexture("/particles.png"));
|
|
||||||
tessellator.startDrawingQuads();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
package magicbees.item;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import forestry.api.core.Tabs;
|
|
||||||
import forestry.api.recipes.RecipeManagers;
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.item.types.CapsuleType;
|
|
||||||
import magicbees.item.types.LiquidType;
|
|
||||||
import magicbees.main.CommonProxy;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.TabMagicBees;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.EnumMovingObjectType;
|
|
||||||
import net.minecraft.util.Icon;
|
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.liquids.LiquidContainerData;
|
|
||||||
import net.minecraftforge.liquids.LiquidContainerRegistry;
|
|
||||||
import net.minecraftforge.liquids.LiquidDictionary;
|
|
||||||
import net.minecraftforge.liquids.LiquidStack;
|
|
||||||
|
|
||||||
public class ItemCapsule extends Item
|
|
||||||
{
|
|
||||||
private CapsuleType capsuleType;
|
|
||||||
|
|
||||||
public ItemCapsule(CapsuleType type, int itemId, int maxStackSize)
|
|
||||||
{
|
|
||||||
super(itemId);
|
|
||||||
this.capsuleType = type;
|
|
||||||
this.setCreativeTab(TabMagicBees.tabMagicBees);
|
|
||||||
this.setHasSubtypes(true);
|
|
||||||
this.setMaxStackSize(maxStackSize);
|
|
||||||
this.setUnlocalizedName("capsule." + type.toString().toLowerCase());
|
|
||||||
GameRegistry.registerItem(this, "capsule." + type.toString().toLowerCase());
|
|
||||||
}
|
|
||||||
|
|
||||||
public CapsuleType getType()
|
|
||||||
{
|
|
||||||
return this.capsuleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getItemDisplayName(ItemStack itemStack)
|
|
||||||
{
|
|
||||||
return LiquidType.values()[itemStack.getItemDamage()].getDisplayName() + " " + this.capsuleType.getLocalizedName();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ItemStack getCapsuleForLiquid(LiquidType l)
|
|
||||||
{
|
|
||||||
return new ItemStack(this, 1, l.ordinal());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void getSubItems(int par1, CreativeTabs tab, List itemList)
|
|
||||||
{
|
|
||||||
for (LiquidType l : LiquidType.values())
|
|
||||||
{
|
|
||||||
if (l.available)
|
|
||||||
{
|
|
||||||
itemList.add(new ItemStack(this, 1, l.ordinal()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public boolean requiresMultipleRenderPasses()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void registerIcons(IconRegister par1IconRegister)
|
|
||||||
{
|
|
||||||
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":capsule" + this.capsuleType.getName().substring(0, 1).toUpperCase()
|
|
||||||
+ this.capsuleType.getName().substring(1));
|
|
||||||
for (LiquidType t : LiquidType.values())
|
|
||||||
{
|
|
||||||
if (t != LiquidType.EMPTY && t.liquidIcon == null)
|
|
||||||
{
|
|
||||||
t.liquidIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":liquids/" + t.liquidID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public Icon getIconFromDamageForRenderPass(int metadata, int pass)
|
|
||||||
{
|
|
||||||
Icon i = this.itemIcon;
|
|
||||||
if (metadata != 0 && pass == 0)
|
|
||||||
{
|
|
||||||
i = LiquidType.values()[Math.max(0, Math.min(metadata, LiquidType.values().length - 1))].liquidIcon;
|
|
||||||
}
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getRenderPasses(int metadata)
|
|
||||||
{
|
|
||||||
return (metadata == 0) ? 1 : 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
package magicbees.item;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import magicbees.item.types.PollenType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.MoonPhase;
|
|
||||||
import magicbees.main.utils.TabMagicBees;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
|
||||||
import net.minecraft.util.Icon;
|
|
||||||
|
|
||||||
public class ItemMoonDial extends Item
|
|
||||||
{
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private Icon[] icons;
|
|
||||||
|
|
||||||
public ItemMoonDial(int id)
|
|
||||||
{
|
|
||||||
super(id);
|
|
||||||
this.setCreativeTab(TabMagicBees.tabMagicBees);
|
|
||||||
this.setUnlocalizedName("moonDial");
|
|
||||||
GameRegistry.registerItem(this, "moonDial");
|
|
||||||
}
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void registerIcons(IconRegister par1IconRegister)
|
|
||||||
{
|
|
||||||
this.icons = new Icon[MoonPhase.values().length];
|
|
||||||
for (int i = 0; i < MoonPhase.values().length; ++i)
|
|
||||||
{
|
|
||||||
this.icons[i] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":moonDial." + i);
|
|
||||||
}
|
|
||||||
this.itemIcon = this.icons[4];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)
|
|
||||||
{
|
|
||||||
return this.icons[MoonPhase.getMoonPhaseFromTime(player.worldObj.getWorldTime()).ordinal()];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List infoList, boolean par4)
|
|
||||||
{
|
|
||||||
if (MagicBees.getConfig().MoonDialShowsPhaseInText &&
|
|
||||||
entityPlayer.getCurrentEquippedItem() != null &&
|
|
||||||
entityPlayer.getCurrentEquippedItem().getItem() == this)
|
|
||||||
{
|
|
||||||
infoList.add("\u00A77" + MoonPhase.getMoonPhaseFromTime(entityPlayer.worldObj.getWorldTime()).getLocalizedName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
package magicbees.item;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.entity.EntityLiving;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.potion.Potion;
|
|
||||||
import net.minecraft.potion.PotionEffect;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.common.ForgeHooks;
|
|
||||||
import thaumcraft.api.IVisRepairable;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import forestry.api.arboriculture.IToolGrafter;
|
|
||||||
|
|
||||||
public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGrafter
|
|
||||||
{
|
|
||||||
public ItemThaumiumGrafter(int id)
|
|
||||||
{
|
|
||||||
super(id);
|
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(15);
|
|
||||||
this.setCreativeTab(forestry.api.core.Tabs.tabArboriculture);
|
|
||||||
this.setUnlocalizedName(VersionInfo.ModName.toLowerCase() + ":thaumiumGrafter");
|
|
||||||
GameRegistry.registerItem(this, VersionInfo.ModName.toLowerCase() + ":thaumiumGrafter");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getSaplingModifier(ItemStack stack, World world, EntityPlayer player, int x, int y, int z)
|
|
||||||
{
|
|
||||||
return 100f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getStrVsBlock(ItemStack itemStack, Block block)
|
|
||||||
{
|
|
||||||
return 1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getStrVsBlock(ItemStack itemStack, Block block, int metadata)
|
|
||||||
{
|
|
||||||
return ForgeHooks.isToolEffective(itemStack, block, metadata) ? 4.8f : getStrVsBlock(itemStack, block);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onBlockDestroyed(ItemStack itemstack, World world, int id, int x, int y, int z, EntityLiving entityLiving) {
|
|
||||||
int damage = 1;
|
|
||||||
if (id == Config.tcLeaf.blockID)
|
|
||||||
{
|
|
||||||
Block block = Block.blocksList[id];
|
|
||||||
int meta = world.getBlockMetadata(x, y, z) & 1;
|
|
||||||
block.dropBlockAsItemWithChance(world, x, y, z, meta, 0, 0);
|
|
||||||
if (meta == ThaumcraftHelper.TreeType.GREATWOOD.ordinal())
|
|
||||||
{
|
|
||||||
damage = 2;
|
|
||||||
}
|
|
||||||
else if (meta == ThaumcraftHelper.TreeType.SILVERWOOD.ordinal())
|
|
||||||
{
|
|
||||||
damage = 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
itemstack.damageItem(damage, entityLiving);
|
|
||||||
|
|
||||||
if (entityLiving instanceof EntityPlayer)
|
|
||||||
{
|
|
||||||
EntityPlayer p = (EntityPlayer)entityLiving;
|
|
||||||
p.addExhaustion(8f);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the enchantability factor of the item, most of the time is based on material.
|
|
||||||
*/
|
|
||||||
public int getItemEnchantability()
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.getEnchantability();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the name for this tool's material.
|
|
||||||
*/
|
|
||||||
public String getToolMaterialName()
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return whether this item is repairable in an anvil.
|
|
||||||
*/
|
|
||||||
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.getToolCraftingMaterial() == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doRepair(ItemStack stack, Entity e)
|
|
||||||
{
|
|
||||||
if (stack.getItemDamage() > 0)
|
|
||||||
{
|
|
||||||
if (ThaumcraftApi.decreaseClosestAura(e.worldObj, e.posX, e.posY, e.posZ, 2, true))
|
|
||||||
{
|
|
||||||
stack.damageItem(-1, (EntityLiving)e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
package magicbees.item;
|
|
||||||
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.entity.EntityLiving;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.common.ForgeHooks;
|
|
||||||
import thaumcraft.api.IVisRepairable;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import forestry.api.core.IToolScoop;
|
|
||||||
|
|
||||||
public class ItemThaumiumScoop extends Item implements IVisRepairable, IToolScoop
|
|
||||||
{
|
|
||||||
public ItemThaumiumScoop(int itemID)
|
|
||||||
{
|
|
||||||
super(itemID);
|
|
||||||
this.setMaxStackSize(1);
|
|
||||||
this.setMaxDamage(30);
|
|
||||||
this.setCreativeTab(forestry.api.core.Tabs.tabApiculture);
|
|
||||||
this.setUnlocalizedName(VersionInfo.ModName.toLowerCase() + ":thaumiumScoop");
|
|
||||||
GameRegistry.registerItem(this, VersionInfo.ModName.toLowerCase() + ":thaumiumScoop");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getStrVsBlock(ItemStack itemStack, Block block)
|
|
||||||
{
|
|
||||||
return 1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getStrVsBlock(ItemStack itemStack, Block block, int metadata)
|
|
||||||
{
|
|
||||||
return ForgeHooks.isToolEffective(itemStack, block, metadata) ? 4.8f : getStrVsBlock(itemStack, block);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onBlockDestroyed(ItemStack itemstack, World world, int i, int j, int k, int l, EntityLiving entityliving) {
|
|
||||||
itemstack.damageItem(1, entityliving);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the enchantability factor of the item, most of the time is based on material.
|
|
||||||
*/
|
|
||||||
public int getItemEnchantability()
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.getEnchantability();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the name for this tool's material.
|
|
||||||
*/
|
|
||||||
public String getToolMaterialName()
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return whether this item is repairable in an anvil.
|
|
||||||
*/
|
|
||||||
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
|
|
||||||
{
|
|
||||||
return ThaumcraftApi.toolMatThaumium.getToolCraftingMaterial() == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doRepair(ItemStack stack, Entity e)
|
|
||||||
{
|
|
||||||
if (stack.getItemDamage() > 0)
|
|
||||||
{
|
|
||||||
if (ThaumcraftApi.decreaseClosestAura(e.worldObj, e.posX, e.posY, e.posZ, 1, true))
|
|
||||||
{
|
|
||||||
stack.damageItem(-1, (EntityLiving)e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
package magicbees.item.types;
|
|
||||||
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public enum CombType
|
|
||||||
{
|
|
||||||
MUNDANE("mundane", true),
|
|
||||||
MOLTEN("molten", true),
|
|
||||||
FORGOTTEN("forgotten", false),
|
|
||||||
OCCULT("occult", true),
|
|
||||||
OTHERWORLDLY("otherworldly", true),
|
|
||||||
|
|
||||||
PAPERY("paper", true),
|
|
||||||
SOUL("soul", true),
|
|
||||||
FURTIVE("furtive", true),
|
|
||||||
INTELLECT("aware", false),
|
|
||||||
TEMPORAL("time", false),
|
|
||||||
|
|
||||||
HARMONIZING("harmonizing", false),
|
|
||||||
AIRY("air", false),
|
|
||||||
FIREY("fire", false),
|
|
||||||
WATERY("water", false),
|
|
||||||
EARTHY("earth", false),
|
|
||||||
INFUSED("magic", false),
|
|
||||||
|
|
||||||
AM_ESSENCE("essence", false),
|
|
||||||
AM_POTENT("potent", false),
|
|
||||||
;
|
|
||||||
|
|
||||||
private static int[][] colours =
|
|
||||||
new int[][] { {0xFF9859, 0xFFC58E},
|
|
||||||
{0xcc3333, 0x1E160E},
|
|
||||||
{0x9872FF, 0x2D2D2D},
|
|
||||||
{0x3EE0D8, 0x3A3820},
|
|
||||||
{0xE5425D, 0x323291},
|
|
||||||
|
|
||||||
{0xBCA664, 0x35332E},
|
|
||||||
{0x7F7171, 0x876D53},
|
|
||||||
{0xcda6cd, 0x545454},
|
|
||||||
{0x0092e9, 0x618fff},
|
|
||||||
{0x2F9381, 0x773C31},
|
|
||||||
|
|
||||||
{0xB0B0BC, 0x414144},
|
|
||||||
{0xffff7e, 0x606308},
|
|
||||||
{0xff3C01, 0x5B0D10},
|
|
||||||
{0x0090ff, 0x102F6B},
|
|
||||||
{0x00a000, 0x043004},
|
|
||||||
{0xAB12E2, 0x502868},
|
|
||||||
|
|
||||||
{0xCC8604, 0x41046F},
|
|
||||||
{0xCCCC04, 0x41046F},
|
|
||||||
};
|
|
||||||
|
|
||||||
private CombType(String pName, boolean show)
|
|
||||||
{
|
|
||||||
this.name = pName;
|
|
||||||
|
|
||||||
this.showInList = show;
|
|
||||||
}
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
public boolean showInList;
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return LocalizationManager.getLocalizedString("comb." + this.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int[] getColours()
|
|
||||||
{
|
|
||||||
return colours[this.ordinal()];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
package magicbees.main;
|
|
||||||
|
|
||||||
import magicbees.client.render.BeeRenderEffect;
|
|
||||||
import magicbees.client.render.EffectJarRenderer;
|
|
||||||
import magicbees.tileentity.TileEntityEffectJar;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.client.MinecraftForgeClient;
|
|
||||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
|
||||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ClientProxy extends CommonProxy
|
|
||||||
{
|
|
||||||
|
|
||||||
public ClientProxy() { }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerRenderers()
|
|
||||||
{
|
|
||||||
super.registerRenderers();
|
|
||||||
|
|
||||||
RenderIdEffectJar = RenderingRegistry.getNextAvailableRenderId();
|
|
||||||
MinecraftForgeClient.registerItemRenderer(Config.effectJar.blockID, EffectJarRenderer.instance);
|
|
||||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEffectJar.class, EffectJarRenderer.instance);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void drawBeeEffects(World world, double xPos, double yPos, double zPos, int colour, int rangeX, int rangeY, int rangeZ)
|
|
||||||
{
|
|
||||||
// drawParticleEffects flag pulled from Forestry after configs
|
|
||||||
if (MagicBees.getConfig().DrawParticleEffects)
|
|
||||||
{
|
|
||||||
double spawnX;
|
|
||||||
double spawnY;
|
|
||||||
double spawnZ;
|
|
||||||
|
|
||||||
if (world.rand.nextBoolean())
|
|
||||||
{
|
|
||||||
spawnX = xPos + 0.5;
|
|
||||||
spawnY = yPos + 0.75;
|
|
||||||
spawnZ = zPos + 0.5;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
spawnX = xPos + world.rand.nextInt(rangeX * 2) - rangeX;
|
|
||||||
spawnY = yPos + world.rand.nextInt(rangeY);
|
|
||||||
spawnZ = zPos + world.rand.nextInt(rangeZ * 2) - rangeZ;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.getClientInstance().effectRenderer.addEffect(new BeeRenderEffect(world, spawnX, spawnY, spawnZ, 0f, 0f, 0f, colour));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
package magicbees.main;
|
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import magicbees.tileentity.TileEntityEffectJar;
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
|
|
||||||
public class CommonProxy
|
|
||||||
{
|
|
||||||
public static final String RESOURCE_PATH = "/mods/magicbees/";
|
|
||||||
public static final String TEXTURE_PATH = RESOURCE_PATH + "textures/";
|
|
||||||
public static final String MODEL_PATH = RESOURCE_PATH + "model/";
|
|
||||||
public static final String TCBEES_RESEARCH = RESOURCE_PATH + "research/";
|
|
||||||
public static final String TCBEES_LOCDIR = RESOURCE_PATH + "lang/";
|
|
||||||
|
|
||||||
public static String FORESTRY_GFX_ITEMS;
|
|
||||||
public static String FORESTRY_GFX_BEEEFFECTS;
|
|
||||||
|
|
||||||
public static final String GUI_PATH = TEXTURE_PATH + "gui/";
|
|
||||||
public static final String MODEL_TEXTURE_PATH = TEXTURE_PATH + "model/";
|
|
||||||
|
|
||||||
public static int RenderIdEffectJar;
|
|
||||||
|
|
||||||
public CommonProxy() { }
|
|
||||||
|
|
||||||
public void drawBeeEffects(World world, double xPos, double yPos, double zPos, int colour, int rangeX, int rangeY, int rangeZ)
|
|
||||||
{
|
|
||||||
// Does nothing in common.
|
|
||||||
}
|
|
||||||
|
|
||||||
public Minecraft getClientInstance()
|
|
||||||
{
|
|
||||||
return FMLClientHandler.instance().getClient();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void registerRenderers() { }
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,423 +0,0 @@
|
|||||||
package magicbees.main;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
|
|
||||||
import magicbees.block.BlockEffectJar;
|
|
||||||
import magicbees.block.BlockHive;
|
|
||||||
import magicbees.block.BlockPlanks;
|
|
||||||
import magicbees.block.BlockWoodSlab;
|
|
||||||
import magicbees.block.types.HiveType;
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.item.ItemCapsule;
|
|
||||||
import magicbees.item.ItemComb;
|
|
||||||
import magicbees.item.ItemCrystalAspect;
|
|
||||||
import magicbees.item.ItemDrop;
|
|
||||||
import magicbees.item.ItemMagicHiveFrame;
|
|
||||||
import magicbees.item.ItemMiscResources;
|
|
||||||
import magicbees.item.ItemMoonDial;
|
|
||||||
import magicbees.item.ItemNugget;
|
|
||||||
import magicbees.item.ItemPollen;
|
|
||||||
import magicbees.item.ItemPropolis;
|
|
||||||
import magicbees.item.ItemWax;
|
|
||||||
import magicbees.item.types.CapsuleType;
|
|
||||||
import magicbees.item.types.HiveFrameType;
|
|
||||||
import magicbees.item.types.NuggetType;
|
|
||||||
import magicbees.item.types.ResourceType;
|
|
||||||
import magicbees.item.types.WaxType;
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import magicbees.main.utils.compat.ArsMagicaHelper;
|
|
||||||
import magicbees.main.utils.compat.EquivalentExchangeHelper;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
|
||||||
import magicbees.storage.BackpackDefinition;
|
|
||||||
import magicbees.tileentity.TileEntityEffectJar;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemFood;
|
|
||||||
import net.minecraft.item.ItemMultiTextureTile;
|
|
||||||
import net.minecraft.item.ItemSlab;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.potion.Potion;
|
|
||||||
import net.minecraft.util.WeightedRandomChestContent;
|
|
||||||
import net.minecraftforge.common.ChestGenHooks;
|
|
||||||
import net.minecraftforge.common.Configuration;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.common.Property;
|
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import forestry.api.apiculture.BeeManager;
|
|
||||||
import forestry.api.storage.BackpackManager;
|
|
||||||
import forestry.api.storage.EnumBackpackType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A class to hold some data related to mod state & functions.
|
|
||||||
* @author MysteriousAges
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class Config
|
|
||||||
{
|
|
||||||
public boolean DrawParticleEffects;
|
|
||||||
public boolean BeeInfusionsAdded;
|
|
||||||
public boolean AddThaumcraftItemsToBackpacks;
|
|
||||||
public boolean DisableUpdateNotification;
|
|
||||||
public boolean AreMagicPlanksFlammable;
|
|
||||||
public boolean UseImpregnatedStickInTools;
|
|
||||||
public boolean MoonDialShowsPhaseInText;
|
|
||||||
public String ThaumaturgeExtraItems;
|
|
||||||
public int CapsuleStackSizeMax;
|
|
||||||
public boolean DoHiveRetrogen;
|
|
||||||
public boolean ForceHiveRegen;
|
|
||||||
|
|
||||||
public static BlockPlanks planksWood;
|
|
||||||
public static BlockWoodSlab slabWoodHalf;
|
|
||||||
public static BlockWoodSlab slabWoodFull;
|
|
||||||
public static BlockEffectJar effectJar;
|
|
||||||
public static BlockHive hive;
|
|
||||||
|
|
||||||
public static ItemComb combs;
|
|
||||||
public static ItemWax wax;
|
|
||||||
public static ItemPropolis propolis;
|
|
||||||
public static ItemDrop drops;
|
|
||||||
public static ItemPollen pollen;
|
|
||||||
public static ItemCrystalAspect solidFlux;
|
|
||||||
public static ItemMiscResources miscResources;
|
|
||||||
public static ItemFood jellyBaby;
|
|
||||||
public static Item thaumiumScoop;
|
|
||||||
public static Item thaumiumGrafter;
|
|
||||||
public static ItemNugget nuggets;
|
|
||||||
public static ItemMoonDial moonDial;
|
|
||||||
|
|
||||||
//----- Liquid Capsules --------------------
|
|
||||||
public static ItemCapsule magicCapsule;
|
|
||||||
public static ItemCapsule voidCapsule;
|
|
||||||
|
|
||||||
//----- Apiary Frames ----------------------
|
|
||||||
public static ItemMagicHiveFrame hiveFrameMagic;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameResilient;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameGentle;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameMetabolic;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameNecrotic;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameTemporal;
|
|
||||||
public static ItemMagicHiveFrame hiveFrameOblivion;
|
|
||||||
|
|
||||||
//----- Backpacks ------------------------------------------
|
|
||||||
public static Item thaumaturgeBackpackT1;
|
|
||||||
public static Item thaumaturgeBackpackT2;
|
|
||||||
public static BackpackDefinition thaumaturgeBackpackDef;
|
|
||||||
|
|
||||||
//----- Forestry Blocks ------------------------------------
|
|
||||||
//----- Forestry Items -------------------------------------
|
|
||||||
public static Item fBeeComb;
|
|
||||||
public static Item fHoneydew;
|
|
||||||
public static Item fHoneyDrop;
|
|
||||||
public static Item fPollen;
|
|
||||||
public static Item fCraftingResource;
|
|
||||||
//----- Thaumcraft Blocks ----------------------------------
|
|
||||||
public static Block tcPlant;
|
|
||||||
public static Block tcCandle;
|
|
||||||
public static Block tcCrystal;
|
|
||||||
public static Block tcMarker;
|
|
||||||
public static Block tcJar;
|
|
||||||
public static Block tcLog;
|
|
||||||
public static Block tcLeaf;
|
|
||||||
public static Block tcWarded;
|
|
||||||
//----- Thaumcraft Items -----------------------------------
|
|
||||||
public static Item tcFilledJar;
|
|
||||||
public static Item tcMiscResource;
|
|
||||||
public static Item tcEssentiaBottle;
|
|
||||||
public static Item tcShard;
|
|
||||||
public static Item tcGolem;
|
|
||||||
public static Item tcWispEssence;
|
|
||||||
public static Item tcNuggets;
|
|
||||||
public static Item tcNuggetChicken;
|
|
||||||
public static Item tcNuggetBeef;
|
|
||||||
public static Item tcNuggetPork;
|
|
||||||
//----- Equivalent Exchange Blocks -------------------------
|
|
||||||
//----- Equivalent Exchange Items --------------------------
|
|
||||||
public static Item eeMinuimShard;
|
|
||||||
//----- Ars Magica Blocks ----------------------------------
|
|
||||||
public static Block amBlackOrchid;
|
|
||||||
public static Block amDesertNova;
|
|
||||||
//----- Ars Magica Items -----------------------------------
|
|
||||||
public static Item amVinteumDust;
|
|
||||||
public static Item amArcaneCompound;
|
|
||||||
public static Item amEssenceArcane;
|
|
||||||
public static Item amEssenceEarth;
|
|
||||||
public static Item amEssenceWater;
|
|
||||||
public static Item amEssenceFire;
|
|
||||||
public static Item amEssenceAir;
|
|
||||||
public static Item amEssenceMagma;
|
|
||||||
public static Item amEssencePlant;
|
|
||||||
public static Item amEssenceIce;
|
|
||||||
public static Item amEssenceLightning;
|
|
||||||
|
|
||||||
|
|
||||||
//----- Config State info ----------------------------------
|
|
||||||
private Configuration configuration;
|
|
||||||
|
|
||||||
public Config(File configFile)
|
|
||||||
{
|
|
||||||
this.configuration = new Configuration(configFile);
|
|
||||||
this.configuration.load();
|
|
||||||
this.doMiscConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void saveConfigs()
|
|
||||||
{
|
|
||||||
this.configuration.save();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setupBlocks()
|
|
||||||
{
|
|
||||||
ThaumcraftHelper.getBlocks();
|
|
||||||
ForestryHelper.getBlocks();
|
|
||||||
EquivalentExchangeHelper.getBlocks();
|
|
||||||
ArsMagicaHelper.getBlocks();
|
|
||||||
|
|
||||||
int blockIdBase = 1750;
|
|
||||||
|
|
||||||
{
|
|
||||||
int plankId = configuration.getBlock("planksTC", blockIdBase++).getInt();
|
|
||||||
int slabFullId = configuration.getBlock("slabFull", blockIdBase++).getInt();
|
|
||||||
int slabHalfId = configuration.getBlock("slabHalf", blockIdBase++).getInt();
|
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
planksWood = new BlockPlanks(plankId);
|
|
||||||
planksWood.setUnlocalizedName("planks");
|
|
||||||
|
|
||||||
Item.itemsList[planksWood.blockID] = null;
|
|
||||||
Item.itemsList[planksWood.blockID] = new ItemMultiTextureTile(planksWood.blockID - 256, planksWood, PlankType.getAllNames());
|
|
||||||
|
|
||||||
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", MagicBees.getConfig().planksWood.blockID + "@" + PlankType.GREATWOOD.ordinal());
|
|
||||||
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", MagicBees.getConfig().planksWood.blockID + "@" + PlankType.SILVERWOOD.ordinal());
|
|
||||||
|
|
||||||
slabWoodFull = new BlockWoodSlab(slabFullId, true);
|
|
||||||
slabWoodHalf = new BlockWoodSlab(slabHalfId, false);
|
|
||||||
|
|
||||||
slabWoodFull.setUnlocalizedName("planks");
|
|
||||||
slabWoodHalf.setUnlocalizedName("planks");
|
|
||||||
|
|
||||||
Item.itemsList[slabWoodHalf.blockID] = null;
|
|
||||||
Item.itemsList[slabWoodHalf.blockID] = new ItemSlab(slabWoodHalf.blockID - 256, slabWoodHalf, slabWoodFull, false);
|
|
||||||
Item.itemsList[slabWoodFull.blockID] = null;
|
|
||||||
Item.itemsList[slabWoodFull.blockID] = new ItemSlab(slabWoodFull.blockID - 256, slabWoodHalf, slabWoodFull, true);
|
|
||||||
|
|
||||||
OreDictionary.registerOre("plankWood", new ItemStack(planksWood, 1, -1));
|
|
||||||
OreDictionary.registerOre("slabWood", new ItemStack(slabWoodHalf, 1, -1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
effectJar = new BlockEffectJar(configuration.getBlock("effectJar", blockIdBase++).getInt());
|
|
||||||
GameRegistry.registerBlock(effectJar, "effectJar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntityEffectJar.class, TileEntityEffectJar.tileEntityName);
|
|
||||||
|
|
||||||
hive = new BlockHive(configuration.getBlock("hives", blockIdBase++).getInt());
|
|
||||||
GameRegistry.registerBlock(hive, "hive");
|
|
||||||
|
|
||||||
for (HiveType t : HiveType.values())
|
|
||||||
{
|
|
||||||
MinecraftForge.setBlockHarvestLevel(hive, t.ordinal(), "scoop", 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
Item.itemsList[hive.blockID] = null;
|
|
||||||
Item.itemsList[hive.blockID] = new ItemMultiTextureTile(hive.blockID - 256, hive, HiveType.getAllNames());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setupItems()
|
|
||||||
{
|
|
||||||
ThaumcraftHelper.getItems();
|
|
||||||
ForestryHelper.getItems();
|
|
||||||
EquivalentExchangeHelper.getItems();
|
|
||||||
ArsMagicaHelper.getItems();
|
|
||||||
|
|
||||||
int itemIDBase = 26090;
|
|
||||||
|
|
||||||
combs= new ItemComb(configuration.getItem("combs", itemIDBase++).getInt() - 256);
|
|
||||||
wax = new ItemWax(configuration.getItem("wax", itemIDBase++).getInt() - 256);
|
|
||||||
propolis = new ItemPropolis(configuration.getItem("propolis", itemIDBase++).getInt() - 256);
|
|
||||||
drops = new ItemDrop(configuration.getItem("drop", itemIDBase++).getInt() - 256);
|
|
||||||
miscResources = new ItemMiscResources(configuration.getItem("miscResources", itemIDBase++).getInt() - 256);
|
|
||||||
|
|
||||||
// Make Aromatic Lumps a swarmer inducer. Chance is /1000.
|
|
||||||
BeeManager.inducers.put(miscResources.getStackForType(ResourceType.AROMATIC_LUMP), 95);
|
|
||||||
|
|
||||||
{
|
|
||||||
int tier1 = configuration.getItem("thaumaturgePack1", itemIDBase++).getInt() - 256;
|
|
||||||
int tier2 = configuration.getItem("thaumaturgePack2", itemIDBase++).getInt() - 256;
|
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// 0x8700C6 = purpleish.
|
|
||||||
String backpackName = LocalizationManager.getLocalizedString("backpack.thaumaturge");
|
|
||||||
BackpackDefinition def = new BackpackDefinition("thaumaturge", backpackName, 0x8700C6);
|
|
||||||
thaumaturgeBackpackT1 = BackpackManager.backpackInterface.addBackpack(tier1, def, EnumBackpackType.T1);
|
|
||||||
thaumaturgeBackpackT1.setUnlocalizedName("backpack.thaumaturgeT1");
|
|
||||||
thaumaturgeBackpackT2 = BackpackManager.backpackInterface.addBackpack(tier2, def, EnumBackpackType.T2);
|
|
||||||
thaumaturgeBackpackT2.setUnlocalizedName("backpack.thaumaturgeT2");
|
|
||||||
// Add additional items from configs to backpack.
|
|
||||||
if (MagicBees.getConfig().ThaumaturgeExtraItems.length() > 0)
|
|
||||||
{
|
|
||||||
FMLLog.info("Attempting to add extra items to Thaumaturge's backpack. If you get an error, check your MagicBees.conf.");
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "thaumaturge@" + MagicBees.getConfig().ThaumaturgeExtraItems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
FMLLog.severe("MagicBees encountered a problem during loading!");
|
|
||||||
FMLLog.severe("Could not register backpacks via Forestry. Check your FML Client log and see if Forestry crashed silently.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
magicCapsule = new ItemCapsule(CapsuleType.MAGIC, configuration.getItem("magicCapsule", itemIDBase++).getInt() - 256, this.CapsuleStackSizeMax);
|
|
||||||
pollen = new ItemPollen(configuration.getItem("pollen", itemIDBase++).getInt() - 256);
|
|
||||||
|
|
||||||
{
|
|
||||||
int crystalId = configuration.getItem("fluxCrystal", itemIDBase++).getInt() - 256;
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
solidFlux = new ItemCrystalAspect(crystalId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hiveFrameMagic = new ItemMagicHiveFrame(configuration.getItem("frameMagic", itemIDBase++).getInt() - 256, HiveFrameType.MAGIC);
|
|
||||||
hiveFrameResilient = new ItemMagicHiveFrame(configuration.getItem("frameResilient", itemIDBase++).getInt() - 256, HiveFrameType.RESILIENT);
|
|
||||||
hiveFrameGentle = new ItemMagicHiveFrame(configuration.getItem("frameGentle", itemIDBase++).getInt() - 256, HiveFrameType.GENTLE);
|
|
||||||
hiveFrameMetabolic = new ItemMagicHiveFrame(configuration.getItem("frameMetabolic", itemIDBase++).getInt() - 256, HiveFrameType.METABOLIC);
|
|
||||||
hiveFrameNecrotic = new ItemMagicHiveFrame(configuration.getItem("frameNecrotic", itemIDBase++).getInt() - 256, HiveFrameType.NECROTIC);
|
|
||||||
hiveFrameTemporal = new ItemMagicHiveFrame(configuration.getItem("frameTemporal", itemIDBase++).getInt() - 256, HiveFrameType.TEMPORAL);
|
|
||||||
hiveFrameOblivion = new ItemMagicHiveFrame(configuration.getItem("frameOblivion", itemIDBase++).getInt() - 256, HiveFrameType.OBLIVION);
|
|
||||||
// Future frames, so they all are clumped together.
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
itemIDBase++;
|
|
||||||
|
|
||||||
ChestGenHooks.addItem(ChestGenHooks.STRONGHOLD_CORRIDOR, new WeightedRandomChestContent(new ItemStack(hiveFrameOblivion), 1, 1, 18));
|
|
||||||
ChestGenHooks.addItem(ChestGenHooks.STRONGHOLD_LIBRARY, new WeightedRandomChestContent(new ItemStack(hiveFrameOblivion), 1, 3, 23));
|
|
||||||
|
|
||||||
jellyBaby = new ItemFood(configuration.getItem("jellyBabies", itemIDBase++).getInt() - 256, 1, false).setAlwaysEdible()
|
|
||||||
.setPotionEffect(Potion.moveSpeed.id, 5, 1, 1f);
|
|
||||||
jellyBaby.setUnlocalizedName(VersionInfo.ModName.toLowerCase() + ":jellyBabies");
|
|
||||||
GameRegistry.registerItem(jellyBaby, VersionInfo.ModName.toLowerCase() + ":jellyBabies");
|
|
||||||
|
|
||||||
|
|
||||||
voidCapsule = new ItemCapsule(CapsuleType.VOID, configuration.getItem("voidCapsule", itemIDBase++).getInt() - 256, this.CapsuleStackSizeMax);
|
|
||||||
|
|
||||||
{
|
|
||||||
int scoopID = configuration.getItem("thaumiumScoop", itemIDBase++).getInt() - 256;
|
|
||||||
int grafterID = configuration.getItem("thaumiumGrafter", itemIDBase++).getInt() - 256;
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
// Reflecting avoids the need to directly include the Thaumcraft API in the jar. BAM!
|
|
||||||
Constructor ctor1 = Class.forName("magicbees.item.ItemThaumiumScoop").getConstructor(int.class);
|
|
||||||
thaumiumScoop = (Item)ctor1.newInstance(scoopID);
|
|
||||||
MinecraftForge.setToolClass(thaumiumScoop, "scoop", 3);
|
|
||||||
GameRegistry.registerItem(thaumiumScoop, thaumiumScoop.getUnlocalizedName());
|
|
||||||
|
|
||||||
Constructor ctor2 = Class.forName("magicbees.item.ItemThaumiumGrafter").getConstructor(int.class);
|
|
||||||
thaumiumGrafter = (Item)ctor2.newInstance(grafterID);
|
|
||||||
MinecraftForge.setToolClass(thaumiumGrafter, "grafter", 3);
|
|
||||||
GameRegistry.registerItem(thaumiumGrafter, thaumiumGrafter.getUnlocalizedName());
|
|
||||||
} catch (Exception e) { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
moonDial = new ItemMoonDial(configuration.getItem("moonDial", itemIDBase++).getInt() - 256);
|
|
||||||
|
|
||||||
nuggets = new ItemNugget(configuration.getItem("beeNuggets", itemIDBase++).getInt() - 256);
|
|
||||||
|
|
||||||
OreDictionary.registerOre("beeComb", new ItemStack(combs, 1, OreDictionary.WILDCARD_VALUE));
|
|
||||||
OreDictionary.registerOre("waxMagical", wax.getStackForType(WaxType.MAGIC));
|
|
||||||
OreDictionary.registerOre("waxMagical", wax.getStackForType(WaxType.AMNESIC));
|
|
||||||
OreDictionary.registerOre("nuggetIron", nuggets.getStackForType(NuggetType.IRON));
|
|
||||||
OreDictionary.registerOre("nuggetCopper", nuggets.getStackForType(NuggetType.COPPER));
|
|
||||||
OreDictionary.registerOre("nuggetTin", nuggets.getStackForType(NuggetType.TIN));
|
|
||||||
OreDictionary.registerOre("nuggetSilver", nuggets.getStackForType(NuggetType.SILVER));
|
|
||||||
OreDictionary.registerOre("nuggetLead", nuggets.getStackForType(NuggetType.LEAD));
|
|
||||||
OreDictionary.registerOre("shardDiamond", nuggets.getStackForType(NuggetType.DIAMOND));
|
|
||||||
OreDictionary.registerOre("shardEmerald", nuggets.getStackForType(NuggetType.EMERALD));
|
|
||||||
OreDictionary.registerOre("shardApatite", nuggets.getStackForType(NuggetType.APATITE));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void doMiscConfig()
|
|
||||||
{
|
|
||||||
Property p;
|
|
||||||
|
|
||||||
// Pull config from Forestry via reflection
|
|
||||||
Field f;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
f = Class.forName("forestry.core.config.Config").getField("enableParticleFX");
|
|
||||||
this.DrawParticleEffects = f.getBoolean(null);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
p = configuration.get("general", "backpack.thaumaturge.additionalItems", "");
|
|
||||||
p.comment = "Add additional items to the Thaumaturge's Backpack." +
|
|
||||||
"\n Format is the same as Forestry's: id:meta;id;id:meta (etc)";
|
|
||||||
this.ThaumaturgeExtraItems = p.getString();
|
|
||||||
|
|
||||||
p = configuration.get("general", "backpack.forestry.addThaumcraftItems", true);
|
|
||||||
p.comment = "Set to true if you want MagicBees to add several Thaumcraft blocks & items to Forestry backpacks." +
|
|
||||||
"\n Set to false to disable.";
|
|
||||||
this.AddThaumcraftItemsToBackpacks = p.getBoolean(true);
|
|
||||||
|
|
||||||
p = configuration.get("general", "capsuleStackSize", 64);
|
|
||||||
p.comment = "Allows you to edit the stack size of the capsules in MagicBees if using GregTech, \n" +
|
|
||||||
"or the reduced capsule size in Forestry & Railcraft. Default: 64";
|
|
||||||
this.CapsuleStackSizeMax = p.getInt();
|
|
||||||
|
|
||||||
p = configuration.get("general", "disableVersionNotification", false);
|
|
||||||
p.comment = "Set to true to stop ThaumicBees from notifying you when new updates are available. (Does not supress critical updates)";
|
|
||||||
this.DisableUpdateNotification = p.getBoolean(false);
|
|
||||||
|
|
||||||
p = configuration.get("general", "areMagicPlanksFlammable", false);
|
|
||||||
p.comment = "Set to true to allow Greatwood & Silverwood planks to burn in a fire.";
|
|
||||||
this.AreMagicPlanksFlammable = p.getBoolean(false);
|
|
||||||
|
|
||||||
p = configuration.get("general", "useImpregnatedStickInTools", false);
|
|
||||||
p.comment = "Set to true to make Thaumium Grafter & Scoop require impregnated sticks in the recipe.";
|
|
||||||
this.UseImpregnatedStickInTools = p.getBoolean(false);
|
|
||||||
|
|
||||||
p = configuration.get("general", "moonDialShowText", false);
|
|
||||||
p.comment = "set to true to show the current moon phase in mouse-over text.";
|
|
||||||
this.MoonDialShowsPhaseInText = p.getBoolean(false);
|
|
||||||
|
|
||||||
p = configuration.get("Retrogen", "doHiveRetrogen", false);
|
|
||||||
p.comment = "Set to true to enable retroactive worldgen of Magic Bees hives.";
|
|
||||||
this.DoHiveRetrogen = p.getBoolean(false);
|
|
||||||
|
|
||||||
p = configuration.get("Retrogen", "forceHiveRegen", false);
|
|
||||||
p.comment = "Set to true to force a regeneration of Magic Bees hives. Will set config option to false after parsed. (Implies doHiveRetrogen=true)";
|
|
||||||
this.ForceHiveRegen = p.getBoolean(false);
|
|
||||||
|
|
||||||
if (this.ForceHiveRegen)
|
|
||||||
{
|
|
||||||
FMLLog.info("Magic Bees will aggressively regenerate hives in all chunks for this game instance. Config option set to false.");
|
|
||||||
p.set(false);
|
|
||||||
this.DoHiveRetrogen = true;
|
|
||||||
}
|
|
||||||
else if (this.DoHiveRetrogen)
|
|
||||||
{
|
|
||||||
FMLLog.info("Magic Bees will attempt to regenerate hives in chunks that were generated before the mod was added.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
package magicbees.main;
|
|
||||||
|
|
||||||
import magicbees.bees.BeeManager;
|
|
||||||
import magicbees.client.gui.GUIHandler;
|
|
||||||
import magicbees.main.utils.CompatabilityManager;
|
|
||||||
import magicbees.main.utils.CraftingManager;
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import magicbees.main.utils.compat.ArsMagicaHelper;
|
|
||||||
import magicbees.main.utils.compat.EquivalentExchangeHelper;
|
|
||||||
import magicbees.main.utils.compat.ExtraBeesHelper;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
|
||||||
import magicbees.world.WorldGeneratorHandler;
|
|
||||||
import cpw.mods.fml.common.Mod;
|
|
||||||
import cpw.mods.fml.common.SidedProxy;
|
|
||||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
||||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
|
||||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|
||||||
import cpw.mods.fml.common.network.NetworkMod;
|
|
||||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
|
|
||||||
@Mod(
|
|
||||||
modid=VersionInfo.ModName,
|
|
||||||
name="Magic Bees",
|
|
||||||
useMetadata=true,
|
|
||||||
acceptedMinecraftVersions=VersionInfo.MCVersion,
|
|
||||||
version=VersionInfo.Version,
|
|
||||||
dependencies=VersionInfo.Depends
|
|
||||||
)
|
|
||||||
@NetworkMod(serverSideRequired=false, clientSideRequired=true)
|
|
||||||
public class MagicBees
|
|
||||||
{
|
|
||||||
|
|
||||||
@Mod.Instance(VersionInfo.ModName)
|
|
||||||
public static MagicBees object;
|
|
||||||
|
|
||||||
@SidedProxy(serverSide="magicbees.main.CommonProxy", clientSide="magicbees.main.ClientProxy")
|
|
||||||
public static CommonProxy proxy;
|
|
||||||
|
|
||||||
public GUIHandler guiHandler;
|
|
||||||
private String configsPath;
|
|
||||||
private Config modConfig;
|
|
||||||
private WorldGeneratorHandler worldHandler;
|
|
||||||
|
|
||||||
@Mod.PreInit
|
|
||||||
public void preInit(FMLPreInitializationEvent event)
|
|
||||||
{
|
|
||||||
LocalizationManager.setupLocalizationInfo();
|
|
||||||
|
|
||||||
this.configsPath = event.getModConfigurationDirectory().getAbsolutePath();
|
|
||||||
this.modConfig = new Config(event.getSuggestedConfigurationFile());
|
|
||||||
|
|
||||||
// Compatibility Helpers setup time.
|
|
||||||
ThaumcraftHelper.init();
|
|
||||||
ExtraBeesHelper.init();
|
|
||||||
EquivalentExchangeHelper.init();
|
|
||||||
ArsMagicaHelper.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Mod.Init
|
|
||||||
public void init(FMLInitializationEvent event)
|
|
||||||
{
|
|
||||||
this.modConfig.setupBlocks();
|
|
||||||
this.modConfig.setupItems();
|
|
||||||
|
|
||||||
CompatabilityManager.setupBackpacks();
|
|
||||||
|
|
||||||
GameRegistry.registerWorldGenerator(worldHandler = new WorldGeneratorHandler());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Mod.PostInit
|
|
||||||
public void postInit(FMLPostInitializationEvent event)
|
|
||||||
{
|
|
||||||
this.guiHandler = new GUIHandler();
|
|
||||||
NetworkRegistry.instance().registerGuiHandler(this, this.guiHandler);
|
|
||||||
|
|
||||||
proxy.registerRenderers();
|
|
||||||
|
|
||||||
BeeManager.ititializeBees();
|
|
||||||
|
|
||||||
this.modConfig.saveConfigs();
|
|
||||||
|
|
||||||
ThaumcraftHelper.setupItemAspects();
|
|
||||||
|
|
||||||
// Vanilla, Forestry & Thaumcraft crafting setup
|
|
||||||
CraftingManager.setupCrafting();
|
|
||||||
|
|
||||||
ThaumcraftHelper.setupResearch();
|
|
||||||
|
|
||||||
VersionInfo.doVersionCheck();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Config getConfig()
|
|
||||||
{
|
|
||||||
return object.modConfig;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
package magicbees.main.utils;
|
|
||||||
|
|
||||||
import net.minecraft.world.chunk.Chunk;
|
|
||||||
|
|
||||||
public class ChunkCoords
|
|
||||||
{
|
|
||||||
public int dimension;
|
|
||||||
public int xCoord;
|
|
||||||
public int zCoord;
|
|
||||||
|
|
||||||
public ChunkCoords(Chunk chunk)
|
|
||||||
{
|
|
||||||
this.dimension = chunk.worldObj.provider.dimensionId;
|
|
||||||
this.xCoord = chunk.xPosition;
|
|
||||||
this.zCoord = chunk.zPosition;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
package magicbees.main.utils;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ItemApi;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.research.ResearchItem;
|
|
||||||
import thaumcraft.api.research.ResearchList;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import forestry.api.apiculture.EnumBeeChromosome;
|
|
||||||
import forestry.api.apiculture.EnumBeeType;
|
|
||||||
import forestry.api.core.BlockInterface;
|
|
||||||
import forestry.api.core.ItemInterface;
|
|
||||||
import forestry.api.storage.BackpackManager;
|
|
||||||
|
|
||||||
import magicbees.bees.Allele;
|
|
||||||
import magicbees.bees.BeeGenomeManager;
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.item.ItemComb;
|
|
||||||
import magicbees.item.ItemMiscResources;
|
|
||||||
import magicbees.item.types.CombType;
|
|
||||||
import magicbees.item.types.DropType;
|
|
||||||
import magicbees.item.types.LiquidType;
|
|
||||||
import magicbees.item.types.PollenType;
|
|
||||||
import magicbees.item.types.PropolisType;
|
|
||||||
import magicbees.item.types.ResourceType;
|
|
||||||
import magicbees.item.types.WaxType;
|
|
||||||
import magicbees.main.CommonProxy;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.compat.ExtraBeesHelper;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.CircuitBoard;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.Comb;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.CraftingMaterial;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.Pollen;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.Propolis;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper.Tube;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper.MiscResource;
|
|
||||||
import magicbees.storage.BackpackDefinition;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemBlock;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.common.Property;
|
|
||||||
import net.minecraftforge.common.Configuration;
|
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
|
||||||
|
|
||||||
public class CompatabilityManager
|
|
||||||
{
|
|
||||||
public static void setupBackpacks()
|
|
||||||
{
|
|
||||||
ThaumcraftHelper.addItemsToBackpack();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,565 +0,0 @@
|
|||||||
package magicbees.main.utils;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
|
||||||
import forestry.api.apiculture.BeeManager;
|
|
||||||
import forestry.api.apiculture.EnumBeeChromosome;
|
|
||||||
import forestry.api.apiculture.EnumBeeType;
|
|
||||||
import forestry.api.core.BlockInterface;
|
|
||||||
import forestry.api.core.ItemInterface;
|
|
||||||
import forestry.api.recipes.RecipeManagers;
|
|
||||||
import magicbees.bees.Allele;
|
|
||||||
import magicbees.bees.BeeGenomeManager;
|
|
||||||
import magicbees.bees.BeeSpecies;
|
|
||||||
import magicbees.block.types.PlankType;
|
|
||||||
import magicbees.item.ItemCapsule;
|
|
||||||
import magicbees.item.ItemWax;
|
|
||||||
import magicbees.item.types.CombType;
|
|
||||||
import magicbees.item.types.DropType;
|
|
||||||
import magicbees.item.types.HiveFrameType;
|
|
||||||
import magicbees.item.types.LiquidType;
|
|
||||||
import magicbees.item.types.NuggetType;
|
|
||||||
import magicbees.item.types.PollenType;
|
|
||||||
import magicbees.item.types.PropolisType;
|
|
||||||
import magicbees.item.types.ResourceType;
|
|
||||||
import magicbees.item.types.WaxType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.compat.ArsMagicaHelper;
|
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
|
||||||
import magicbees.main.utils.compat.ShapelessBeeInfusionCraftingRecipe;
|
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.liquids.LiquidContainerData;
|
|
||||||
import net.minecraftforge.liquids.LiquidContainerRegistry;
|
|
||||||
import net.minecraftforge.liquids.LiquidDictionary;
|
|
||||||
import net.minecraftforge.liquids.LiquidStack;
|
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
|
||||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
||||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
|
||||||
|
|
||||||
public class CraftingManager
|
|
||||||
{
|
|
||||||
public static void setupCrafting()
|
|
||||||
{
|
|
||||||
// Broken up into seperate sections to make things a bit easier to find.
|
|
||||||
setupVanillaCrafting();
|
|
||||||
setupCentrifugeRecipes();
|
|
||||||
setupSqueezerRecipes();
|
|
||||||
setupCarpenterRecipes();
|
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
ThaumcraftHelper.setupThaumcraftCrafting();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setupThaumcraftAlternativeCrafting();
|
|
||||||
}
|
|
||||||
|
|
||||||
registerLiquidContainer(Config.magicCapsule);
|
|
||||||
registerLiquidContainer(Config.voidCapsule);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupVanillaCrafting()
|
|
||||||
{
|
|
||||||
ItemStack input;
|
|
||||||
ItemStack output;
|
|
||||||
|
|
||||||
// Magic capsules
|
|
||||||
output = new ItemStack(Config.magicCapsule); output.stackSize = 4;
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(output, new Object[] {
|
|
||||||
"WWW",
|
|
||||||
'W', "waxMagical"
|
|
||||||
}));
|
|
||||||
|
|
||||||
// Concentrated Fertilizer -> Forestry fertilizer
|
|
||||||
input = Config.miscResources.getStackForType(ResourceType.EXTENDED_FERTILIZER);
|
|
||||||
output = ItemInterface.getItem("fertilizerCompound");
|
|
||||||
output.stackSize = 6;
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
" S ", " F ", " S ",
|
|
||||||
'F', input,
|
|
||||||
'S', Block.sand
|
|
||||||
});
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
" ", "SFS", " ",
|
|
||||||
'F', input,
|
|
||||||
'S', Block.sand
|
|
||||||
});
|
|
||||||
|
|
||||||
output = output.copy();
|
|
||||||
output.stackSize = 12;
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"aaa", "aFa", "aaa",
|
|
||||||
'F', input,
|
|
||||||
'a', ItemInterface.getItem("ash")
|
|
||||||
});
|
|
||||||
|
|
||||||
// "bottling" Intellect drops
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Item.expBottle), new Object[] {
|
|
||||||
"DDD", "DBD", "DDD",
|
|
||||||
'D', Config.drops.getStackForType(DropType.INTELLECT),
|
|
||||||
'B', Item.glassBottle
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Block.slowSand, 4), new Object[] {
|
|
||||||
"SwS", "wDw", "SwS",
|
|
||||||
'S', Block.sand,
|
|
||||||
'D', Block.dirt,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.SOUL)
|
|
||||||
});
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Block.slowSand, 4), new Object[] {
|
|
||||||
"wSw", "SDS", "wSw",
|
|
||||||
'S', Block.sand,
|
|
||||||
'D', Block.dirt,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.SOUL)
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Config.hiveFrameTemporal), new Object[] {
|
|
||||||
"sPs", "PfP", "sPs",
|
|
||||||
's', Block.sand,
|
|
||||||
'P', Config.pollen.getStackForType(PollenType.PHASED),
|
|
||||||
'f', Config.hiveFrameMagic
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Config.effectJar), new Object[] {
|
|
||||||
"GSG", "QPQ", "GGG",
|
|
||||||
'G', Block.glass,
|
|
||||||
'S', "slabWood",
|
|
||||||
'P', Config.pollen.getStackForType(PollenType.UNUSUAL),
|
|
||||||
'Q', Item.netherQuartz
|
|
||||||
}));
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Config.moonDial), new Object[] {
|
|
||||||
"DqD", "qrq", "DqD",
|
|
||||||
'r', Item.redstone,
|
|
||||||
'q', Item.netherQuartz,
|
|
||||||
'D', "dyeGreen"
|
|
||||||
}));
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.SKULL_FRAGMENT), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', Config.miscResources.getStackForType(ResourceType.SKULL_CHIP)
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Item.skull, 1, 1), new Object[] {
|
|
||||||
"xxx", "xxx",
|
|
||||||
'x', Config.miscResources.getStackForType(ResourceType.SKULL_FRAGMENT)
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.DRAGON_CHUNK), new Object[] {
|
|
||||||
"xxx", "xxx",
|
|
||||||
'x', Config.miscResources.getStackForType(ResourceType.DRAGON_DUST)
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Block.dragonEgg, 1), new Object[] {
|
|
||||||
"ccc", "cec", "ccc",
|
|
||||||
'c', Config.miscResources.getStackForType(ResourceType.DRAGON_CHUNK),
|
|
||||||
'e', Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE)
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE), new Object[] {
|
|
||||||
"gwg", "wfw", "gwg",
|
|
||||||
'g', Block.glass,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.SOUL),
|
|
||||||
'f', Block.plantRed
|
|
||||||
});
|
|
||||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE), new Object[] {
|
|
||||||
"wgw", "gfg", "wgw",
|
|
||||||
'g', Block.glass,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.SOUL),
|
|
||||||
'f', Block.plantRed
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameGentle), new Object[] {
|
|
||||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE),
|
|
||||||
ItemInterface.getItem("frameUntreated")
|
|
||||||
});
|
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameMetabolic), new Object[] {
|
|
||||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE),
|
|
||||||
ItemInterface.getItem("frameImpregnated"),
|
|
||||||
Item.magmaCream
|
|
||||||
});
|
|
||||||
|
|
||||||
if (OreDictionary.getOres("ingotCopper").size() <= 0)
|
|
||||||
{
|
|
||||||
NuggetType.COPPER.setActive(false);
|
|
||||||
}
|
|
||||||
if (OreDictionary.getOres("ingotTin").size() <= 0)
|
|
||||||
{
|
|
||||||
NuggetType.TIN.setActive(false);
|
|
||||||
}
|
|
||||||
if (OreDictionary.getOres("ingotSilver").size() <= 0)
|
|
||||||
{
|
|
||||||
NuggetType.SILVER.setActive(false);
|
|
||||||
}
|
|
||||||
if (OreDictionary.getOres("ingotLead").size() <= 0)
|
|
||||||
{
|
|
||||||
NuggetType.LEAD.setActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (NuggetType.COPPER.isActive())
|
|
||||||
{
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotCopper").get(0), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "nuggetCopper"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
if (NuggetType.TIN.isActive())
|
|
||||||
{
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotTin").get(0), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "nuggetTin"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
if (NuggetType.SILVER.isActive())
|
|
||||||
{
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotSilver").get(0), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "nuggetSilver"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
if (NuggetType.LEAD.isActive())
|
|
||||||
{
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotLead").get(0), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "nuggetLead"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.ingotIron), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "nuggetIron"
|
|
||||||
}));
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.diamond), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "shardDiamond"
|
|
||||||
}));
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.emerald), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', "shardEmerald"
|
|
||||||
}));
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(ItemInterface.getItem("apatite"), new Object[] {
|
|
||||||
"xxx", "xxx", "xxx",
|
|
||||||
'x', Config.nuggets.getStackForType(NuggetType.APATITE)
|
|
||||||
}));
|
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
// Slabs
|
|
||||||
for (int i = 0; i < PlankType.values().length; ++i)
|
|
||||||
{
|
|
||||||
input = new ItemStack(Config.planksWood, 1, i);
|
|
||||||
output = new ItemStack(Config.slabWoodHalf, 6, i);
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"PPP",
|
|
||||||
'P', input
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Essentia bottles
|
|
||||||
output = new ItemStack(Config.tcEssentiaBottle);
|
|
||||||
output.stackSize = 8;
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
" C ", "GPG", "PGP",
|
|
||||||
'G', Config.wax,
|
|
||||||
'C', Item.clay,
|
|
||||||
'P', Block.thinGlass
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.tcEssentiaBottle);
|
|
||||||
output.stackSize = 4;
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
" W ", "W W", " W ",
|
|
||||||
'W', Config.wax
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.KNOWLEDGE_FRAGMENT.ordinal());
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"FF", "FF",
|
|
||||||
'F', Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT)
|
|
||||||
});
|
|
||||||
|
|
||||||
// T1 Thaumaturge's backpack
|
|
||||||
GameRegistry.addRecipe(new ItemStack(Config.thaumaturgeBackpackT1), new Object[] {
|
|
||||||
"SWS", "NCN", "SWS",
|
|
||||||
'S', Item.silk,
|
|
||||||
'W', Block.cloth,
|
|
||||||
'N', new ItemStack(Config.tcMiscResource.itemID, 1, ThaumcraftHelper.MiscResource.AMBER.ordinal()),
|
|
||||||
'C', Block.chest
|
|
||||||
});
|
|
||||||
|
|
||||||
// "bottling" Crystal aspects.
|
|
||||||
for (EnumTag tag : EnumTag.values())
|
|
||||||
{
|
|
||||||
if (tag != EnumTag.UNKNOWN)
|
|
||||||
{
|
|
||||||
output = new ItemStack(Config.tcEssentiaBottle, 1, tag.id + 1);
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"ccc", "cxc", "ccc",
|
|
||||||
'c', new ItemStack(Config.solidFlux, 1, tag.id),
|
|
||||||
'x', Config.tcEssentiaBottle
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ArsMagicaHelper.isActive())
|
|
||||||
{
|
|
||||||
input = ItemInterface.getItem("apatite");
|
|
||||||
output = Config.miscResources.getStackForType(ResourceType.EXTENDED_FERTILIZER, 4);
|
|
||||||
GameRegistry.addShapelessRecipe(output, new Object[] {
|
|
||||||
new ItemStack(Config.amEssenceEarth), new ItemStack(Config.amEssencePlant),
|
|
||||||
input, input
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupCentrifugeRecipes()
|
|
||||||
{
|
|
||||||
ItemStack beeswax = ItemInterface.getItem("beeswax");
|
|
||||||
ItemStack propolis = ItemInterface.getItem("propolis");
|
|
||||||
propolis.setItemDamage(ForestryHelper.Propolis.PULSATING.ordinal());
|
|
||||||
|
|
||||||
// 20 is the 'average' time to centrifuge a comb.
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.MUNDANE),
|
|
||||||
new ItemStack[] {beeswax, ItemInterface.getItem("honeyDrop"), Config.wax.getStackForType(WaxType.MAGIC)},
|
|
||||||
new int[] {90, 60, 10});
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.MOLTEN),
|
|
||||||
new ItemStack[] {ItemInterface.getItem("refractoryWax"), ItemInterface.getItem("honeyDrop")},
|
|
||||||
new int[] {86, 8});
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.FORGOTTEN),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.AMNESIC), propolis, ItemInterface.getItem("honeyDrop")},
|
|
||||||
new int[] {50, 50, 22});
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.OCCULT),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), ItemInterface.getItem("honeyDrop") },
|
|
||||||
new int[] { 100, 60 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.OTHERWORLDLY),
|
|
||||||
new ItemStack[] {beeswax, Config.wax.getStackForType(WaxType.MAGIC), ItemInterface.getItem("honeyDrop") },
|
|
||||||
new int[] { 50, 20, 100 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.PAPERY),
|
|
||||||
new ItemStack[] {ItemInterface.getItem("beeswax"), Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.paper) },
|
|
||||||
new int[] { 80, 20, 5 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.INTELLECT),
|
|
||||||
new ItemStack[] { Config.wax.getStackForType(WaxType.MAGIC), ItemInterface.getItem("honeydew"), Config.drops.getStackForType(DropType.INTELLECT) },
|
|
||||||
new int[] { 90, 40, 10 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.FURTIVE),
|
|
||||||
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemInterface.getItem("propolis"), ItemInterface.getItem("honeydew") },
|
|
||||||
new int[] { 90, 20, 35 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.SOUL),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.SOUL), ItemInterface.getItem("honeydew") },
|
|
||||||
new int[] { 95, 26 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TEMPORAL),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.pollen.getStackForType(PollenType.PHASED), new ItemStack(Config.fHoneydew, 1)},
|
|
||||||
new int[] {100, 5, 60});
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.HARMONIZING),
|
|
||||||
new ItemStack[] {ItemInterface.getItem("beeswax"), Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 10, 95, 10 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AIRY),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 100 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.FIREY),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 100 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.WATERY),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 100 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.EARTHY),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 100 });
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.INFUSED),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.wax.getStackForType(WaxType.MAGIC) },
|
|
||||||
new int[] { 100, 50 });
|
|
||||||
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AM_POTENT),
|
|
||||||
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemInterface.getItem("refractoryWax"), ItemInterface.getItem("honeydew") },
|
|
||||||
new int[] { 50, 50, 65 } );
|
|
||||||
|
|
||||||
// if (ThaumcraftHelper.isActive()) { }
|
|
||||||
|
|
||||||
if (ArsMagicaHelper.isActive())
|
|
||||||
{
|
|
||||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AM_ESSENCE),
|
|
||||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Config.amVinteumDust), new ItemStack(Config.amVinteumDust) },
|
|
||||||
new int[] { 85, 10, 2 } );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupSqueezerRecipes()
|
|
||||||
{
|
|
||||||
// Squeezer recipes
|
|
||||||
// if (ThaumcraftHelper.isActive()) { }
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupCarpenterRecipes()
|
|
||||||
{
|
|
||||||
ItemStack input;
|
|
||||||
ItemStack output;
|
|
||||||
|
|
||||||
output = BlockInterface.getBlock("candle");
|
|
||||||
output.stackSize = 24;
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(Block.waterStill, 600), null, output, new Object[] {
|
|
||||||
" S ", "WWW", "WWW",
|
|
||||||
'W', Config.wax,
|
|
||||||
'S', Item.silk
|
|
||||||
});
|
|
||||||
|
|
||||||
output = BlockInterface.getBlock("candle");
|
|
||||||
output.stackSize = 6;
|
|
||||||
input = ItemInterface.getItem("craftingMaterial");
|
|
||||||
input.setItemDamage(ForestryHelper.CraftingMaterial.SILK_WISP.ordinal()); // Set to Silk Wisp
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(Block.waterStill, 600), null, output, new Object[] {
|
|
||||||
"WSW",
|
|
||||||
'W', Config.wax,
|
|
||||||
'S', input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = Config.miscResources.getStackForType(ResourceType.AROMATIC_LUMP, 2);
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(ItemInterface.getItem("liquidHoney").itemID, 1000), null, output, new Object[] {
|
|
||||||
" P ", "JDJ", " P ",
|
|
||||||
'P', ItemInterface.getItem("pollen"),
|
|
||||||
'J', ItemInterface.getItem("royalJelly"),
|
|
||||||
'D', Config.drops.getStackForType(DropType.ENCHANTED)
|
|
||||||
});
|
|
||||||
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(ItemInterface.getItem("liquidHoney").itemID, 1000), null, output, new Object[] {
|
|
||||||
" J ", "PDP", " J ",
|
|
||||||
'P', ItemInterface.getItem("pollen"),
|
|
||||||
'J', ItemInterface.getItem("royalJelly"),
|
|
||||||
'D', Config.drops.getStackForType(DropType.ENCHANTED)
|
|
||||||
});
|
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
|
||||||
{
|
|
||||||
// Carpenter recipes
|
|
||||||
input = ItemInterface.getItem("craftingMaterial");
|
|
||||||
input.setItemDamage(3); // Set to Silk Mesh
|
|
||||||
output = new ItemStack(Config.thaumaturgeBackpackT2);
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(200, new LiquidStack(Block.waterStill.blockID, 1000), null, output, new Object[] {
|
|
||||||
"WXW", "WTW", "WWW",
|
|
||||||
'X', Item.diamond,
|
|
||||||
'W', input,
|
|
||||||
'T', new ItemStack(Config.thaumaturgeBackpackT1)
|
|
||||||
});
|
|
||||||
output = new ItemStack(Config.planksWood, 4, 0);
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(8, new LiquidStack(Block.waterStill, 500), null, output, new Object[] {
|
|
||||||
"B",
|
|
||||||
'B', new ItemStack(Config.tcLog, 1, 0)
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.planksWood, 6, 1);
|
|
||||||
RecipeManagers.carpenterManager.addRecipe(8, new LiquidStack(Block.waterStill, 500), null, output, new Object[] {
|
|
||||||
"B",
|
|
||||||
'B', new ItemStack(Config.tcLog, 1, 1)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void registerLiquidContainer(ItemCapsule baseCapsule)
|
|
||||||
{
|
|
||||||
ItemStack empty = new ItemStack(baseCapsule, 1, 0);
|
|
||||||
ItemStack filled;
|
|
||||||
LiquidStack liquid = null;
|
|
||||||
|
|
||||||
for (LiquidType liquidType : LiquidType.values())
|
|
||||||
{
|
|
||||||
switch (liquidType)
|
|
||||||
{
|
|
||||||
case EMPTY:
|
|
||||||
liquid = null;
|
|
||||||
break;
|
|
||||||
case WATER:
|
|
||||||
liquid = new LiquidStack(Block.waterStill, baseCapsule.getType().capacity);
|
|
||||||
break;
|
|
||||||
case LAVA:
|
|
||||||
liquid = new LiquidStack(Block.lavaStill, baseCapsule.getType().capacity);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
liquid = LiquidDictionary.getLiquid(liquidType.liquidID, baseCapsule.getType().capacity);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (liquid != null)
|
|
||||||
{
|
|
||||||
filled = new ItemStack(baseCapsule, 1, liquidType.ordinal());
|
|
||||||
LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquid, filled, empty));
|
|
||||||
|
|
||||||
// Register with Squeezer/Bottler
|
|
||||||
RecipeManagers.bottlerManager.addRecipe(5, liquid, empty, filled);
|
|
||||||
RecipeManagers.squeezerManager.addRecipe(10, new ItemStack[] {filled} , liquid,
|
|
||||||
Config.wax.getStackForType(WaxType.MAGIC), 20);
|
|
||||||
liquidType.available = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Empty will be set to unavailable. Obviously, it always is.
|
|
||||||
LiquidType.EMPTY.available = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupThaumcraftAlternativeCrafting()
|
|
||||||
{
|
|
||||||
ItemStack input, output;
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameMagic);
|
|
||||||
input = ItemInterface.getItem("frameUntreated");
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"www", "wfw", "www",
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC),
|
|
||||||
'f', input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameResilient);
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"wiw", "ifi", "wiw",
|
|
||||||
'f', Config.hiveFrameMagic,
|
|
||||||
'i', Item.ingotIron,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC)
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameNecrotic);
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"wSw", "SFS", "wSw",
|
|
||||||
'S', Item.rottenFlesh,
|
|
||||||
'F', input,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC)
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameTemporal);
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"wSt", "wFw", "tSw",
|
|
||||||
't', Item.stick,
|
|
||||||
'S', Block.sand,
|
|
||||||
'F', Config.hiveFrameMagic,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC)
|
|
||||||
});
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"tSw", "wFw", "wSt",
|
|
||||||
't', Item.stick,
|
|
||||||
'S', Block.sand,
|
|
||||||
'F', Config.hiveFrameMagic,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC)
|
|
||||||
});
|
|
||||||
|
|
||||||
output = Config.voidCapsule.getCapsuleForLiquid(LiquidType.EMPTY);
|
|
||||||
output.stackSize = 4;
|
|
||||||
GameRegistry.addRecipe(output, new Object[] {
|
|
||||||
"wDw", "GPG", "TwT",
|
|
||||||
'G', Block.glass,
|
|
||||||
'D', Item.diamond,
|
|
||||||
'P', Item.eyeOfEnder,
|
|
||||||
'T', Item.ingotGold,
|
|
||||||
'w', Config.wax.getStackForType(WaxType.MAGIC)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
package magicbees.main.utils;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.EnumSet;
|
|
||||||
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import cpw.mods.fml.common.IScheduledTickHandler;
|
|
||||||
import cpw.mods.fml.common.TickType;
|
|
||||||
|
|
||||||
public class TickHandlerVersion implements IScheduledTickHandler
|
|
||||||
{
|
|
||||||
|
|
||||||
public static TickHandlerVersion instance = new TickHandlerVersion();
|
|
||||||
|
|
||||||
private static ArrayList<VersionInfo> modVersionInfo = new ArrayList();
|
|
||||||
private static boolean initialized;
|
|
||||||
private static boolean sent;
|
|
||||||
private static int modIndex = 0;
|
|
||||||
|
|
||||||
public static boolean initialize()
|
|
||||||
{
|
|
||||||
if (initialized)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
initialized = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isInitialized()
|
|
||||||
{
|
|
||||||
return initialized;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean registerModVersionInfo(VersionInfo info)
|
|
||||||
{
|
|
||||||
if (modVersionInfo.contains(info))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
modVersionInfo.add(info);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void tickStart(EnumSet<TickType> type, Object... tickData)
|
|
||||||
{
|
|
||||||
if (sent)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (modIndex < modVersionInfo.size())
|
|
||||||
{
|
|
||||||
VersionInfo anInfo = modVersionInfo.get(modIndex);
|
|
||||||
|
|
||||||
if ((!MagicBees.getConfig().DisableUpdateNotification || anInfo.isCriticalUpdate()) && anInfo.isNewVersionAvailable())
|
|
||||||
{
|
|
||||||
EntityPlayer player = (EntityPlayer) tickData[0];
|
|
||||||
player.sendChatToPlayer("[" + anInfo.modName + "] A new version is available: " + anInfo.getLatestVersion());
|
|
||||||
player.sendChatToPlayer(anInfo.getVersionDescription());
|
|
||||||
}
|
|
||||||
modIndex += 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sent = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void tickEnd(EnumSet<TickType> type, Object... tickData)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public EnumSet<TickType> ticks()
|
|
||||||
{
|
|
||||||
if (TickHandlerVersion.sent)
|
|
||||||
{
|
|
||||||
return EnumSet.noneOf(TickType.class);
|
|
||||||
}
|
|
||||||
return EnumSet.of(TickType.PLAYER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getLabel()
|
|
||||||
{
|
|
||||||
return "thaumicbees.version";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int nextTickSpacing()
|
|
||||||
{
|
|
||||||
if (!sent)
|
|
||||||
{
|
|
||||||
return 200;
|
|
||||||
}
|
|
||||||
return 72000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
package magicbees.main.utils.compat;
|
|
||||||
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import cpw.mods.fml.common.Loader;
|
|
||||||
|
|
||||||
public class ArsMagicaHelper
|
|
||||||
{
|
|
||||||
private static boolean isArsMagicaPresent = false;
|
|
||||||
|
|
||||||
public static boolean isActive()
|
|
||||||
{
|
|
||||||
return isArsMagicaPresent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void init()
|
|
||||||
{
|
|
||||||
if (Loader.isModLoaded("ArsMagica"))
|
|
||||||
{
|
|
||||||
isArsMagicaPresent = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getBlocks()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Class clazz = Class.forName("mithion.arsmagica.blocks.ArsMagicaBlocksCommonProxy");
|
|
||||||
Config.amBlackOrchid = (Block)(clazz.getField("blueOrchid").get(null));
|
|
||||||
Config.amDesertNova = (Block)(clazz.getField("desertNova").get(null));
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getItems()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Class clazz = Class.forName("mithion.arsmagica.items.ArsMagicaItemsCommonProxy");
|
|
||||||
Config.amVinteumDust = (Item)(clazz.getField("vinteumDust").get(null));
|
|
||||||
Config.amArcaneCompound = (Item)(clazz.getField("arcaneCompound").get(null));
|
|
||||||
Config.amEssenceAir = (Item)(clazz.getField("airEssence").get(null));
|
|
||||||
Config.amEssenceArcane = (Item)(clazz.getField("arcaneEssence").get(null));
|
|
||||||
Config.amEssenceEarth = (Item)(clazz.getField("earthEssence").get(null));
|
|
||||||
Config.amEssenceFire = (Item)(clazz.getField("fireEssence").get(null));
|
|
||||||
Config.amEssenceIce = (Item)(clazz.getField("iceEssence").get(null));
|
|
||||||
Config.amEssenceLightning = (Item)(clazz.getField("lightningEssence").get(null));
|
|
||||||
Config.amEssenceMagma = (Item)(clazz.getField("magmaEssence").get(null));
|
|
||||||
Config.amEssencePlant = (Item)(clazz.getField("plantEssence").get(null));
|
|
||||||
Config.amEssenceWater = (Item)(clazz.getField("waterEssence").get(null));
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
package magicbees.main.utils.compat;
|
|
||||||
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import cpw.mods.fml.common.Loader;
|
|
||||||
|
|
||||||
public class EquivalentExchangeHelper
|
|
||||||
{
|
|
||||||
private static boolean isEquivalentExchangePresent = false;
|
|
||||||
|
|
||||||
public static boolean isActive()
|
|
||||||
{
|
|
||||||
return isEquivalentExchangePresent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void init()
|
|
||||||
{
|
|
||||||
if (Loader.isModLoaded("EE3"))
|
|
||||||
{
|
|
||||||
isEquivalentExchangePresent = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getBlocks()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getItems()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Class itemClass = Class.forName("com.pahimar.ee3.item.ModItems");
|
|
||||||
Config.eeMinuimShard = (Item)(itemClass.getField("miniumShard").get(null));
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
FMLLog.info("Could not get Equivalent Exchange items.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,171 +0,0 @@
|
|||||||
package magicbees.main.utils.compat;
|
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import forestry.api.core.EnumHumidity;
|
|
||||||
import forestry.api.core.EnumTemperature;
|
|
||||||
import forestry.api.core.ItemInterface;
|
|
||||||
import forestry.api.genetics.IAllele;
|
|
||||||
|
|
||||||
public class ForestryHelper
|
|
||||||
{
|
|
||||||
public enum BlockResource
|
|
||||||
{
|
|
||||||
APATITE,
|
|
||||||
COPPER,
|
|
||||||
TIN,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum CraftingMaterial
|
|
||||||
{
|
|
||||||
PULSATING_DUST, // unused
|
|
||||||
PULSATING_MESH,
|
|
||||||
SILK_WISP,
|
|
||||||
WOVEN_SILK,
|
|
||||||
DISSIPATION_CHARGE,
|
|
||||||
ICE_SHARD,
|
|
||||||
SCENTED_PANELING,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum Comb
|
|
||||||
{
|
|
||||||
HONEY,
|
|
||||||
COCOA,
|
|
||||||
SIMMERING,
|
|
||||||
STRINGY,
|
|
||||||
FROZEN,
|
|
||||||
DRIPPING,
|
|
||||||
SILKY,
|
|
||||||
PARCHED,
|
|
||||||
MYSTERIOUS,
|
|
||||||
IRRADIATED,
|
|
||||||
POWDERY,
|
|
||||||
REDDENED,
|
|
||||||
DARKENED,
|
|
||||||
OMEGA,
|
|
||||||
WHEATEN,
|
|
||||||
MOSSY,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum Propolis
|
|
||||||
{
|
|
||||||
NORMAL,
|
|
||||||
STICKY, // Unused.
|
|
||||||
PULSATING,
|
|
||||||
SILKY,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum Pollen
|
|
||||||
{
|
|
||||||
NORMAL,
|
|
||||||
CRYSTALLINE,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum CircuitBoard
|
|
||||||
{
|
|
||||||
BASIC,
|
|
||||||
ENHANCED,
|
|
||||||
REFINED,
|
|
||||||
INTRICATE,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum Tube
|
|
||||||
{
|
|
||||||
COPPER,
|
|
||||||
TIN,
|
|
||||||
BRONZE,
|
|
||||||
IRON,
|
|
||||||
GOLD,
|
|
||||||
DIAMOND,
|
|
||||||
OBSIDIAN,
|
|
||||||
BLAZE,
|
|
||||||
RUBBER,
|
|
||||||
EMERALD,
|
|
||||||
APATITE,
|
|
||||||
LAPIS,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String Name = "Forestry";
|
|
||||||
|
|
||||||
public static void getBlocks()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getItems()
|
|
||||||
{
|
|
||||||
Config.fBeeComb = ItemInterface.getItem("beeComb").getItem();
|
|
||||||
Config.fPollen = ItemInterface.getItem("pollen").getItem();
|
|
||||||
Config.fCraftingResource = ItemInterface.getItem("craftingMaterial").getItem();
|
|
||||||
Config.fHoneyDrop = ItemInterface.getItem("honeyDrop").getItem();
|
|
||||||
Config.fHoneydew = ItemInterface.getItem("honeydew").getItem();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static IAllele[] getTemplateForestryForSpecies(String speciesName)
|
|
||||||
{
|
|
||||||
IAllele[] template = null;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
//BeeTemplates.getValiantTemplate()
|
|
||||||
Class c = Class.forName("forestry.apiculture.genetics.BeeTemplates");
|
|
||||||
Method m = c.getMethod("get" + speciesName + "Template");
|
|
||||||
template = (IAllele[])(m.invoke(null));
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
FMLLog.severe("Could not get Forestry template for %s.", speciesName);
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return template;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static EnumTemperature getEnumTemperatureFromValue(float rawTemp)
|
|
||||||
{
|
|
||||||
EnumTemperature value = EnumTemperature.ICY;
|
|
||||||
|
|
||||||
if (rawTemp >= 2.0f)
|
|
||||||
{
|
|
||||||
value = EnumTemperature.HOT;
|
|
||||||
}
|
|
||||||
else if (rawTemp >= 1.2f)
|
|
||||||
{
|
|
||||||
value = EnumTemperature.WARM;
|
|
||||||
}
|
|
||||||
else if (rawTemp >= 0.2f)
|
|
||||||
{
|
|
||||||
value = EnumTemperature.NORMAL;
|
|
||||||
}
|
|
||||||
else if (rawTemp >= 0.05f)
|
|
||||||
{
|
|
||||||
value = EnumTemperature.COLD;
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static EnumHumidity getEnumHumidityFromValue(float rawHumidity)
|
|
||||||
{
|
|
||||||
EnumHumidity value = EnumHumidity.ARID;
|
|
||||||
|
|
||||||
if (rawHumidity >= 0.9f)
|
|
||||||
{
|
|
||||||
value = EnumHumidity.DAMP;
|
|
||||||
}
|
|
||||||
else if (rawHumidity >= 0.3f)
|
|
||||||
{
|
|
||||||
value = EnumHumidity.NORMAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
package magicbees.main.utils.compat;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import forestry.api.apiculture.EnumBeeChromosome;
|
|
||||||
import forestry.api.genetics.IAllele;
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.nbt.NBTBase;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.nbt.NBTTagList;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
|
||||||
import thaumcraft.api.crafting.ShapelessInfusionCraftingRecipes;
|
|
||||||
import thaumcraft.api.research.ResearchList;
|
|
||||||
|
|
||||||
public class ShapelessBeeInfusionCraftingRecipe extends ShapelessInfusionCraftingRecipes
|
|
||||||
{
|
|
||||||
private String alleleId;
|
|
||||||
private byte alleleSlot;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates & adds a Crafting recipe to Thaumcraft for our Stark bee infusions.
|
|
||||||
*/
|
|
||||||
public static void createNewRecipe(String key, String researchKey, ItemStack output, Object[] input,
|
|
||||||
int auraCost, ObjectTags tags, IAllele allele, EnumBeeChromosome slot)
|
|
||||||
{
|
|
||||||
ArrayList<ItemStack> inputList = new ArrayList(input.length);
|
|
||||||
for (Object item : input)
|
|
||||||
{
|
|
||||||
if (item instanceof ItemStack)
|
|
||||||
{
|
|
||||||
inputList.add(((ItemStack) item).copy());
|
|
||||||
}
|
|
||||||
else if (item instanceof Item)
|
|
||||||
{
|
|
||||||
inputList.add(new ItemStack((Item)item));
|
|
||||||
}
|
|
||||||
else if (item instanceof Block)
|
|
||||||
{
|
|
||||||
inputList.add(new ItemStack((Block)item));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new RuntimeException("Invalid shapeless crafting recipe!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ThaumcraftApi.getCraftingRecipes().add(
|
|
||||||
new ShapelessBeeInfusionCraftingRecipe(key, output, inputList, auraCost, tags, allele, slot)
|
|
||||||
);
|
|
||||||
ResearchList.craftingRecipesForResearch.put(researchKey, Arrays.asList(ThaumcraftApi.getCraftingRecipes().size()-1));
|
|
||||||
}
|
|
||||||
|
|
||||||
private ShapelessBeeInfusionCraftingRecipe(String key, ItemStack output, List<ItemStack> itemList, int cost, ObjectTags tags,
|
|
||||||
IAllele allele, EnumBeeChromosome slot)
|
|
||||||
{
|
|
||||||
super(key, output, itemList, cost, tags);
|
|
||||||
|
|
||||||
this.alleleId = allele.getUID();
|
|
||||||
this.alleleSlot = (byte)slot.ordinal();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean matches(IInventory craftingInventory, EntityPlayer player)
|
|
||||||
{
|
|
||||||
// We'll remove items from the list as they are found.
|
|
||||||
ArrayList<ItemStack> recipeItemsList = new ArrayList(this.recipeItems);
|
|
||||||
|
|
||||||
boolean invalidItemFound = false;
|
|
||||||
|
|
||||||
if (key.length() == 0 || (key.length() > 0 && ThaumcraftApiHelper.isResearchComplete(player.username, key)))
|
|
||||||
{
|
|
||||||
|
|
||||||
for (int i = 0; i < 3 && !invalidItemFound; ++i)
|
|
||||||
{
|
|
||||||
for (int j = 0; j < 3 && !invalidItemFound; ++j)
|
|
||||||
{
|
|
||||||
ItemStack itemStack = ThaumcraftApiHelper.getStackInRowAndColumn(craftingInventory, j, i);
|
|
||||||
|
|
||||||
if (itemStack != null)
|
|
||||||
{
|
|
||||||
Iterator<ItemStack> itr = recipeItemsList.iterator();
|
|
||||||
boolean currentItemInRecipe = false;
|
|
||||||
|
|
||||||
while (itr.hasNext())
|
|
||||||
{
|
|
||||||
ItemStack recipeItem = itr.next();
|
|
||||||
|
|
||||||
if (itemStack.itemID == recipeItem.itemID && (recipeItem.getItemDamage() == -1 || itemStack.getItemDamage() == recipeItem.getItemDamage()))
|
|
||||||
{
|
|
||||||
if (recipeItem.hasTagCompound())
|
|
||||||
{
|
|
||||||
currentItemInRecipe = this.hasMatchingChromosome(itemStack);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
currentItemInRecipe = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (currentItemInRecipe)
|
|
||||||
{
|
|
||||||
itr.remove();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!currentItemInRecipe)
|
|
||||||
{
|
|
||||||
invalidItemFound = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return recipeItemsList.isEmpty() && !invalidItemFound;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean hasMatchingChromosome(ItemStack itemStack)
|
|
||||||
{
|
|
||||||
boolean genesMatch = false;
|
|
||||||
|
|
||||||
NBTTagCompound compoundRoot = itemStack.getTagCompound();
|
|
||||||
if (compoundRoot.hasKey("Genome"))
|
|
||||||
{
|
|
||||||
NBTTagCompound genome = compoundRoot.getCompoundTag("Genome");
|
|
||||||
if (genome.hasKey("Chromosomes"))
|
|
||||||
{
|
|
||||||
NBTTagList chromosomes = genome.getTagList("Chromosomes");
|
|
||||||
|
|
||||||
for (int i = 0; i < chromosomes.tagCount() && !genesMatch; ++i)
|
|
||||||
{
|
|
||||||
NBTTagCompound genes = (NBTTagCompound)chromosomes.tagAt(i);
|
|
||||||
if (genes.hasKey("Slot") && genes.getByte("Slot") == this.alleleSlot)
|
|
||||||
{
|
|
||||||
if (genes.getString("UID0").equals(this.alleleId) && genes.getString("UID1").equals(this.alleleId))
|
|
||||||
{
|
|
||||||
genesMatch = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return genesMatch;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,759 +0,0 @@
|
|||||||
package magicbees.main.utils.compat;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
import magicbees.bees.BeeGenomeManager;
|
|
||||||
import magicbees.bees.BeeSpecies;
|
|
||||||
import magicbees.item.ItemThaumiumGrafter;
|
|
||||||
import magicbees.item.ItemThaumiumScoop;
|
|
||||||
import magicbees.item.types.CombType;
|
|
||||||
import magicbees.item.types.DropType;
|
|
||||||
import magicbees.item.types.HiveFrameType;
|
|
||||||
import magicbees.item.types.LiquidType;
|
|
||||||
import magicbees.item.types.PollenType;
|
|
||||||
import magicbees.item.types.PropolisType;
|
|
||||||
import magicbees.item.types.ResourceType;
|
|
||||||
import magicbees.item.types.WaxType;
|
|
||||||
import magicbees.main.CommonProxy;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import thaumcraft.api.EnumTag;
|
|
||||||
import thaumcraft.api.ItemApi;
|
|
||||||
import thaumcraft.api.ObjectTags;
|
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.research.ResearchItem;
|
|
||||||
import thaumcraft.api.research.ResearchList;
|
|
||||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
|
||||||
import forestry.api.apiculture.EnumBeeChromosome;
|
|
||||||
import forestry.api.apiculture.EnumBeeType;
|
|
||||||
import forestry.api.core.BlockInterface;
|
|
||||||
import forestry.api.core.ItemInterface;
|
|
||||||
|
|
||||||
public class ThaumcraftHelper
|
|
||||||
{
|
|
||||||
public enum MiscResource
|
|
||||||
{
|
|
||||||
ALUMENTUM,
|
|
||||||
NITOR,
|
|
||||||
THAUMIUM,
|
|
||||||
QUICKSILVER,
|
|
||||||
MAGIC_TALLOW,
|
|
||||||
ZOMBIE_BRAIN,
|
|
||||||
AMBER,
|
|
||||||
ENCHANTED_FABRIC,
|
|
||||||
FLUX_FILTER,
|
|
||||||
KNOWLEDGE_FRAGMENT,
|
|
||||||
MIRRORED_GLASS,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum NuggetType
|
|
||||||
{
|
|
||||||
IRON,
|
|
||||||
COPPER,
|
|
||||||
TIN,
|
|
||||||
SILVER,
|
|
||||||
LEAD,
|
|
||||||
QUICKSILVER, _6,_7,_8,_9,_10,_11,_12,_13,_14,_15,
|
|
||||||
NATIVE_IRON,
|
|
||||||
NATIVE_COPPER,
|
|
||||||
NATIVE_TIN,
|
|
||||||
NATIVE_SILVER,
|
|
||||||
NATIVE_LEAD, _21,_22,_23,_24,_25,_26,_27,_28,_29,_30,
|
|
||||||
NATIVE_GOLD,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum ShardType
|
|
||||||
{
|
|
||||||
AIR,
|
|
||||||
FIRE,
|
|
||||||
WATER,
|
|
||||||
EARTH,
|
|
||||||
MAGIC,
|
|
||||||
DULL,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum Entity
|
|
||||||
{
|
|
||||||
BRAINY_ZOMBIE("entBrainyZombie", "EntityBrainyZombie"),
|
|
||||||
GIANT_BRAINY_ZOMBIE("entGiantBrainyZombie", "EntityGiantBrainyZombie"),
|
|
||||||
WISP("entWisp", "EntityWisp"),
|
|
||||||
FIREBAT("entFirebat", "EntityFireBat"),
|
|
||||||
;
|
|
||||||
|
|
||||||
private static String packageName = "thaumcraft.common.entities.monster.";
|
|
||||||
|
|
||||||
public String entityID;
|
|
||||||
private String className;
|
|
||||||
|
|
||||||
private Entity(String id, String clazz)
|
|
||||||
{
|
|
||||||
this.entityID = id;
|
|
||||||
this.className = clazz;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getClassName()
|
|
||||||
{
|
|
||||||
return packageName + this.className;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum BlockPlant
|
|
||||||
{
|
|
||||||
GREATWOOD_SAPLING,
|
|
||||||
SILVERWOOD_SAPLING,
|
|
||||||
SHIMMERLEAF,
|
|
||||||
CINDERPEARL;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum TreeType
|
|
||||||
{
|
|
||||||
GREATWOOD,
|
|
||||||
SILVERWOOD,
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static boolean isThaumcraftPresent = false;
|
|
||||||
public static final String Name = "Thaumcraft";
|
|
||||||
|
|
||||||
public static boolean isActive()
|
|
||||||
{
|
|
||||||
return isThaumcraftPresent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void init()
|
|
||||||
{
|
|
||||||
if (cpw.mods.fml.common.Loader.isModLoaded(Name))
|
|
||||||
{
|
|
||||||
isThaumcraftPresent = true;
|
|
||||||
|
|
||||||
registerResearchXML();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Switch off TC-dependant items.
|
|
||||||
ResourceType.LORE_FRAGMENT.setHidden();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getBlocks()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
Config.tcPlant = Block.blocksList[ItemApi.getItem("blockCustomPlant", 0).itemID];
|
|
||||||
Config.tcCandle = Block.blocksList[ItemApi.getItem("blockCandle", 0).itemID];
|
|
||||||
Config.tcCrystal = Block.blocksList[ItemApi.getItem("blockCrystal", 0).itemID];
|
|
||||||
Config.tcMarker = Block.blocksList[ItemApi.getItem("blockMarker", 0).itemID];
|
|
||||||
Config.tcJar = Block.blocksList[ItemApi.getItem("blockJar", 0).itemID];
|
|
||||||
Config.tcLog = Block.blocksList[ItemApi.getItem("blockMagicalLog", 0).itemID];
|
|
||||||
Config.tcLeaf = Block.blocksList[ItemApi.getItem("blockMagicalLeaves", 0).itemID];
|
|
||||||
Config.tcWarded = Block.blocksList[ItemApi.getItem("blockWarded", 0).itemID];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void getItems()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
Config.tcFilledJar = ItemApi.getItem("itemJarFilled", 0).getItem();
|
|
||||||
Config.tcMiscResource = ItemApi.getItem("itemResource", 0).getItem();
|
|
||||||
Config.tcEssentiaBottle = ItemApi.getItem("itemEssence", 0).getItem();
|
|
||||||
Config.tcShard = ItemApi.getItem("itemShard", 0).getItem();
|
|
||||||
Config.tcGolem = ItemApi.getItem("itemGolemPlacer", 0).getItem();
|
|
||||||
Config.tcWispEssence = ItemApi.getItem("itemWispEssence", 0).getItem();
|
|
||||||
Config.tcNuggets = ItemApi.getItem("itemNugget", 0).getItem();
|
|
||||||
Config.tcNuggetChicken = ItemApi.getItem("itemNuggetChicken", 0).getItem();
|
|
||||||
Config.tcNuggetBeef = ItemApi.getItem("itemNuggetBeef", 0).getItem();
|
|
||||||
Config.tcNuggetPork = ItemApi.getItem("itemNuggetPork", 0).getItem();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addItemsToBackpack()
|
|
||||||
{
|
|
||||||
if (isActive() && MagicBees.getConfig().AddThaumcraftItemsToBackpacks)
|
|
||||||
{
|
|
||||||
// Add all shards and Thaumium to miner's backpack
|
|
||||||
String ids = Config.tcShard.itemID + ":" + -1 + ";"
|
|
||||||
+ Config.tcMiscResource.itemID + ":" + ThaumcraftHelper.MiscResource.THAUMIUM.ordinal();
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "miner@" + ids);
|
|
||||||
|
|
||||||
// All resources go into Thaumaturge's backpack
|
|
||||||
ids = Config.tcMiscResource.itemID + ":" + -1 + ";"
|
|
||||||
+ Config.tcShard.itemID + ":" + -1 + ";"
|
|
||||||
+ Config.tcFilledJar.itemID + ":" + -1 + ";"
|
|
||||||
+ Config.tcCrystal.blockID + ":" + -1 + ";"
|
|
||||||
+ Config.tcJar.blockID + ":" + -1 + ";"
|
|
||||||
+ Config.tcGolem.itemID + ":" + -1 + ";";
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "thaumaturge@" + ids);
|
|
||||||
|
|
||||||
// Add some plants & saplings to Forester's
|
|
||||||
ids = Config.tcPlant.blockID + ":" + "-1" + ";"
|
|
||||||
+ Config.tcLeaf.blockID + ":" + -1 + ";"
|
|
||||||
+ Config.tcLog.blockID + ":" + "-1";
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "forester@" + ids);
|
|
||||||
|
|
||||||
// Add Wisp & brains to Hunter's
|
|
||||||
ids = Config.tcWispEssence.itemID + ":" + -1 + ";"
|
|
||||||
+ Config.tcMiscResource.itemID + ":" + ThaumcraftHelper.MiscResource.ZOMBIE_BRAIN.ordinal();
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "hunter@" + ids);
|
|
||||||
|
|
||||||
// Add Marker, warded stone, candle to builder
|
|
||||||
ids = Config.tcCandle.blockID + ":" + -1 + ";"
|
|
||||||
+ Config.tcMarker.blockID + ":" + -1 + ";"
|
|
||||||
+ Config.tcWarded.blockID + ":" + -1;
|
|
||||||
FMLInterModComms.sendMessage("Forestry", "add-backpack-items", "builder@" + ids);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setupItemAspects()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
setupItemAspectsThaumicBees();
|
|
||||||
setupItemAspectsForestry();
|
|
||||||
if (ExtraBeesHelper.isActive())
|
|
||||||
{
|
|
||||||
setupItemAspectsExtraBees();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupItemAspectsThaumicBees()
|
|
||||||
{
|
|
||||||
ObjectTags tags;
|
|
||||||
ItemStack itemStack;
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.planksWood.blockID, -1, tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.MAGIC, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.wax.itemID, WaxType.MAGIC.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.MAGIC, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.drops.itemID, DropType.ENCHANTED.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.KNOWLEDGE, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.drops.itemID, DropType.INTELLECT.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.ELDRITCH, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.pollen.itemID, PollenType.UNUSUAL.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.TIME, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.pollen.itemID, PollenType.PHASED.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, -1, tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.STARK.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 1).add(EnumTag.WIND, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.AIR.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 1).add(EnumTag.FIRE, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.FIRE.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 1).add(EnumTag.WATER, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.WATER.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 1).add(EnumTag.EARTH, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.EARTH.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.propolis.itemID, -1).add(EnumTag.MAGIC, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.INFUSED.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.KNOWLEDGE, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.miscResources.itemID, ResourceType.LORE_FRAGMENT.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 2).add(EnumTag.TRAP, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, -1, tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.OCCULT.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.OTHERWORLDLY.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.HARMONIZING.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.INFUSED.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 2).add(EnumTag.MOTION, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.AIRY.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 2).add(EnumTag.POWER, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.FIREY.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 2).add(EnumTag.COLD, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.WATERY.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.combs.itemID, -1).add(EnumTag.MAGIC, 2).add(EnumTag.ROCK, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.combs.itemID, CombType.EARTHY.ordinal(), tags);
|
|
||||||
|
|
||||||
// Tagging capsules.
|
|
||||||
tags = new ObjectTags().add(EnumTag.VOID, 2).add(EnumTag.MAGIC, 2);
|
|
||||||
ThaumcraftApi.registerComplexObjectTag(Config.magicCapsule.itemID, LiquidType.EMPTY.ordinal(), tags);
|
|
||||||
|
|
||||||
tags = new ObjectTags(Config.magicCapsule.itemID, LiquidType.EMPTY.ordinal())
|
|
||||||
.add(EnumTag.WATER, 8);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.magicCapsule.itemID, LiquidType.WATER.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Config.magicCapsule.itemID, LiquidType.EMPTY.ordinal())
|
|
||||||
.add(EnumTag.FIRE, 12).add(EnumTag.ROCK, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.magicCapsule.itemID, LiquidType.LAVA.ordinal(), tags);
|
|
||||||
|
|
||||||
for (EnumTag tag : EnumTag.values())
|
|
||||||
{
|
|
||||||
if (tag == EnumTag.UNKNOWN)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
tags = new ObjectTags().add(tag, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(Config.solidFlux.itemID, tag.id, tags);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupItemAspectsForestry()
|
|
||||||
{
|
|
||||||
ObjectTags tags;
|
|
||||||
ItemStack itemStack;
|
|
||||||
|
|
||||||
itemStack = BlockInterface.getBlock("candle");
|
|
||||||
tags = new ObjectTags().add(EnumTag.LIGHT, 1).add(EnumTag.CONTROL, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = BlockInterface.getBlock("glass");
|
|
||||||
tags = new ObjectTags(Block.glass.blockID, 0);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
|
|
||||||
// Pulsating propolis
|
|
||||||
itemStack = ItemInterface.getItem("propolis");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.ELDRITCH, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Propolis.PULSATING.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("pollen");
|
|
||||||
tags = new ObjectTags().add(EnumTag.FLOWER, 1).add(EnumTag.PLANT, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Pollen.NORMAL.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, ForestryHelper.Pollen.NORMAL.ordinal()).add(EnumTag.COLD, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Pollen.CRYSTALLINE.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("craftingMaterial");
|
|
||||||
tags = new ObjectTags().add(EnumTag.ELDRITCH, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.PULSATING_MESH.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.SILK_WISP.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 4).add(EnumTag.CLOTH, 5);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.WOVEN_SILK.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.COLD, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.ICE_SHARD.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.VALUABLE, 1).add(EnumTag.PLANT, 1).add(EnumTag.INSECT, 2)
|
|
||||||
.add(EnumTag.CONTROL, 2).add(EnumTag.WOOD, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.SCENTED_PANELING.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("beealyzer");
|
|
||||||
tags = new ObjectTags().add(EnumTag.VALUABLE, 3).add(EnumTag.MECHANISM, 3).add(EnumTag.METAL, 19)
|
|
||||||
.add(EnumTag.POWER, 8).add(EnumTag.TOOL, 18);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("treealyzer");
|
|
||||||
tags = new ObjectTags().add(EnumTag.POWER, 3).add(EnumTag.PURE, 3).add(EnumTag.LIFE, 6)
|
|
||||||
.add(EnumTag.TOOL, 12).add(EnumTag.METAL, 19);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("apatite");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CRYSTAL, 2).add(EnumTag.POWER, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("impregnatedCasing");
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 28).add(EnumTag.EXCHANGE, 8);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("stickImpregnated");
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 3).add(EnumTag.EXCHANGE, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("peat");
|
|
||||||
tags = new ObjectTags().add(EnumTag.POWER, 2).add(EnumTag.PLANT, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("ash");
|
|
||||||
tags = new ObjectTags().add(EnumTag.DESTRUCTION, 1).add(EnumTag.EXCHANGE, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("honeyDrop");
|
|
||||||
tags = new ObjectTags().add(EnumTag.EXCHANGE, 2).add(EnumTag.LIFE, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("honeydew");
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("royalJelly");
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 2).add(EnumTag.POWER, 1).add(EnumTag.VALUABLE, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("honeyPot");
|
|
||||||
tags = new ObjectTags().add(EnumTag.LIFE, 2);
|
|
||||||
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("ambrosia");
|
|
||||||
tags = new ObjectTags().add(EnumTag.HEAL, 4);
|
|
||||||
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("beeswax");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("refractoryWax");
|
|
||||||
tags = new ObjectTags().add(EnumTag.FIRE, 3);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("phosphor");
|
|
||||||
tags = new ObjectTags().add(EnumTag.FIRE, 2).add(EnumTag.DESTRUCTION, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("waxCapsule");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("waxCapsuleWater");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("refractoryEmpty");
|
|
||||||
tags = new ObjectTags().add(EnumTag.FIRE, 1).add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("refractoryWater");
|
|
||||||
tags = new ObjectTags().add(EnumTag.FIRE, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("refractoryLava");
|
|
||||||
tags = new ObjectTags().add(EnumTag.VOID, 1).add(EnumTag.FIRE, 7).add(EnumTag.WATER, 1).add(EnumTag.ROCK, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("canEmpty");
|
|
||||||
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("canWater");
|
|
||||||
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
itemStack = ItemInterface.getItem("canLava");
|
|
||||||
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1).add(EnumTag.FIRE, 6).add(EnumTag.WATER, 1).add(EnumTag.ROCK, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("beeComb");
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 2).add(EnumTag.TRAP, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.FIRE, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Comb.SIMMERING.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.COLD, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Comb.FROZEN.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.CROP, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Comb.WHEATEN.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.FUNGUS, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Comb.MOSSY.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("ambrosia");
|
|
||||||
tags = new ObjectTags().add(EnumTag.LIFE, 2).add(EnumTag.HEAL, 4);
|
|
||||||
|
|
||||||
// Forestry's wood
|
|
||||||
itemStack = BlockInterface.getBlock("log1");
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
itemStack = BlockInterface.getBlock("log2"); // Same tags
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
itemStack = BlockInterface.getBlock("log3"); // Same tags.
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
itemStack = BlockInterface.getBlock("log4"); // Still same tags.
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("sapling");
|
|
||||||
tags = new ObjectTags().add(EnumTag.PLANT, 4).add(EnumTag.WOOD, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
|
|
||||||
// BEES!
|
|
||||||
itemStack = ItemInterface.getItem("beeDroneGE");
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.FLIGHT, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); // All drones
|
|
||||||
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.VALUABLE, 4); // Get drone tags & add valuable
|
|
||||||
itemStack = ItemInterface.getItem("beePrincessGE");
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); // All princesses.
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.VALUABLE, 8).add(EnumTag.INSECT, 2).add(EnumTag.FLIGHT, 4);
|
|
||||||
itemStack = ItemInterface.getItem("beeQueenGE");
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); //All queens.
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("circuitboards");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CRYSTAL, 2).add(EnumTag.METAL, 5).add(EnumTag.MECHANISM, 10)
|
|
||||||
.add(EnumTag.POWER, 10);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CircuitBoard.BASIC.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.MECHANISM, 10).add(EnumTag.POWER, 10).add(EnumTag.METAL, 14)
|
|
||||||
.add(EnumTag.CONTROL, 2).add(EnumTag.EXCHANGE, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CircuitBoard.ENHANCED.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.MECHANISM, 10).add(EnumTag.POWER, 10).add(EnumTag.METAL, 14);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CircuitBoard.REFINED.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.MECHANISM, 10).add(EnumTag.POWER, 10).add(EnumTag.METAL, 19)
|
|
||||||
.add(EnumTag.VALUABLE, 10);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CircuitBoard.INTRICATE.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ItemInterface.getItem("tubes");
|
|
||||||
tags = new ObjectTags(ItemInterface.getItem("ingotCopper").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.COPPER.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(ItemInterface.getItem("ingotTin").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.TIN.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(ItemInterface.getItem("ingotBronze").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.BRONZE.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.ingotIron.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.IRON.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.ingotGold.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.GOLD.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.diamond.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.DIAMOND.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Block.obsidian.blockID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.OBSIDIAN.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.blazePowder.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.BLAZE.ordinal(), tags);
|
|
||||||
tags = new ObjectTags().add(EnumTag.MOTION, 2).add(EnumTag.CONTROL, 2).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.RUBBER.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.emerald.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.EMERALD.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(ItemInterface.getItem("apatite").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.APATITE.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(Item.dyePowder.itemID, 4).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.LAPIS.ordinal(), tags);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupItemAspectsExtraBees()
|
|
||||||
{
|
|
||||||
ItemStack itemStack;
|
|
||||||
ObjectTags tags;
|
|
||||||
|
|
||||||
try // One try block suffices. If we can't get one item, it's probably safe to assume we can't get any others.
|
|
||||||
{
|
|
||||||
itemStack = ExtraBeesHelper.getExtraBeeItem("comb");
|
|
||||||
tags = new ObjectTags().add(EnumTag.INSECT, 2).add(EnumTag.TRAP, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.POWER, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.OIL.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.COAL.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.FUEL.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.ALCOHOL.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.REDSTONE.ordinal(), tags);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.URANIUM.ordinal(), tags);
|
|
||||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.POISON, 2);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, ExtraBeesHelper.CombType.VENOMOUS.ordinal(), tags);
|
|
||||||
|
|
||||||
itemStack = ExtraBeesHelper.getExtraBeeItem("propolis");
|
|
||||||
tags = new ObjectTags().add(EnumTag.CONTROL, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
|
|
||||||
itemStack = ExtraBeesHelper.getExtraBeeItem("honeyDrop");
|
|
||||||
tags = new ObjectTags().add(EnumTag.EXCHANGE, 2).add(EnumTag.LIFE, 1);
|
|
||||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
|
|
||||||
}
|
|
||||||
catch (NullPointerException e) { }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setupResearch()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
ObjectTags tags;
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 10).add(EnumTag.PLANT, 10).add(EnumTag.INSECT, 10);
|
|
||||||
ResearchItem startNode = new ResearchItem("BEESTARTNODE", tags, 10, 1, Config.miscResources.getStackForType(ResourceType.RESEARCH_STARTNODE))
|
|
||||||
.setParents(ResearchList.getResearch("UTFT"))
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.CROP, 15).add(EnumTag.EARTH, 15).add(EnumTag.WATER, 15);
|
|
||||||
ResearchItem fertilizer = new ResearchItem("FERTILIZER", tags, 16, 0, ItemInterface.getItem("apatite"))
|
|
||||||
.setParents(startNode)
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 6).add(EnumTag.INSECT, 10).add(EnumTag.BEAST, 2)
|
|
||||||
.add(EnumTag.MAGIC, 5);
|
|
||||||
ResearchItem magicFrame = new ResearchItem("HIVEFRAME", tags, 10, -2, Config.hiveFrameMagic)
|
|
||||||
.setParents(startNode)
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 5).add(EnumTag.INSECT, 10).add(EnumTag.ARMOR, 5).add(EnumTag.EXCHANGE, 6)
|
|
||||||
.add(EnumTag.MAGIC, 8);
|
|
||||||
ResearchItem magicFrame2 = new ResearchItem("HIVEFRAME2", tags, 8, -2, Config.hiveFrameResilient)
|
|
||||||
.setParents(magicFrame).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 4).add(EnumTag.INSECT, 10).add(EnumTag.LIFE, 5).add(EnumTag.EXCHANGE, 6)
|
|
||||||
.add(EnumTag.FLOWER, 6);
|
|
||||||
ResearchItem gentleFrame = new ResearchItem("HIVEFRAMEGENTLE", tags, 12, -2, Config.hiveFrameGentle)
|
|
||||||
.setParents(magicFrame).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 4).add(EnumTag.INSECT, 10).add(EnumTag.LIFE, 6).add(EnumTag.EXCHANGE, 8)
|
|
||||||
.add(EnumTag.MAGIC, 8).add(EnumTag.MOTION, 4);
|
|
||||||
ResearchItem metabolicFrame = new ResearchItem("HIVEFRAMEMETA", tags, 9, -3, Config.hiveFrameMetabolic)
|
|
||||||
.setParents(magicFrame).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 5).add(EnumTag.INSECT, 10).add(EnumTag.DEATH, 15).add(EnumTag.EXCHANGE, 6)
|
|
||||||
.add(EnumTag.MAGIC, 8).add(EnumTag.POISON, 6);
|
|
||||||
ResearchItem necroticFrame = new ResearchItem("HIVEFRAMENECRO", tags, 11, -3, Config.hiveFrameNecrotic)
|
|
||||||
.setParents(magicFrame).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.TOOL, 5).add(EnumTag.INSECT, 10).add(EnumTag.TIME, 4);
|
|
||||||
ResearchItem temporalFrame = new ResearchItem("HIVEFRAMETIME", tags, 9, -5, Config.hiveFrameTemporal)
|
|
||||||
.setParents(magicFrame).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.VOID, 15).add(EnumTag.CRYSTAL, 8).add(EnumTag.ELDRITCH, 8).add(EnumTag.EXCHANGE, 15);
|
|
||||||
ResearchItem voidCapsule = new ResearchItem("VOIDCAPSULE", tags, 10, 9, Config.voidCapsule)
|
|
||||||
.setParents(startNode, ResearchList.getResearch("PORTABLEHOLE")).setHidden()
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 8).add(EnumTag.INSECT, 10).add(EnumTag.TOOL, 6).add(EnumTag.MAGIC, 6);
|
|
||||||
ResearchItem scoop = new ResearchItem("THAUMIUMSCOOP", tags, 0, -3, Config.thaumiumScoop)
|
|
||||||
.setParents(ResearchList.getResearch("THAUMIUM"))
|
|
||||||
.registerResearchItem();
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 16).add(EnumTag.PLANT, 20).add(EnumTag.TOOL, 6).add(EnumTag.MAGIC, 6);
|
|
||||||
ResearchItem grafter = new ResearchItem("THAUMIUMGRAFTER", tags, 0, -4, Config.thaumiumGrafter)
|
|
||||||
.setParents(scoop)
|
|
||||||
.registerResearchItem();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void registerResearchXML()
|
|
||||||
{
|
|
||||||
if (isActive())
|
|
||||||
{
|
|
||||||
ThaumcraftApi.registerResearchXML(CommonProxy.TCBEES_RESEARCH + "research.xml");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setupThaumcraftCrafting()
|
|
||||||
{
|
|
||||||
ItemStack input;
|
|
||||||
ItemStack output;
|
|
||||||
|
|
||||||
if (MagicBees.getConfig().UseImpregnatedStickInTools)
|
|
||||||
{
|
|
||||||
input = ItemInterface.getItem("stickImpregnated");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
input = new ItemStack(Item.stick);
|
|
||||||
}
|
|
||||||
|
|
||||||
ThaumcraftApi.addArcaneCraftingRecipe("THAUMIUMSCOOP", "THAUMIUMSCOOP", 45, new ItemStack(Config.thaumiumScoop), new Object[] {
|
|
||||||
"sWs", "sTs", " T ",
|
|
||||||
's', input,
|
|
||||||
'W', Block.cloth,
|
|
||||||
'T', new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.THAUMIUM.ordinal())
|
|
||||||
});
|
|
||||||
|
|
||||||
ThaumcraftApi.addArcaneCraftingRecipe("THAUMIUMGRAFTER", "THAUMIUMGRAFTER", 160, new ItemStack(Config.thaumiumGrafter), new Object[] {
|
|
||||||
" T", " T ", "s ",
|
|
||||||
's', input,
|
|
||||||
'T', new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.THAUMIUM.ordinal())
|
|
||||||
});
|
|
||||||
|
|
||||||
output = Config.miscResources.getStackForType(ResourceType.EXTENDED_FERTILIZER);
|
|
||||||
input = ItemInterface.getItem("apatite");
|
|
||||||
ObjectTags tags = (new ObjectTags()).add(EnumTag.CROP, 12);
|
|
||||||
output.stackSize = 2;
|
|
||||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("FERTILIZER", "FERTILIZER", 5, tags, output, new Object[] {
|
|
||||||
input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameMagic);
|
|
||||||
input = ItemInterface.getItem("frameUntreated");
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4).add(EnumTag.INSECT, 8);
|
|
||||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("HIVEFRAME", "FRAMEMAGIC", 50, tags, output, new Object[] {
|
|
||||||
input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameResilient);
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 12).add(EnumTag.INSECT, 8).add(EnumTag.EXCHANGE, 12);
|
|
||||||
ThaumcraftApi.addInfusionCraftingRecipe("HIVEFRAME2", "FRAMERESILIENT", 50, tags, output, new Object[] {
|
|
||||||
" i ", "ifi", " i ",
|
|
||||||
'f', Config.hiveFrameMagic,
|
|
||||||
'i', Item.ingotIron
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameGentle);
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4).add(EnumTag.INSECT, 8).add(EnumTag.HEAL, 12);
|
|
||||||
ThaumcraftApi.addInfusionCraftingRecipe("HIVEFRAMEGENTLE", "FRAMEGENTLE", 50, tags, output, new Object[] {
|
|
||||||
"www", "wFw", "www",
|
|
||||||
'F', input,
|
|
||||||
'w', ItemInterface.getItem("beeswax")
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameMetabolic);
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4).add(EnumTag.INSECT, 8).add(EnumTag.LIFE, 8).add(EnumTag.MOTION, 8)
|
|
||||||
.add(EnumTag.EXCHANGE, 8);
|
|
||||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("HIVEFRAMEMETA", "FRAMEMETABOLIC", 50, tags, output, new Object[] {
|
|
||||||
Item.magmaCream,
|
|
||||||
input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameNecrotic);
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4).add(EnumTag.INSECT, 8).add(EnumTag.EXCHANGE, 12).add(EnumTag.DEATH, 16)
|
|
||||||
.add(EnumTag.POISON, 1);
|
|
||||||
ThaumcraftApi.addInfusionCraftingRecipe("HIVEFRAMENECRO", "FRAMENECROTIC", 50, tags, output, new Object[] {
|
|
||||||
" S ", "SxS", " S ",
|
|
||||||
'S', Item.rottenFlesh,
|
|
||||||
'x', input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = new ItemStack(Config.hiveFrameTemporal);
|
|
||||||
tags = new ObjectTags().add(EnumTag.WOOD, 4).add(EnumTag.INSECT, 8).add(EnumTag.TIME, 2);
|
|
||||||
ThaumcraftApi.addInfusionCraftingRecipe("HIVEFRAMETIME", "FRAMETIME", 50, tags, output, new Object[] {
|
|
||||||
"tSt", "SFS", "tSt",
|
|
||||||
't', Item.stick,
|
|
||||||
'S', Block.sand,
|
|
||||||
'F', input
|
|
||||||
});
|
|
||||||
|
|
||||||
output = Config.voidCapsule.getCapsuleForLiquid(LiquidType.EMPTY);
|
|
||||||
output.stackSize = 4;
|
|
||||||
tags = new ObjectTags().add(EnumTag.VOID, 16).add(EnumTag.ELDRITCH, 4).add(EnumTag.EXCHANGE, 8);
|
|
||||||
ThaumcraftApi.addInfusionCraftingRecipe("VOIDCAPSULE", "VOIDCAPSULE", 10, tags, output, new Object[] {
|
|
||||||
" G ", "GPG", "TGT",
|
|
||||||
'G', Block.thinGlass,
|
|
||||||
'P', Item.enderPearl,
|
|
||||||
'T', Item.ingotIron
|
|
||||||
});
|
|
||||||
|
|
||||||
ItemStack drone = BeeGenomeManager.getBeeNBTForSpecies(BeeSpecies.TC_STARK, EnumBeeType.DRONE);
|
|
||||||
ItemStack princess = BeeGenomeManager.getBeeNBTForSpecies(BeeSpecies.TC_STARK, EnumBeeType.PRINCESS);
|
|
||||||
|
|
||||||
String researchKey = "BEEINFUSION";
|
|
||||||
|
|
||||||
tags = (new ObjectTags()).add(EnumTag.WIND, 40).add(EnumTag.MOTION, 24);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION1", BeeSpecies.TC_AIR.getBeeItem(EnumBeeType.DRONE),
|
|
||||||
new ItemStack[] { drone, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.AIR.ordinal())},
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION2", BeeSpecies.TC_AIR.getBeeItem(EnumBeeType.PRINCESS),
|
|
||||||
new ItemStack[] { princess , new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.AIR.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
|
|
||||||
tags = (new ObjectTags()).add(EnumTag.FIRE, 40).add( EnumTag.POWER, 24);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION3", BeeSpecies.TC_FIRE.getBeeItem(EnumBeeType.DRONE), new Object[]
|
|
||||||
{ drone, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.FIRE.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION4", BeeSpecies.TC_FIRE.getBeeItem(EnumBeeType.PRINCESS), new Object[]
|
|
||||||
{ princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.FIRE.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
|
|
||||||
tags = (new ObjectTags()).add(EnumTag.WATER, 40).add( EnumTag.COLD, 24);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION5", BeeSpecies.TC_WATER.getBeeItem(EnumBeeType.DRONE), new Object[]
|
|
||||||
{ drone, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.WATER.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION6", BeeSpecies.TC_WATER.getBeeItem(EnumBeeType.PRINCESS), new Object[]
|
|
||||||
{ princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.WATER.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
|
|
||||||
tags = (new ObjectTags()).add(EnumTag.EARTH, 40).add( EnumTag.ROCK, 24);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION7", BeeSpecies.TC_EARTH.getBeeItem(EnumBeeType.DRONE), new Object[]
|
|
||||||
{ drone, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.EARTH.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION8", BeeSpecies.TC_EARTH.getBeeItem(EnumBeeType.PRINCESS), new Object[]
|
|
||||||
{ princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.EARTH.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
|
|
||||||
tags = new ObjectTags().add(EnumTag.MAGIC, 40).add(EnumTag.FLUX, 24);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION9", BeeSpecies.TC_MAGIC.getBeeItem(EnumBeeType.DRONE), new Object[]
|
|
||||||
{ drone, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
ShapelessBeeInfusionCraftingRecipe.createNewRecipe(researchKey, "BEEINFUSION0", BeeSpecies.TC_MAGIC.getBeeItem(EnumBeeType.PRINCESS), new Object[]
|
|
||||||
{ princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal()) },
|
|
||||||
100, tags, BeeSpecies.TC_STARK, EnumBeeChromosome.SPECIES);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,256 +0,0 @@
|
|||||||
package magicbees.tileentity;
|
|
||||||
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.nbt.NBTTagList;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
import forestry.api.apiculture.BeeManager;
|
|
||||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
|
||||||
import forestry.api.apiculture.IBee;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
|
||||||
|
|
||||||
public class TileEntityEffectJar extends TileEntity implements IInventory
|
|
||||||
{
|
|
||||||
public static final String tileEntityName = VersionInfo.ModName.toLowerCase() + ".effectJar";
|
|
||||||
|
|
||||||
private String ownerName;
|
|
||||||
private EffectJarHousing housingLogic;
|
|
||||||
|
|
||||||
private static final int SLOT_COUNT = 2;
|
|
||||||
public static final int DRONE_SLOT = 0;
|
|
||||||
public static final int QUEEN_SLOT = SLOT_COUNT - 1;
|
|
||||||
|
|
||||||
private ItemStack[] beeSlots;
|
|
||||||
private IEffectData[] effectData = new IEffectData[2];
|
|
||||||
|
|
||||||
private int throttle;
|
|
||||||
public int currentBeeHealth;
|
|
||||||
public int currentBeeColour;
|
|
||||||
|
|
||||||
public TileEntityEffectJar()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
this.beeSlots = new ItemStack[SLOT_COUNT];
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOwner(EntityPlayer player)
|
|
||||||
{
|
|
||||||
this.ownerName = player.username;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean shouldRenderInPass(int pass)
|
|
||||||
{
|
|
||||||
return pass == 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOwner()
|
|
||||||
{
|
|
||||||
return this.ownerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getSizeInventory()
|
|
||||||
{
|
|
||||||
// Last slot reserved for "queen"
|
|
||||||
return this.beeSlots.length - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getStackInSlot(int slot)
|
|
||||||
{
|
|
||||||
return beeSlots[slot];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateEntity()
|
|
||||||
{
|
|
||||||
if (this.beeSlots[QUEEN_SLOT] != null)
|
|
||||||
{
|
|
||||||
IBee queen = magicbees.bees.BeeManager.beeRoot.getMember(this.beeSlots[QUEEN_SLOT]);
|
|
||||||
|
|
||||||
currentBeeHealth = (queen.getHealth() * 100) / queen.getMaxHealth();
|
|
||||||
currentBeeColour = ((IAlleleBeeSpecies)queen.getGenome().getPrimary()).getIconColour(0);
|
|
||||||
|
|
||||||
EffectJarHousing housingLogic = EffectJarHousing.getFor(this);
|
|
||||||
this.effectData = queen.doEffect(this.effectData, housingLogic);
|
|
||||||
if (this.worldObj.getWorldTime() % 5 == 0)
|
|
||||||
{
|
|
||||||
this.effectData = queen.doFX(this.effectData, housingLogic);
|
|
||||||
}
|
|
||||||
|
|
||||||
// run the queen
|
|
||||||
if (throttle > 550)
|
|
||||||
{
|
|
||||||
throttle = 0;
|
|
||||||
queen.age(this.worldObj, 0.26f);
|
|
||||||
|
|
||||||
if (queen.getHealth() == 0)
|
|
||||||
{
|
|
||||||
this.beeSlots[QUEEN_SLOT] = null;
|
|
||||||
currentBeeHealth = 0;
|
|
||||||
currentBeeColour = 0x0ffffff;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
queen.writeToNBT(this.beeSlots[QUEEN_SLOT].stackTagCompound);
|
|
||||||
}
|
|
||||||
this.onInventoryChanged();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throttle++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (this.beeSlots[DRONE_SLOT] != null)
|
|
||||||
{
|
|
||||||
// make a queen
|
|
||||||
ItemStack droneStack = this.beeSlots[DRONE_SLOT];
|
|
||||||
if (magicbees.bees.BeeManager.beeRoot.isDrone(droneStack))
|
|
||||||
{
|
|
||||||
IBee bee = magicbees.bees.BeeManager.beeRoot.getMember(droneStack);
|
|
||||||
if (droneStack.stackSize == 1)
|
|
||||||
{
|
|
||||||
this.beeSlots[DRONE_SLOT] = null;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
droneStack.stackSize--;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.beeSlots[QUEEN_SLOT] = droneStack.copy();
|
|
||||||
this.beeSlots[QUEEN_SLOT].stackSize = 1;
|
|
||||||
|
|
||||||
int current = bee.getHealth();
|
|
||||||
int max = bee.getMaxHealth();
|
|
||||||
currentBeeHealth = (current * 100) / max;
|
|
||||||
currentBeeColour = ((IAlleleBeeSpecies)bee.getGenome().getPrimary()).getIconColour(0);
|
|
||||||
}
|
|
||||||
this.onInventoryChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack decrStackSize(int slot, int count)
|
|
||||||
{
|
|
||||||
ItemStack value = null;
|
|
||||||
if (this.beeSlots[slot] != null)
|
|
||||||
{
|
|
||||||
value = this.beeSlots[slot].copy();
|
|
||||||
value.stackSize = Math.min(count, this.beeSlots[slot].stackSize);
|
|
||||||
this.beeSlots[slot].stackSize -= value.stackSize;
|
|
||||||
if (this.beeSlots[slot].stackSize == 0)
|
|
||||||
{
|
|
||||||
this.beeSlots[slot] = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onInventoryChanged();
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getStackInSlotOnClosing(int slot)
|
|
||||||
{
|
|
||||||
ItemStack value = null;
|
|
||||||
if (this.beeSlots[slot] != null)
|
|
||||||
{
|
|
||||||
value = this.beeSlots[slot];
|
|
||||||
this.beeSlots[slot] = null;
|
|
||||||
}
|
|
||||||
onInventoryChanged();
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void readFromNBT(NBTTagCompound tagRoot)
|
|
||||||
{
|
|
||||||
super.readFromNBT(tagRoot);
|
|
||||||
|
|
||||||
NBTTagList nbttaglist = tagRoot.getTagList("Items");
|
|
||||||
this.beeSlots = new ItemStack[SLOT_COUNT];
|
|
||||||
|
|
||||||
for (int i = 0; i < nbttaglist.tagCount(); ++i)
|
|
||||||
{
|
|
||||||
NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
|
|
||||||
byte b0 = nbttagcompound1.getByte("Slot");
|
|
||||||
|
|
||||||
if (b0 >= 0 && b0 < this.beeSlots.length)
|
|
||||||
{
|
|
||||||
this.beeSlots[b0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.currentBeeHealth = tagRoot.getInteger("currentBeeHealth");
|
|
||||||
this.throttle = tagRoot.getInteger("throttle");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void writeToNBT(NBTTagCompound tagRoot)
|
|
||||||
{
|
|
||||||
super.writeToNBT(tagRoot);
|
|
||||||
|
|
||||||
NBTTagList inventory = new NBTTagList();
|
|
||||||
for (int i = 0; i < this.beeSlots.length; ++i)
|
|
||||||
{
|
|
||||||
if (this.beeSlots[i] != null)
|
|
||||||
{
|
|
||||||
NBTTagCompound itemTag = new NBTTagCompound();
|
|
||||||
itemTag.setByte("Slot", (byte)i);
|
|
||||||
this.beeSlots[i].writeToNBT(itemTag);
|
|
||||||
inventory.appendTag(itemTag);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tagRoot.setTag("Items", inventory);
|
|
||||||
tagRoot.setInteger("currentBeeHealth", this.currentBeeHealth);
|
|
||||||
tagRoot.setInteger("throttle", this.throttle);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setInventorySlotContents(int slot, ItemStack itemStack)
|
|
||||||
{
|
|
||||||
this.beeSlots[slot] = itemStack;
|
|
||||||
if (this.beeSlots[slot] != null)
|
|
||||||
{
|
|
||||||
this.beeSlots[slot].stackSize = Math.min(this.beeSlots[slot].stackSize, this.beeSlots[slot].getItem().getItemStackLimit());
|
|
||||||
}
|
|
||||||
onInventoryChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getInvName()
|
|
||||||
{
|
|
||||||
return "container.effectJar";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isInvNameLocalized()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getInventoryStackLimit()
|
|
||||||
{
|
|
||||||
return 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isUseableByPlayer(EntityPlayer entityplayer)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isStackValidForSlot(int i, ItemStack itemStack)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void openChest() { }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void closeChest() { }
|
|
||||||
}
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
package magicbees.world;
|
|
||||||
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.ChunkCoords;
|
|
||||||
import magicbees.world.feature.FeatureHive;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.WorldType;
|
|
||||||
import net.minecraft.world.chunk.IChunkProvider;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.event.ForgeSubscribe;
|
|
||||||
import net.minecraftforge.event.world.ChunkDataEvent;
|
|
||||||
import cpw.mods.fml.common.IWorldGenerator;
|
|
||||||
import cpw.mods.fml.common.registry.TickRegistry;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
|
|
||||||
public class WorldGeneratorHandler implements IWorldGenerator
|
|
||||||
{
|
|
||||||
public WorldTicker ticker;
|
|
||||||
|
|
||||||
public WorldGeneratorHandler()
|
|
||||||
{
|
|
||||||
this.ticker = new WorldTicker(this);
|
|
||||||
TickRegistry.registerTickHandler(this.ticker, Side.SERVER);
|
|
||||||
MinecraftForge.EVENT_BUS.register(this);
|
|
||||||
|
|
||||||
FeatureHive.initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
@ForgeSubscribe
|
|
||||||
public void chunkSaveEventHandler(ChunkDataEvent.Save event)
|
|
||||||
{
|
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
|
||||||
if (MagicBees.getConfig().DoHiveRetrogen)
|
|
||||||
{
|
|
||||||
tag.setBoolean("hiveRetrogen", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
event.getData().setTag("MagicBees", tag);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ForgeSubscribe
|
|
||||||
public void chunkLoadEventHandler(ChunkDataEvent.Load event)
|
|
||||||
{
|
|
||||||
boolean doRetrogen = false;
|
|
||||||
|
|
||||||
NBTTagCompound tag = (NBTTagCompound)event.getData().getTag("MagicBees");
|
|
||||||
if (tag == null)
|
|
||||||
{
|
|
||||||
doRetrogen = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!tag.hasKey("hiveRetrogen") || MagicBees.getConfig().ForceHiveRegen)
|
|
||||||
{
|
|
||||||
doRetrogen = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doRetrogen)
|
|
||||||
{
|
|
||||||
ChunkCoords coords = new ChunkCoords(event.getChunk());
|
|
||||||
ticker.queueChunkCoords(coords);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
|
|
||||||
{
|
|
||||||
generateWorld(world, random, chunkX, chunkZ, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void generateWorld(World world, Random random, int chunkX, int chunkZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
boolean modified = false;
|
|
||||||
|
|
||||||
if (world.provider.terrainType != WorldType.FLAT)
|
|
||||||
{
|
|
||||||
if (initialGen || MagicBees.getConfig().DoHiveRetrogen)
|
|
||||||
{
|
|
||||||
FeatureHive.generateHives(world, random, chunkX, chunkZ, initialGen);
|
|
||||||
modified = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!initialGen && modified)
|
|
||||||
{
|
|
||||||
world.getChunkFromChunkCoords(chunkX, chunkZ).setChunkModified();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
package magicbees.world;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.EnumSet;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import magicbees.main.utils.ChunkCoords;
|
|
||||||
import magicbees.main.utils.VersionInfo;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import cpw.mods.fml.common.ITickHandler;
|
|
||||||
import cpw.mods.fml.common.TickType;
|
|
||||||
|
|
||||||
public class WorldTicker implements ITickHandler
|
|
||||||
{
|
|
||||||
private WorldGeneratorHandler parent;
|
|
||||||
private HashMap<Integer, LinkedList<ChunkCoords>> chunkRegenList;
|
|
||||||
|
|
||||||
public WorldTicker(WorldGeneratorHandler p)
|
|
||||||
{
|
|
||||||
this.parent = p;
|
|
||||||
this.chunkRegenList = new HashMap<Integer, LinkedList<ChunkCoords>>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void tickStart(EnumSet<TickType> type, Object... tickData) { }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void tickEnd(EnumSet<TickType> type, Object... tickData)
|
|
||||||
{
|
|
||||||
World world = (World)tickData[0];
|
|
||||||
int dimensionID = world.provider.dimensionId;
|
|
||||||
LinkedList<ChunkCoords> chunkList = chunkRegenList.get(dimensionID);
|
|
||||||
|
|
||||||
if (chunkList != null && chunkList.size() > 0)
|
|
||||||
{
|
|
||||||
ChunkCoords coords = chunkList.removeFirst();
|
|
||||||
|
|
||||||
// This bit is from FML's GameRegistry.generateWorld where the seed is constructed.
|
|
||||||
long worldSeed = world.getSeed();
|
|
||||||
Random random = new Random(worldSeed);
|
|
||||||
long xSeed = random.nextLong() >> 2 + 1L;
|
|
||||||
long zSeed = random.nextLong() >> 2 + 1L;
|
|
||||||
random.setSeed((xSeed * coords.xCoord + zSeed * coords.zCoord) ^ worldSeed);
|
|
||||||
|
|
||||||
parent.generateWorld(world, random, coords.xCoord, coords.zCoord, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public EnumSet<TickType> ticks()
|
|
||||||
{
|
|
||||||
return EnumSet.of(TickType.WORLD);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getLabel()
|
|
||||||
{
|
|
||||||
return VersionInfo.ModName.toLowerCase() + ".world";
|
|
||||||
}
|
|
||||||
|
|
||||||
public void queueChunkCoords(ChunkCoords coords)
|
|
||||||
{
|
|
||||||
if (!chunkRegenList.containsKey(coords.dimension))
|
|
||||||
{
|
|
||||||
chunkRegenList.put(coords.dimension, new LinkedList<ChunkCoords>());
|
|
||||||
}
|
|
||||||
chunkRegenList.get(coords.dimension).addLast(coords);
|
|
||||||
}
|
|
||||||
|
|
||||||
public LinkedList<ChunkCoords> getChunksToGen(int dimensionId)
|
|
||||||
{
|
|
||||||
return chunkRegenList.get(dimensionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,294 +0,0 @@
|
|||||||
package magicbees.world.feature;
|
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import magicbees.block.types.HiveType;
|
|
||||||
import magicbees.main.Config;
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
|
||||||
import net.minecraftforge.common.BiomeDictionary;
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import forestry.api.core.GlobalManager;
|
|
||||||
|
|
||||||
public class FeatureHive
|
|
||||||
{
|
|
||||||
private static FeatureOreVein redstoneGen;
|
|
||||||
private static FeatureOreVein netherQuartzGen;
|
|
||||||
private static FeatureOreVein glowstoneGen;
|
|
||||||
private static FeatureOreVein endStoneGen;
|
|
||||||
|
|
||||||
private static boolean logSpawns = false;
|
|
||||||
|
|
||||||
public static void initialize()
|
|
||||||
{
|
|
||||||
redstoneGen = new FeatureOreVein(Block.oreRedstone.blockID, Block.stone);
|
|
||||||
netherQuartzGen = new FeatureOreVein(Block.oreNetherQuartz.blockID, Block.netherrack);
|
|
||||||
glowstoneGen = new FeatureOreVein(Block.glowStone.blockID, Block.stone);
|
|
||||||
endStoneGen = new FeatureOreVein(Block.whiteStone.blockID, Block.stone);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void generateHives(World world, Random random, int chunkX, int chunkZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
for (HiveType type : HiveType.values())
|
|
||||||
{
|
|
||||||
type.generateHive(world, random, chunkX, chunkZ, initialGen);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveCurious(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
int coordY = getHeight(world, random, coordX, coordZ);
|
|
||||||
boolean doSpawn = false;
|
|
||||||
|
|
||||||
if (world.isAirBlock(coordX, coordY - 1, coordZ) && world.isAirBlock(coordX, coordY, coordZ) &&
|
|
||||||
GlobalManager.leafBlockIds.contains(world.getBlockId(coordX, coordY + 1, coordZ)) )
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.CURIOUS.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Curious", coordX, coordZ, coordY);
|
|
||||||
doSpawn = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveUnusual(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
int coordY = getHeight(world, random, coordX, coordZ);
|
|
||||||
|
|
||||||
boolean doSpawn = false;
|
|
||||||
if (world.isAirBlock(coordX, coordY + 1, coordZ) && world.isAirBlock(coordX, coordY, coordZ) &&
|
|
||||||
GlobalManager.dirtBlockIds.contains(world.getBlockId(coordX, coordY - 1, coordZ)) )
|
|
||||||
{
|
|
||||||
doSpawn = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.UNUSUAL.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Unusual", coordX, coordZ, coordY);
|
|
||||||
}
|
|
||||||
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveResonant(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
int coordY = getHeight(world, random, coordX, coordZ);
|
|
||||||
boolean doSpawn = false;
|
|
||||||
if (world.isAirBlock(coordX, coordY + 1, coordZ) &&
|
|
||||||
(world.isAirBlock(coordX, coordY, coordZ) || world.getBlockId(coordX, coordY, coordZ) == Block.tallGrass.blockID) &&
|
|
||||||
(GlobalManager.dirtBlockIds.contains(world.getBlockId(coordX, coordY - 1, coordZ)) ||
|
|
||||||
GlobalManager.sandBlockIds.contains(world.getBlockId(coordX, coordY - 1, coordZ))) )
|
|
||||||
{
|
|
||||||
doSpawn = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.RESONANT.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Resonant", coordX, coordZ, coordY);
|
|
||||||
}
|
|
||||||
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveDeep(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
|
|
||||||
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
|
|
||||||
int coordY = 10 + random.nextInt(10);
|
|
||||||
|
|
||||||
boolean doSpawn = false;
|
|
||||||
|
|
||||||
if (random.nextInt(100) < 40 &&
|
|
||||||
!world.isAirBlock(coordX, coordY, coordZ) &&
|
|
||||||
world.getBlockId(coordX, coordY, coordZ) == Block.stone.blockID)
|
|
||||||
{
|
|
||||||
doSpawn = getSurroundCount(world, coordX, coordY, coordZ, Block.stone) >= 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.DEEP.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Deep", coordX, coordZ, coordY);
|
|
||||||
|
|
||||||
|
|
||||||
redstoneGen.generateVein(world, random, coordX + 1, coordY, coordZ, 2);
|
|
||||||
redstoneGen.generateVein(world, random, coordX - 1, coordY, coordZ, 2);
|
|
||||||
redstoneGen.generateVein(world, random, coordX, coordY + 1, coordZ, 2);
|
|
||||||
redstoneGen.generateVein(world, random, coordX, coordY - 1, coordZ, 2);
|
|
||||||
redstoneGen.generateVein(world, random, coordX, coordY, coordZ + 1, 2);
|
|
||||||
redstoneGen.generateVein(world, random, coordX, coordY, coordZ - 1, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveInfernal(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
boolean doSpawn = false;
|
|
||||||
if (!world.provider.isSurfaceWorld())
|
|
||||||
{
|
|
||||||
int chop = random.nextInt(2) + 1;
|
|
||||||
int coordY = random.nextInt(60 / chop) + random.nextInt(chop) * (120 / chop) - 5;
|
|
||||||
|
|
||||||
if (!world.isAirBlock(coordX, coordY, coordZ) && world.getBlockId(coordX, coordY, coordZ) == Block.netherrack.blockID)
|
|
||||||
{
|
|
||||||
doSpawn = getSurroundCount(world, coordX, coordY, coordZ, Block.netherrack) >= 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.INFERNAL.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Infernal", coordX, coordZ, coordY);
|
|
||||||
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX + 1, coordY, coordZ, 4);
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX - 1, coordY, coordZ, 4);
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX, coordY + 1, coordZ, 4);
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX, coordY - 1, coordZ, 4);
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX, coordY, coordZ + 1, 4);
|
|
||||||
netherQuartzGen.generateVein(world, random, coordX, coordY, coordZ - 1, 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
int coordY = random.nextInt(13) + 5;
|
|
||||||
|
|
||||||
if (!world.isAirBlock(coordX, coordY, coordZ) && world.getBlockId(coordX, coordY, coordZ) == Block.stone.blockID)
|
|
||||||
{
|
|
||||||
|
|
||||||
doSpawn = getSurroundCount(world, coordX, coordY, coordZ, Block.stone) >= 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.INFERNAL.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Infernal", coordX, coordZ, coordY);
|
|
||||||
|
|
||||||
glowstoneGen.generateVein(world, random, coordX + 1, coordY, coordZ, 2);
|
|
||||||
glowstoneGen.generateVein(world, random, coordX - 1, coordY, coordZ, 2);
|
|
||||||
if (world.getBlockId(coordX, coordY + 1, coordZ) == Block.stone.blockID ||
|
|
||||||
world.getBlockId(coordX, coordY + 1, coordZ) == Block.netherrack.blockID)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY + 1, coordZ, Block.glowStone.blockID, 0, 3);
|
|
||||||
}
|
|
||||||
if (world.getBlockId(coordX, coordY - 1, coordZ) == Block.stone.blockID ||
|
|
||||||
world.getBlockId(coordX, coordY + 1, coordZ) == Block.netherrack.blockID)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY - 1, coordZ, Block.glowStone.blockID, 0, 3);
|
|
||||||
}
|
|
||||||
glowstoneGen.generateVein(world, random, coordX, coordY, coordZ + 1, 2);
|
|
||||||
glowstoneGen.generateVein(world, random, coordX, coordY, coordZ - 1, 2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean generateHiveOblivion(World world, Random random, int coordX, int coordZ, boolean initialGen)
|
|
||||||
{
|
|
||||||
boolean doSpawn = false;
|
|
||||||
if (!world.provider.isSurfaceWorld())
|
|
||||||
{
|
|
||||||
// 1 per gen
|
|
||||||
int coordY = 10 + random.nextInt(25);
|
|
||||||
|
|
||||||
if (world.isAirBlock(coordX, coordY - 2, coordZ) &&
|
|
||||||
world.getBlockId(coordX, coordY - 1, coordZ) == Block.whiteStone.blockID &&
|
|
||||||
world.getBlockId(coordX, coordY, coordZ) == Block.whiteStone.blockID)
|
|
||||||
{
|
|
||||||
doSpawn = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.OBLIVION.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Oblivion", coordX, coordZ, coordY);
|
|
||||||
|
|
||||||
int obsidianSpikeHeight = random.nextInt(8) + 2;
|
|
||||||
|
|
||||||
for (int i = 1; i < obsidianSpikeHeight && coordY - i > 0; ++i)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY - i, coordZ, Block.obsidian.blockID, 0, 2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 1 per gen
|
|
||||||
int coordY = random.nextInt(5) + 5;
|
|
||||||
|
|
||||||
do
|
|
||||||
{
|
|
||||||
--coordY;
|
|
||||||
|
|
||||||
if (!world.isAirBlock(coordX, coordY, coordZ) && world.getBlockId(coordX, coordY, coordZ) == Block.stone.blockID ||
|
|
||||||
world.getBlockId(coordX, coordY + 1, coordZ) == Block.whiteStone.blockID)
|
|
||||||
{
|
|
||||||
doSpawn = getSurroundCount(world, coordX, coordY, coordZ, Block.whiteStone) >= 5 ||
|
|
||||||
getSurroundCount(world, coordX, coordY, coordZ, Block.stone) >= 5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
while (!doSpawn && coordY > 5);
|
|
||||||
|
|
||||||
if (doSpawn)
|
|
||||||
{
|
|
||||||
world.setBlock(coordX, coordY, coordZ, Config.hive.blockID, HiveType.OBLIVION.ordinal(), 3);
|
|
||||||
if (logSpawns) FMLLog.info("Spawning %s hive at: X %d, Z %d, Y %d", "Oblivion", coordX, coordZ, coordY);
|
|
||||||
|
|
||||||
endStoneGen.generateVein(world, random, coordX + 1, coordY, coordZ, 3);
|
|
||||||
endStoneGen.generateVein(world, random, coordX - 1, coordY, coordZ, 3);
|
|
||||||
endStoneGen.generateVein(world, random, coordX, coordY + 1, coordZ, 2);
|
|
||||||
endStoneGen.generateVein(world, random, coordX, coordY - 1, coordZ, 2);
|
|
||||||
endStoneGen.generateVein(world, random, coordX, coordY, coordZ + 1, 3);
|
|
||||||
endStoneGen.generateVein(world, random, coordX, coordY, coordZ - 1, 3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return doSpawn;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static int getHeight(World world, Random random, int coordX, int coordZ)
|
|
||||||
{
|
|
||||||
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
|
|
||||||
int min = (int)(biome.minHeight * 64 + 62);
|
|
||||||
int max = (int)(biome.maxHeight * 64);
|
|
||||||
// sanity
|
|
||||||
min = (min > 1) ? min : 1;
|
|
||||||
max = (max > 10) ? max : 10;
|
|
||||||
return min + random.nextInt(max);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static int getSurroundCount(World world, int x, int y, int z, Block blockType)
|
|
||||||
{
|
|
||||||
int surroundCount = 0;
|
|
||||||
|
|
||||||
if (world.getBlockId(x+1, y, z) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
if (world.getBlockId(x-1, y, z) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
if (world.getBlockId(x, y+1, z) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
if (world.getBlockId(x, y-1, z) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
if (world.getBlockId(x, y, z+1) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
if (world.getBlockId(x, y, z-1) == blockType.blockID)
|
|
||||||
{
|
|
||||||
++surroundCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
return surroundCount;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
package magicbees.world.feature;
|
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
|
|
||||||
public class FeatureOreVein
|
|
||||||
{
|
|
||||||
private int veinBlockId;
|
|
||||||
private int veinBlockMeta;
|
|
||||||
private int replacesBlockId;
|
|
||||||
|
|
||||||
public FeatureOreVein(int blockId, Block replacesBlock)
|
|
||||||
{
|
|
||||||
this(blockId, 0, replacesBlock);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FeatureOreVein(int blockId, int meta, Block replacesBlock)
|
|
||||||
{
|
|
||||||
this.veinBlockId = blockId;
|
|
||||||
this.veinBlockMeta = meta;
|
|
||||||
this.replacesBlockId = replacesBlock.blockID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void generateVein(World world, Random random, int startX, int startY, int startZ, int maxSpawnCount)
|
|
||||||
{
|
|
||||||
int currentX = startX;
|
|
||||||
int currentY = startY;
|
|
||||||
int currentZ = startZ;
|
|
||||||
int spawnAttempts = 0;
|
|
||||||
int spawnCount = 0;
|
|
||||||
|
|
||||||
while (spawnCount < maxSpawnCount && spawnAttempts < maxSpawnCount * 2)
|
|
||||||
{
|
|
||||||
++spawnAttempts;
|
|
||||||
|
|
||||||
if (!world.isAirBlock(currentX, currentY, currentZ) && world.getBlockId(currentX, currentY, currentZ) == replacesBlockId)
|
|
||||||
{
|
|
||||||
world.setBlock(currentX, currentY, currentZ, this.veinBlockId, this.veinBlockMeta, 2);
|
|
||||||
++spawnCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (random.nextInt(6))
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
++currentY;
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
--currentY;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
++currentZ;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
--currentZ;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
++currentX;
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
--currentX;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Submodule
+1
Submodule src/api/java/thaumcraft/api added at 4120e665c9.
@@ -0,0 +1,9 @@
|
|||||||
|
package magicbees.api;
|
||||||
|
|
||||||
|
import magicbees.api.bees.ITransmutationEffectController;
|
||||||
|
|
||||||
|
public class MagicBeesAPI
|
||||||
|
{
|
||||||
|
// Use this object during or after the Mod.Init phase to add your logic to the Transmutation bee effect.
|
||||||
|
public static ITransmutationEffectController transmutationEffectController;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package magicbees.api.bees;
|
||||||
|
|
||||||
|
public interface IAuraChargeType {
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package magicbees.api.bees;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows a tile entity to provide a Magic Apiary with 'aura' to boost bee production, mutation rate,
|
||||||
|
* or decrease bee lifespan.
|
||||||
|
*
|
||||||
|
* @author MysteriousAges
|
||||||
|
*/
|
||||||
|
public interface IMagicApiaryAuraProvider {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requests a mutation charge from the aura provider. If true is returned, the
|
||||||
|
* aura provider should decrement its internal charge by one. If there are no
|
||||||
|
* charges remaining, it should return false.
|
||||||
|
*
|
||||||
|
* @return True if a charge is given; false otherwise.
|
||||||
|
*/
|
||||||
|
boolean getMutationCharge();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requests a mutation charge from the aura provider. If true is returned, the
|
||||||
|
* aura provider should decrement its internal charge by one. If there are no
|
||||||
|
* charges remaining, it should return false.
|
||||||
|
*
|
||||||
|
* @return True if a charge is given; false otherwise.
|
||||||
|
*/
|
||||||
|
boolean getDeathRateCharge();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requests a mutation charge from the aura provider. If true is returned, the
|
||||||
|
* aura provider should decrement its internal charge by one. If there are no
|
||||||
|
* charges remaining, it should return false.
|
||||||
|
*
|
||||||
|
* @return True if a charge is given; false otherwise.
|
||||||
|
*/
|
||||||
|
boolean getProductionCharge();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requests a mutation charge from the aura provider. If true is returned, the
|
||||||
|
* aura provider should decrement its internal charge by one. If there are no
|
||||||
|
* charges remaining, it should return false.
|
||||||
|
*
|
||||||
|
* @return True if a charge is given; false otherwise.
|
||||||
|
*/
|
||||||
|
boolean getCharge(IAuraChargeType auraChargeType);
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package magicbees.api.bees;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manages adding custom ITransmutationEffectLogic instances into the bee effect
|
||||||
|
* system.
|
||||||
|
*
|
||||||
|
* @author MysteriousAges
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface ITransmutationEffectController
|
||||||
|
{
|
||||||
|
public void addEffectLogic(ITransmutationEffectLogic logic);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package magicbees.api.bees;
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class to control plugin logic for the Transmutation bee effect. Turns blocks
|
||||||
|
* into other blocks based on biome, time of day, or whatever is deemed
|
||||||
|
* appropriate at the time.
|
||||||
|
*
|
||||||
|
* @author MysteriousAges
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface ITransmutationEffectLogic
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Allows an external mod to add transmutation logic to the Transmuting bee effect.
|
||||||
|
* Called from a list of ITransmutationEffectLogic until one returns true. You can
|
||||||
|
* implement more than one transmutation effect in a single implementation of the
|
||||||
|
* interface. Function checks for a series of conditions based on block ID/meta, or
|
||||||
|
* biome information, or world information.
|
||||||
|
*
|
||||||
|
* @param world World object
|
||||||
|
* @param biome Biome information for current coordinates
|
||||||
|
* @param sourceBlock ItemStack representing the block at current coordinates
|
||||||
|
* @param x Current X coordinate to attempt a transmute
|
||||||
|
* @param y Current Y coordinate to attempt a transmute
|
||||||
|
* @param z Current Z coordinate to attempt a transmute
|
||||||
|
* @return true if a block was changed.
|
||||||
|
*/
|
||||||
|
public boolean tryTransmutation(World world, BiomeGenBase biome, ItemStack sourceBlock, int x, int y, int z);
|
||||||
|
}
|
||||||
+61
-27
@@ -3,9 +3,10 @@ package magicbees.bees;
|
|||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
import magicbees.main.utils.compat.ArsMagicaHelper;
|
import magicbees.main.utils.compat.ArsMagicaHelper;
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
import magicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
|
import magicbees.main.utils.compat.ThermalExpansionHelper;
|
||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
|
import forestry.api.apiculture.IAlleleBeeEffect;
|
||||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||||
import forestry.api.apiculture.IBeeRoot;
|
|
||||||
import forestry.api.genetics.AlleleManager;
|
import forestry.api.genetics.AlleleManager;
|
||||||
import forestry.api.genetics.IAllele;
|
import forestry.api.genetics.IAllele;
|
||||||
import forestry.api.genetics.IAlleleEffect;
|
import forestry.api.genetics.IAlleleEffect;
|
||||||
@@ -16,6 +17,8 @@ public class Allele implements IAllele
|
|||||||
{
|
{
|
||||||
public static AlleleFloat speedBlinding;
|
public static AlleleFloat speedBlinding;
|
||||||
|
|
||||||
|
public static IAlleleBeeEffect forestryBaseEffect;
|
||||||
|
|
||||||
public static IAlleleFlowers flowerBookshelf;
|
public static IAlleleFlowers flowerBookshelf;
|
||||||
public static IAlleleFlowers flowerThaumcraft;
|
public static IAlleleFlowers flowerThaumcraft;
|
||||||
public static IAlleleFlowers flowerArsMagica;
|
public static IAlleleFlowers flowerArsMagica;
|
||||||
@@ -26,6 +29,9 @@ public class Allele implements IAllele
|
|||||||
public static IAlleleEffect effectMoveSpeed;
|
public static IAlleleEffect effectMoveSpeed;
|
||||||
public static IAlleleEffect effectSlowSpeed;
|
public static IAlleleEffect effectSlowSpeed;
|
||||||
public static IAlleleEffect effectWithering;
|
public static IAlleleEffect effectWithering;
|
||||||
|
public static IAlleleEffect effectTransmuting;
|
||||||
|
public static IAlleleEffect effectCrumbling;
|
||||||
|
public static IAlleleEffect effectInvisibility;
|
||||||
|
|
||||||
public static IAlleleEffect spawnBrainyZombie;
|
public static IAlleleEffect spawnBrainyZombie;
|
||||||
public static IAlleleEffect spawnWisp;
|
public static IAlleleEffect spawnWisp;
|
||||||
@@ -33,16 +39,19 @@ public class Allele implements IAllele
|
|||||||
public static IAlleleEffect spawnGhast;
|
public static IAlleleEffect spawnGhast;
|
||||||
public static IAlleleEffect spawnSpider;
|
public static IAlleleEffect spawnSpider;
|
||||||
public static IAlleleEffect spawnBlaze;
|
public static IAlleleEffect spawnBlaze;
|
||||||
|
public static IAlleleEffect spawnBlizz;
|
||||||
public static IAlleleEffect spawnManaDrainer;
|
public static IAlleleEffect spawnManaDrainer;
|
||||||
public static IAlleleEffect spawnWispOrHecate;
|
public static IAlleleEffect spawnWispOrHecate;
|
||||||
|
|
||||||
public static IAlleleEffect effectNodeAttract;
|
/*public static IAlleleEffect effectNodeAttract;
|
||||||
public static IAlleleEffect effectNodePurify;
|
public static IAlleleEffect effectNodePurify;
|
||||||
public static IAlleleEffect effectNodeFlux;
|
public static IAlleleEffect effectNodeFlux;
|
||||||
public static IAlleleEffect effectNodeCharge;
|
public static IAlleleEffect effectNodeCharge;*/
|
||||||
|
|
||||||
public static void setupAdditionalAlleles()
|
public static void setupAdditionalAlleles()
|
||||||
{
|
{
|
||||||
|
forestryBaseEffect = (IAlleleBeeEffect)getBaseAllele("effectNone");
|
||||||
|
|
||||||
Allele.speedBlinding = new AlleleFloat("speedBlinding", 2f, false);
|
Allele.speedBlinding = new AlleleFloat("speedBlinding", 2f, false);
|
||||||
|
|
||||||
Allele.flowerBookshelf = new AlleleFlower("Bookshelf", new FlowerProviderBookshelf(), true);
|
Allele.flowerBookshelf = new AlleleFlower("Bookshelf", new FlowerProviderBookshelf(), true);
|
||||||
@@ -53,18 +62,17 @@ public class Allele implements IAllele
|
|||||||
Allele.flowerAuraNode = new AlleleFlower("AuraNode", new FlowerProviderAuraNode(), true);
|
Allele.flowerAuraNode = new AlleleFlower("AuraNode", new FlowerProviderAuraNode(), true);
|
||||||
|
|
||||||
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("Brainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID)
|
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("Brainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID)
|
||||||
.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
||||||
|
|
||||||
Allele.spawnBats = new AlleleEffectSpawnMob("Batty", false, ThaumcraftHelper.Entity.FIREBAT.entityID)
|
Allele.spawnBats = new AlleleEffectSpawnMob("Batty", false, ThaumcraftHelper.Entity.FIREBAT.entityID)
|
||||||
.setThrottle(300).setSpawnsOnPlayerNear("Bat");
|
.setThrottle(300).setSpawnsOnPlayerNear("Bat");
|
||||||
|
|
||||||
Allele.spawnWisp = new AlleleEffectSpawnWisp("Wispy", false, ThaumcraftHelper.Entity.WISP.entityID, "thaumcraft.wisplive")
|
Allele.spawnWisp = new AlleleEffectSpawnWisp("Wispy", false, ThaumcraftHelper.Entity.WISP.entityID, "thaumcraft.wisplive")
|
||||||
.setThrottle(1800).setChanceToSpawn(79);
|
.setThrottle(1800).setChanceToSpawn(79);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Allele.flowerThaumcraft = Allele.flowerAuraNode = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
Allele.flowerThaumcraft = Allele.flowerAuraNode = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
||||||
Allele.spawnBrainyZombie = Allele.spawnBats = Allele.spawnWisp = (IAlleleEffect)Allele.getBaseAllele("effectNone");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ArsMagicaHelper.isActive())
|
if (ArsMagicaHelper.isActive())
|
||||||
@@ -72,11 +80,11 @@ public class Allele implements IAllele
|
|||||||
Allele.flowerArsMagica = new AlleleFlower("flowerArsMagicaPlant", new FlowerProviderArsMagicaFlower(), false);
|
Allele.flowerArsMagica = new AlleleFlower("flowerArsMagicaPlant", new FlowerProviderArsMagicaFlower(), false);
|
||||||
//String id, boolean isDominant, int throttle, String[] mobs, int[] chance
|
//String id, boolean isDominant, int throttle, String[] mobs, int[] chance
|
||||||
Allele.spawnManaDrainer = new AlleleEffectSpawnMobWeighted("ManaDrain", true, 20,
|
Allele.spawnManaDrainer = new AlleleEffectSpawnMobWeighted("ManaDrain", true, 20,
|
||||||
new String[] { "ArsMagica.MobManaCreeper", "ArsMagica.ManaVortex" },
|
new String[] { ArsMagicaHelper.Name + ".MobManaCreeper", ArsMagicaHelper.Name + ".ManaVortex" },
|
||||||
new int[] { 60, 2 });
|
new int[] { 60, 2 });
|
||||||
|
|
||||||
Allele.spawnWispOrHecate = new AlleleEffectSpawnMobWeighted("AMWisp", true, 20,
|
Allele.spawnWispOrHecate = new AlleleEffectSpawnMobWeighted("AMWisp", true, 20,
|
||||||
new String[] { "ArsMagica.MobWisp", "ArsMagica.MobHecate" },
|
new String[] { ArsMagicaHelper.Name + ".MobWisp", ArsMagicaHelper.Name + ".MobHecate" },
|
||||||
new int[] { 40, 3 });
|
new int[] { 40, 3 });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -85,25 +93,40 @@ public class Allele implements IAllele
|
|||||||
Allele.spawnManaDrainer = Allele.spawnWispOrHecate = (IAlleleEffect)Allele.getBaseAllele("effectNone");
|
Allele.spawnManaDrainer = Allele.spawnWispOrHecate = (IAlleleEffect)Allele.getBaseAllele("effectNone");
|
||||||
}
|
}
|
||||||
|
|
||||||
Allele.effectNodeAttract = new AlleleEffectAuraNodeAttract("NodeAttract", false, 400);
|
/*Allele.effectNodeAttract = new AlleleEffectAuraNodeAttract("NodeAttract", false, 400);
|
||||||
Allele.effectNodePurify = new AlleleEffectAuraNodePurify("NodePurify", false, 600, 150);
|
Allele.effectNodePurify = new AlleleEffectAuraNodePurify("NodePurify", false, 600, 150);
|
||||||
Allele.effectNodeFlux = new AlleleEffectAuraNodeFlux("NodeFlux", true, 300, 300);
|
Allele.effectNodeFlux = new AlleleEffectAuraNodeFlux("NodeFlux", true, 300, 300);
|
||||||
Allele.effectNodeCharge = new AlleleEffectAuraNodeCharge("NodeCharge", true, 1200);
|
Allele.effectNodeCharge = new AlleleEffectAuraNodeCharge("NodeCharge", true, 1200);*/
|
||||||
|
|
||||||
|
if (ThermalExpansionHelper.isActive())
|
||||||
|
{
|
||||||
|
Allele.spawnBlizz = new AlleleEffectSpawnMob("TEBlizzy", true, ThermalExpansionHelper.Entity.BLIZZ.entityID)
|
||||||
|
.setThrottle(100).setChanceToSpawn(80);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Allele.spawnBlizz = (IAlleleEffect)Allele.getBaseAllele("effectNone");
|
||||||
|
}
|
||||||
|
|
||||||
Allele.effectCleansing = new AlleleEffectCure("Curative", false);
|
Allele.effectCleansing = new AlleleEffectCure("Curative", false);
|
||||||
Allele.effectDigSpeed = new AlleleEffectPotion("DigSpeed", Potion.digSpeed, 15, false);
|
Allele.effectDigSpeed = new AlleleEffectPotion("DigSpeed", Potion.digSpeed, 15, false);
|
||||||
Allele.effectMoveSpeed = new AlleleEffectPotion("MoveSpeed", Potion.moveSpeed, 10, false);
|
Allele.effectMoveSpeed = new AlleleEffectPotion("MoveSpeed", Potion.moveSpeed, 10, false);
|
||||||
Allele.effectSlowSpeed = new AlleleEffectPotion("SlowSpeed", Potion.moveSlowdown, 3, false).setMalicious();
|
Allele.effectSlowSpeed = new AlleleEffectPotion("SlowSpeed", Potion.moveSlowdown, 3, false).setMalicious();
|
||||||
Allele.effectWithering = new AlleleEffectPotion("Withering", Potion.wither, 10, false).setMalicious();
|
Allele.effectWithering = new AlleleEffectPotion("Withering", Potion.wither, 10, false).setMalicious();
|
||||||
|
|
||||||
|
Allele.effectTransmuting = new AlleleEffectTransmuting("Transmuting", true);
|
||||||
|
Allele.effectCrumbling = new AlleleEffectCrumbling("Crumbling", true);
|
||||||
|
|
||||||
|
Allele.effectInvisibility = new AlleleEffectPotion("Invisibility", Potion.invisibility, 10, false);
|
||||||
|
|
||||||
Allele.spawnGhast = new AlleleEffectSpawnMob("Ghastly", false, "Ghast", "mob.ghast.moan")
|
Allele.spawnGhast = new AlleleEffectSpawnMob("Ghastly", false, "Ghast", "mob.ghast.moan")
|
||||||
.setThrottle(2060).setChanceToSpawn(10).setMaxMobsInSpawnZone(1);
|
.setThrottle(2060).setChanceToSpawn(10).setMaxMobsInSpawnZone(1);
|
||||||
|
|
||||||
Allele.spawnSpider = new AlleleEffectSpawnMob("Spidery", false, "Spider", "mob.spider.step")
|
Allele.spawnSpider = new AlleleEffectSpawnMob("Spidery", false, "Spider", "mob.spider.step")
|
||||||
.setThrottle(400).setChanceToSpawn(70).setMaxMobsInSpawnZone(4);
|
.setThrottle(400).setChanceToSpawn(70).setMaxMobsInSpawnZone(4);
|
||||||
|
|
||||||
Allele.spawnBlaze = new AlleleEffectSpawnMob("Ablaze", false, "Blaze", "mob.blaze.breathe")
|
Allele.spawnBlaze = new AlleleEffectSpawnMob("Ablaze", false, "Blaze", "mob.blaze.breathe")
|
||||||
.setThrottle(800).setChanceToSpawn(60).setMaxMobsInSpawnZone(2);
|
.setThrottle(800).setChanceToSpawn(60).setMaxMobsInSpawnZone(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerDeprecatedAlleleReplacements()
|
public static void registerDeprecatedAlleleReplacements()
|
||||||
@@ -113,10 +136,14 @@ public class Allele implements IAllele
|
|||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.fertilityHighDominant", Allele.getBaseAllele("fertilityHigh"));
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.fertilityHighDominant", Allele.getBaseAllele("fertilityHigh"));
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.flowerflowerBookshelf", flowerBookshelf);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.flowerflowerBookshelf", flowerBookshelf);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speedBlinding", speedBlinding);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speedBlinding", speedBlinding);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeAttract", effectNodeAttract);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeAttract", Allele.getBaseAllele("effectBeatific"));
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodePurify", effectNodePurify);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodePurify", Allele.getBaseAllele("effectBeatific"));
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeFlux", effectNodeFlux);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeFlux", Allele.getBaseAllele("effectBeatific"));
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeCharge", effectNodeCharge);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectNodeCharge", Allele.getBaseAllele("effectBeatific"));
|
||||||
|
registry.registerDeprecatedAlleleReplacement("magicbees.effectNodeAttract", Allele.getBaseAllele("effectBeatific"));
|
||||||
|
registry.registerDeprecatedAlleleReplacement("magicbees.effectNodePurify", Allele.getBaseAllele("effectBeatific"));
|
||||||
|
registry.registerDeprecatedAlleleReplacement("magicbees.effectNodeFlux", Allele.getBaseAllele("effectBeatific"));
|
||||||
|
registry.registerDeprecatedAlleleReplacement("magicbees.effectNodeCharge", Allele.getBaseAllele("effectBeatific"));
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectCurative", effectCleansing);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effectCurative", effectCleansing);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effecteffectDigSpeed", effectDigSpeed);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effecteffectDigSpeed", effectDigSpeed);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.effecteffectMoveSpeed", effectMoveSpeed);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.effecteffectMoveSpeed", effectMoveSpeed);
|
||||||
@@ -150,15 +177,15 @@ public class Allele implements IAllele
|
|||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesDiamond", BeeSpecies.DIAMOND);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesDiamond", BeeSpecies.DIAMOND);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesEmerald", BeeSpecies.EMERALD);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesEmerald", BeeSpecies.EMERALD);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesApatite", BeeSpecies.APATITE);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesApatite", BeeSpecies.APATITE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesStark", BeeSpecies.TC_STARK);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesStark", BeeSpecies.TC_CHAOS);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesAura", BeeSpecies.TC_AIR);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesAura", BeeSpecies.TC_AIR);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesIgnis", BeeSpecies.TC_FIRE);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesIgnis", BeeSpecies.TC_FIRE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesAqua", BeeSpecies.TC_WATER);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesAqua", BeeSpecies.TC_WATER);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesSolum", BeeSpecies.TC_EARTH);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesSolum", BeeSpecies.TC_EARTH);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesPraecantatio", BeeSpecies.TC_MAGIC);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesPraecantatio", BeeSpecies.TC_ORDER);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesVis", BeeSpecies.TC_VIS);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesVis", BeeSpecies.TC_VIS);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesPure", BeeSpecies.TC_PURE);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesPure", BeeSpecies.TC_PURE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesFlux", BeeSpecies.TC_FLUX);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesFlux", BeeSpecies.TC_TAINT);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesNode", BeeSpecies.TC_ATTRACT);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesNode", BeeSpecies.TC_ATTRACT);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesRejuvenating", BeeSpecies.TC_REJUVENATING);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesRejuvenating", BeeSpecies.TC_REJUVENATING);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesBrainy", BeeSpecies.TC_BRAINY);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesBrainy", BeeSpecies.TC_BRAINY);
|
||||||
@@ -178,7 +205,8 @@ public class Allele implements IAllele
|
|||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesBlitz", BeeSpecies.AM_LIGHTNING);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesBlitz", BeeSpecies.AM_LIGHTNING);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesStaude", BeeSpecies.AM_PLANT);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesStaude", BeeSpecies.AM_PLANT);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesEis", BeeSpecies.AM_ICE);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesEis", BeeSpecies.AM_ICE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesMagma", BeeSpecies.AM_MAGMA);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesMagma", BeeSpecies.AM_FIRE);
|
||||||
|
registry.registerDeprecatedAlleleReplacement("magicbees.speciesMagma", BeeSpecies.AM_FIRE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesArkanen", BeeSpecies.AM_ARCANE);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesArkanen", BeeSpecies.AM_ARCANE);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesVortex", BeeSpecies.AM_VORTEX);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesVortex", BeeSpecies.AM_VORTEX);
|
||||||
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesWight", BeeSpecies.AM_WIGHT);
|
registry.registerDeprecatedAlleleReplacement("thaumicbees.speciesWight", BeeSpecies.AM_WIGHT);
|
||||||
@@ -186,12 +214,12 @@ public class Allele implements IAllele
|
|||||||
|
|
||||||
public static IAlleleBeeSpecies getBaseSpecies(String name)
|
public static IAlleleBeeSpecies getBaseSpecies(String name)
|
||||||
{
|
{
|
||||||
return (IAlleleBeeSpecies) AlleleManager.alleleRegistry.getAllele((new StringBuilder()).append("forestry.species").append(name).toString());
|
return (IAlleleBeeSpecies)AlleleManager.alleleRegistry.getAllele((new StringBuilder()).append("forestry.species").append(name).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IAlleleBeeSpecies getExtraSpecies(String name)
|
public static IAlleleBeeSpecies getExtraSpecies(String name)
|
||||||
{
|
{
|
||||||
return (IAlleleBeeSpecies) AlleleManager.alleleRegistry.getAllele((new StringBuilder()).append("extrabees.species.").append(name).toString());
|
return (IAlleleBeeSpecies)AlleleManager.alleleRegistry.getAllele((new StringBuilder()).append("extrabees.species.").append(name.toLowerCase()).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IAllele getBaseAllele(String name)
|
public static IAllele getBaseAllele(String name)
|
||||||
@@ -232,4 +260,10 @@ public class Allele implements IAllele
|
|||||||
return LocalizationManager.getLocalizedString(getUID());
|
return LocalizationManager.getLocalizedString(getUID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getUnlocalizedName()
|
||||||
|
{
|
||||||
|
return this.uid;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+2
-17
@@ -2,14 +2,9 @@ package magicbees.bees;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
|
||||||
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.world.World;
|
|
||||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
import forestry.api.apiculture.IAlleleBeeEffect;
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
@@ -50,7 +45,6 @@ public abstract class AlleleEffect extends Allele implements IAlleleBeeEffect
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param genome
|
* @param genome
|
||||||
* @param storedData
|
* @param storedData
|
||||||
* @param housing
|
* @param housing
|
||||||
@@ -61,16 +55,7 @@ public abstract class AlleleEffect extends Allele implements IAlleleBeeEffect
|
|||||||
@Override
|
@Override
|
||||||
public IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
public IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
{
|
{
|
||||||
int[] area = genome.getTerritory();
|
return Allele.forestryBaseEffect.doFX(genome, storedData, housing);
|
||||||
float mod = housing.getTerritoryModifier(genome, 1f);
|
|
||||||
// Check to make sure territory is at least 1 with housing modifications
|
|
||||||
area[0] = Math.max((int)(area[0] * mod), 1);
|
|
||||||
area[1] = Math.max((int)(area[1] * mod), 1);
|
|
||||||
area[2] = Math.max((int)(area[2] * mod), 1);
|
|
||||||
|
|
||||||
MagicBees.proxy.drawBeeEffects(housing.getWorld(), housing.getXCoord(), housing.getYCoord(), housing.getZCoord(),
|
|
||||||
genome.getPrimary().getIconColour(0), area[0], area[1], area[2]);
|
|
||||||
return storedData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected List<Entity> getEntitiesWithinRange(IBeeGenome genome, IBeeHousing housing)
|
protected List<Entity> getEntitiesWithinRange(IBeeGenome genome, IBeeHousing housing)
|
||||||
@@ -90,7 +75,7 @@ public abstract class AlleleEffect extends Allele implements IAlleleBeeEffect
|
|||||||
min[2] = housing.getZCoord() - area[2] / 2;
|
min[2] = housing.getZCoord() - area[2] / 2;
|
||||||
max[2] = housing.getZCoord() + area[2] / 2;
|
max[2] = housing.getZCoord() + area[2] / 2;
|
||||||
|
|
||||||
AxisAlignedBB bounds = AxisAlignedBB.getAABBPool().getAABB(min[0], min[1], min[2], max[0], max[1], max[2]);
|
AxisAlignedBB bounds = AxisAlignedBB.getBoundingBox(min[0], min[1], min[2], max[0], max[1], max[2]);
|
||||||
return housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, bounds);
|
return housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
package magicbees.bees;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectCrumbling extends AlleleEffect
|
||||||
|
{
|
||||||
|
private static HashMap<ItemStack, ItemStack> crumbleMap = new HashMap<ItemStack, ItemStack>();
|
||||||
|
|
||||||
|
public static void addPairToMap(ItemStack source, ItemStack target)
|
||||||
|
{
|
||||||
|
boolean add = true;
|
||||||
|
for (ItemStack i : crumbleMap.keySet())
|
||||||
|
{
|
||||||
|
if (OreDictionary.itemMatches(i, source, false))
|
||||||
|
{
|
||||||
|
add = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (add)
|
||||||
|
{
|
||||||
|
crumbleMap.put(source, target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public AlleleEffectCrumbling(String id, boolean isDominant)
|
||||||
|
{
|
||||||
|
super(id, isDominant, 600);
|
||||||
|
|
||||||
|
addPairToMap(new ItemStack(Blocks.stone), new ItemStack(Blocks.cobblestone));
|
||||||
|
addPairToMap(new ItemStack(Blocks.cobblestone), new ItemStack(Blocks.mossy_cobblestone));
|
||||||
|
addPairToMap(new ItemStack(Blocks.stonebrick, 1, 0), new ItemStack(Blocks.stonebrick, 1, 2));
|
||||||
|
addPairToMap(new ItemStack(Blocks.stonebrick, 1, 2), new ItemStack(Blocks.stonebrick, 1, 1));
|
||||||
|
addPairToMap(new ItemStack(Blocks.cobblestone_wall), new ItemStack(Blocks.cobblestone_wall, 1, 1));
|
||||||
|
addPairToMap(new ItemStack(Blocks.gravel), new ItemStack(Blocks.sand));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null || !(storedData instanceof magicbees.bees.EffectData))
|
||||||
|
{
|
||||||
|
storedData = new magicbees.bees.EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
World world = housing.getWorld();
|
||||||
|
// Get random coords within territory
|
||||||
|
int xRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
|
||||||
|
int yRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
|
||||||
|
int zRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
|
||||||
|
|
||||||
|
int xCoord = housing.getXCoord() + world.rand.nextInt(xRange) - xRange / 2;
|
||||||
|
int yCoord = housing.getYCoord() + world.rand.nextInt(yRange) - yRange / 2;
|
||||||
|
int zCoord = housing.getZCoord() + world.rand.nextInt(zRange) - zRange / 2;
|
||||||
|
|
||||||
|
Block block = world.getBlock(xCoord, yCoord, zCoord);
|
||||||
|
if (block != null)
|
||||||
|
{
|
||||||
|
ItemStack source = new ItemStack(block, 1, world.getBlockMetadata(xCoord, yCoord, zCoord));
|
||||||
|
for (ItemStack key : crumbleMap.keySet())
|
||||||
|
{
|
||||||
|
if (OreDictionary.itemMatches(source, key, false))
|
||||||
|
{
|
||||||
|
ItemStack target = crumbleMap.get(key);
|
||||||
|
world.setBlock(xCoord, yCoord, zCoord, Block.getBlockFromItem(target.getItem()),
|
||||||
|
target.getItemDamage(), 2);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
storedData.setInteger(0, 0);
|
||||||
|
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+2
-8
@@ -2,18 +2,12 @@ package magicbees.bees;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
import magicbees.main.MagicBees;
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.PotionEffect;
|
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
|
||||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.genetics.AlleleManager;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
public class AlleleEffectCure extends AlleleEffect
|
public class AlleleEffectCure extends AlleleEffect
|
||||||
@@ -44,7 +38,7 @@ public class AlleleEffectCure extends AlleleEffect
|
|||||||
if (e instanceof EntityPlayer)
|
if (e instanceof EntityPlayer)
|
||||||
{
|
{
|
||||||
EntityPlayer player = (EntityPlayer)e;
|
EntityPlayer player = (EntityPlayer)e;
|
||||||
player.curePotionEffects(new ItemStack(Item.bucketMilk));
|
player.curePotionEffects(new ItemStack(Items.milk_bucket));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
storedData.setInteger(0, 0);
|
storedData.setInteger(0, 0);
|
||||||
-3
@@ -7,11 +7,8 @@ import net.minecraft.entity.Entity;
|
|||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
|
||||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.genetics.AlleleManager;
|
|
||||||
import forestry.api.genetics.IEffectData;
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
public class AlleleEffectPotion extends AlleleEffect
|
public class AlleleEffectPotion extends AlleleEffect
|
||||||
+7
-9
@@ -2,7 +2,6 @@ package magicbees.bees;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
import magicbees.item.ItemArmorApiarist;
|
import magicbees.item.ItemArmorApiarist;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityList;
|
import net.minecraft.entity.EntityList;
|
||||||
@@ -10,7 +9,6 @@ import net.minecraft.entity.EntityLiving;
|
|||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.genetics.IEffectData;
|
import forestry.api.genetics.IEffectData;
|
||||||
@@ -43,7 +41,7 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
@Override
|
@Override
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
{
|
{
|
||||||
if (storedData == null)
|
if (storedData == null || !(storedData instanceof magicbees.bees.EffectData))
|
||||||
{
|
{
|
||||||
// Throttle; Ready to spawn
|
// Throttle; Ready to spawn
|
||||||
storedData = new EffectData(1, 1, 0);
|
storedData = new EffectData(1, 1, 0);
|
||||||
@@ -128,23 +126,23 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
EntityLiving mob;
|
EntityLiving mob;
|
||||||
if (spawnAlternate && this.alternateMob != null)
|
if (spawnAlternate && this.alternateMob != null)
|
||||||
{
|
{
|
||||||
mob = (EntityLiving) EntityList.createEntityByName(this.alternateMob, world);
|
mob = (EntityLiving)EntityList.createEntityByName(this.alternateMob, world);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mob = (EntityLiving) EntityList.createEntityByName(this.mobName, world);
|
mob = (EntityLiving)EntityList.createEntityByName(this.mobName, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mob != null)
|
if (mob != null)
|
||||||
{
|
{
|
||||||
double pos[] = this.randomMobSpawnCoords(world, bee, housing);
|
double pos[] = this.randomMobSpawnCoords(world, bee, housing);
|
||||||
|
|
||||||
int entitiesCount = world.getEntitiesWithinAABB(mob.getClass(),
|
int entitiesCount = world.getEntitiesWithinAABB(mob.getClass(),
|
||||||
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
|
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
|
||||||
.expand(8.0D, 4.0D, 8.0D)).size();
|
.expand(8.0D, 4.0D, 8.0D)).size();
|
||||||
|
|
||||||
mob.setPositionAndRotation(pos[0], pos[1], pos[2], world.rand.nextFloat() * 360f, 0f);
|
mob.setPositionAndRotation(pos[0], pos[1], pos[2], world.rand.nextFloat() * 360f, 0f);
|
||||||
|
|
||||||
if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere())
|
if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere())
|
||||||
{
|
{
|
||||||
spawnedFlag = world.spawnEntityInWorld(mob);
|
spawnedFlag = world.spawnEntityInWorld(mob);
|
||||||
+3
-4
@@ -1,10 +1,9 @@
|
|||||||
package magicbees.bees;
|
package magicbees.bees;
|
||||||
|
|
||||||
import net.minecraft.entity.EntityList;
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.entity.EntityList;
|
||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import forestry.api.apiculture.IAlleleBeeEffect;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.genetics.IEffectData;
|
import forestry.api.genetics.IEffectData;
|
||||||
@@ -28,7 +27,7 @@ public class AlleleEffectSpawnMobWeighted extends AlleleEffect
|
|||||||
@Override
|
@Override
|
||||||
public IEffectData validateStorage(IEffectData storedData)
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
{
|
{
|
||||||
if (storedData == null)
|
if (storedData == null || !(storedData instanceof magicbees.bees.EffectData))
|
||||||
{
|
{
|
||||||
storedData = new EffectData(1, 0, 0);
|
storedData = new EffectData(1, 0, 0);
|
||||||
}
|
}
|
||||||
@@ -55,7 +54,7 @@ public class AlleleEffectSpawnMobWeighted extends AlleleEffect
|
|||||||
|
|
||||||
for (int i = 0; i < this.spawnChance.length && !flag; ++i)
|
for (int i = 0; i < this.spawnChance.length && !flag; ++i)
|
||||||
{
|
{
|
||||||
roll = 100 - w.rand.nextInt(100)+1;
|
roll = 100 - w.rand.nextInt(100) + 1;
|
||||||
if (roll < this.spawnChance[i])
|
if (roll < this.spawnChance[i])
|
||||||
{
|
{
|
||||||
flag = true;
|
flag = true;
|
||||||
+8
-8
@@ -2,9 +2,6 @@ package magicbees.bees;
|
|||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
|
||||||
import magicbees.item.ItemArmorApiarist;
|
import magicbees.item.ItemArmorApiarist;
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
import magicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
import net.minecraft.entity.EntityList;
|
import net.minecraft.entity.EntityList;
|
||||||
@@ -12,11 +9,13 @@ import net.minecraft.entity.EntityLiving;
|
|||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
|
||||||
public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
||||||
{
|
{
|
||||||
|
|
||||||
private byte[] wispTypes = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47 };
|
private byte[] wispTypes = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47 };
|
||||||
|
|
||||||
public AlleleEffectSpawnWisp(String id, boolean isDominant, String mobToSpawn, String soundToPlay)
|
public AlleleEffectSpawnWisp(String id, boolean isDominant, String mobToSpawn, String soundToPlay)
|
||||||
{
|
{
|
||||||
@@ -31,16 +30,16 @@ public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
|||||||
EntityLiving mob;
|
EntityLiving mob;
|
||||||
if (spawnAlternate && this.alternateMob != null)
|
if (spawnAlternate && this.alternateMob != null)
|
||||||
{
|
{
|
||||||
mob = (EntityLiving) EntityList.createEntityByName(this.alternateMob, world);
|
mob = (EntityLiving)EntityList.createEntityByName(this.alternateMob, world);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mob = (EntityLiving) EntityList.createEntityByName(this.mobName, world);
|
mob = (EntityLiving)EntityList.createEntityByName(this.mobName, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mob != null)
|
if (mob != null)
|
||||||
{
|
{
|
||||||
double pos[] = this.randomMobSpawnCoords(world, bee, housing);
|
double pos[] = this.randomMobSpawnCoords(world, bee, housing);
|
||||||
|
|
||||||
int entitiesCount = world.getEntitiesWithinAABB(mob.getClass(),
|
int entitiesCount = world.getEntitiesWithinAABB(mob.getClass(),
|
||||||
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
|
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
|
||||||
@@ -57,7 +56,8 @@ public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
|||||||
Field type = wispEntity.getDeclaredField("type");
|
Field type = wispEntity.getDeclaredField("type");
|
||||||
type.setByte(mob, wispTypes[world.rand.nextInt(wispTypes.length)]);
|
type.setByte(mob, wispTypes[world.rand.nextInt(wispTypes.length)]);
|
||||||
}
|
}
|
||||||
catch (Exception e) { /*Last time I had a request to post error messages, I regretted it.*/ }
|
catch (Exception e)
|
||||||
|
{ /*Last time I had a request to post error messages, I regretted it.*/ }
|
||||||
|
|
||||||
spawnedFlag = world.spawnEntityInWorld(mob);
|
spawnedFlag = world.spawnEntityInWorld(mob);
|
||||||
if (this.aggosOnPlayer && player != null)
|
if (this.aggosOnPlayer && player != null)
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package magicbees.bees;
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectTransmuting extends AlleleEffect
|
||||||
|
{
|
||||||
|
public AlleleEffectTransmuting(String id, boolean isDominant)
|
||||||
|
{
|
||||||
|
super(id, isDominant, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null || !(storedData instanceof magicbees.bees.EffectData))
|
||||||
|
{
|
||||||
|
storedData = new magicbees.bees.EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected IEffectData doEffectThrottled(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
World world = housing.getWorld();
|
||||||
|
// Get random coords within territory
|
||||||
|
int xRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
|
||||||
|
int yRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
|
||||||
|
int zRange = (int)(housing.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
|
||||||
|
|
||||||
|
int xCoord = housing.getXCoord() + world.rand.nextInt(xRange) - xRange / 2;
|
||||||
|
int yCoord = housing.getYCoord() + world.rand.nextInt(yRange) - yRange / 2;
|
||||||
|
int zCoord = housing.getZCoord() + world.rand.nextInt(zRange) - zRange / 2;
|
||||||
|
|
||||||
|
BiomeGenBase biome = world.getBiomeGenForCoords(xCoord, zCoord);
|
||||||
|
TransmutationEffectController.instance.attemptTransmutations(world, biome,
|
||||||
|
new ItemStack(world.getBlock(xCoord, yCoord, zCoord), 1, world.getBlockMetadata(xCoord, yCoord, zCoord)),
|
||||||
|
xCoord, yCoord, zCoord);
|
||||||
|
|
||||||
|
storedData.setInteger(0, 0);
|
||||||
|
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,22 @@
|
|||||||
|
package magicbees.bees;
|
||||||
|
|
||||||
|
import magicbees.api.bees.IAuraChargeType;
|
||||||
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
|
||||||
|
public enum AuraChargeType implements IAuraChargeType {
|
||||||
|
MUTATION(Aspect.WATER, 850, 11),
|
||||||
|
DEATH(Aspect.ENTROPY, 400, 5),
|
||||||
|
PRODUCTION(Aspect.AIR, 300, 3);
|
||||||
|
|
||||||
|
public final int duration;
|
||||||
|
public final Aspect aspect;
|
||||||
|
/** The number of ticks to count between draining vis from the environment **/
|
||||||
|
public final int tickRate;
|
||||||
|
public final int flag = 1 << ordinal();
|
||||||
|
|
||||||
|
AuraChargeType(Aspect aspect, int duration, int tickRate) {
|
||||||
|
this.aspect = aspect;
|
||||||
|
this.duration = duration;
|
||||||
|
this.tickRate = tickRate;
|
||||||
|
}
|
||||||
|
}
|
||||||
+24
-20
@@ -3,37 +3,41 @@ package magicbees.bees;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
|
||||||
|
|
||||||
import forestry.api.genetics.AlleleManager;
|
import forestry.api.genetics.AlleleManager;
|
||||||
import forestry.api.genetics.IAlleleSpecies;
|
import forestry.api.genetics.IAlleleSpecies;
|
||||||
import forestry.api.genetics.IClassification;
|
import forestry.api.genetics.IClassification;
|
||||||
|
|
||||||
public enum BeeClassification implements IClassification
|
public enum BeeClassification implements IClassification
|
||||||
{
|
{
|
||||||
VEILED("Veiled", "velata"),
|
VEILED("Veiled", "Velatapis"),
|
||||||
ARCANE("Arcane", "arcanus"),
|
ARCANE("Arcane", "Arcanapis"),
|
||||||
SUPERNATURAL("Supernatural", "occultus"),
|
SUPERNATURAL("Supernatural", "Occultapis"),
|
||||||
SCHOLARLY("Scholarly", "docto"),
|
SCHOLARLY("Scholarly", "Doctapis"),
|
||||||
SKULKING("Skulking", "malevolens"),
|
SKULKING("Skulking", "Malevolenapis"),
|
||||||
MAGICAL("Magic", "magica"),
|
MAGICAL("Magic", "Magicapis"),
|
||||||
TIME("Time", "tempestivus"),
|
TIME("Time", "Tempestivapis"),
|
||||||
SOUL("Soul", "animus"),
|
SOUL("Soul", "Animapis"),
|
||||||
|
|
||||||
ABOMINABLE("Abominable", "detestabilis"),
|
ABOMINABLE("Abominable", "Detestabilapis"),
|
||||||
EXTRINSIC("Extrinsic", "extrarius"),
|
EXTRINSIC("Extrinsic", "Extrarapis"),
|
||||||
|
|
||||||
METALLIC("Metallic", "metallicis"),
|
METALLIC("Metallic", "Metalliapis"),
|
||||||
GEM("Gem", "lapidi"),
|
GEM("Gem", "Lapidapis"),
|
||||||
|
TRANSMUTING("Transmuting", "Transmutapis"),
|
||||||
|
|
||||||
THAUMIC("Thaumic", "thaumis"),
|
THAUMIC("Thaumic", "Thaumiapis"),
|
||||||
FLESHY("Fleshy", "carnosa"),
|
FLESHY("Fleshy", "Carnosapis"),
|
||||||
|
|
||||||
ALCHEMICAL("Alchemical", "alchimia"),
|
ALCHEMICAL("Alchemical", "Alchimiapis"),
|
||||||
|
|
||||||
ESSENTIAL("Essential", "essentia"),
|
ESSENTIAL("Essential", "Essentiapis"),
|
||||||
|
|
||||||
|
THERMAL("Thermal", "Thermametallic"),
|
||||||
|
ADORABLE("Adorable", "Amabilis"),
|
||||||
|
|
||||||
|
BLOODY("Bloody", "Sanguis"),
|
||||||
|
|
||||||
|
BOTANICAL("Botanical", "Botanica"),
|
||||||
;
|
;
|
||||||
|
|
||||||
private String uID;
|
private String uID;
|
||||||
+432
-224
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,84 @@
|
|||||||
|
package magicbees.bees;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import magicbees.block.types.HiveType;
|
||||||
|
import magicbees.item.types.DropType;
|
||||||
|
import magicbees.main.Config;
|
||||||
|
import magicbees.main.utils.Tuple;
|
||||||
|
import magicbees.main.utils.compat.ExtraBeesHelper;
|
||||||
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||||
|
import forestry.api.apiculture.IBeeRoot;
|
||||||
|
import forestry.api.genetics.AlleleManager;
|
||||||
|
|
||||||
|
public class BeeManager
|
||||||
|
{
|
||||||
|
public static IBeeRoot beeRoot;
|
||||||
|
|
||||||
|
private static List<Tuple<IAlleleBeeSpecies, Double>> worldgenSpeciesWeights = new ArrayList<Tuple<IAlleleBeeSpecies, Double>>();
|
||||||
|
private static double worldgenSpeciesWeightsTotal = 0;
|
||||||
|
|
||||||
|
public static void ititializeBees()
|
||||||
|
{
|
||||||
|
beeRoot = (IBeeRoot)AlleleManager.alleleRegistry.getSpeciesRoot("rootBees");
|
||||||
|
|
||||||
|
Allele.setupAdditionalAlleles();
|
||||||
|
BeeSpecies.setupBeeSpecies();
|
||||||
|
Allele.registerDeprecatedAlleleReplacements();
|
||||||
|
BeeMutation.setupMutations();
|
||||||
|
|
||||||
|
HiveType.initHiveData();
|
||||||
|
|
||||||
|
beeRoot.setResearchSuitability(Config.drops.getStackForType(DropType.INTELLECT), 0.5f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAlleleBeeSpecies getRandomWorldgenSpecies(Random r) {
|
||||||
|
Collections.shuffle(worldgenSpeciesWeights);
|
||||||
|
double value = r.nextDouble() * worldgenSpeciesWeightsTotal;
|
||||||
|
IAlleleBeeSpecies species = Allele.getBaseSpecies("Forest");
|
||||||
|
|
||||||
|
for (Tuple<IAlleleBeeSpecies, Double> t : worldgenSpeciesWeights) {
|
||||||
|
value -= t.right.doubleValue();
|
||||||
|
if (value <= 0.0) {
|
||||||
|
species = t.left;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return species;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void addWorldgenSpeciesWeight(IAlleleBeeSpecies species, double d) {
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(species, d));
|
||||||
|
worldgenSpeciesWeightsTotal += d;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void populateSpeciesListRarity() {
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Forest"), 20.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Meadows"), 20.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Tropical"), 10.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Modest"), 16.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Wintry"), 10.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getBaseSpecies("Ended"), 0.5));
|
||||||
|
|
||||||
|
if (ExtraBeesHelper.isActive()) {
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getExtraSpecies("Water"), 12.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getExtraSpecies("Rocky"), 16.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(Allele.getExtraSpecies("Embittered"), 10.0));
|
||||||
|
}
|
||||||
|
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.MYSTICAL, 20.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.UNUSUAL, 20.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.SORCEROUS, 13.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.ATTUNED, 6.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.INFERNAL, 10.0));
|
||||||
|
worldgenSpeciesWeights.add(new Tuple<IAlleleBeeSpecies, Double>(BeeSpecies.OBLIVION, 1.0));
|
||||||
|
|
||||||
|
for (Tuple<IAlleleBeeSpecies, Double> t : worldgenSpeciesWeights) {
|
||||||
|
worldgenSpeciesWeightsTotal += t.right.doubleValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+143
-155
@@ -3,33 +3,33 @@ package magicbees.bees;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import thaumcraft.api.aura.EnumNodeType;
|
|
||||||
|
|
||||||
import magicbees.main.Config;
|
import magicbees.main.Config;
|
||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
|
import magicbees.main.utils.LogHelper;
|
||||||
import magicbees.main.utils.MoonPhase;
|
import magicbees.main.utils.MoonPhase;
|
||||||
import magicbees.main.utils.compat.ArsMagicaHelper;
|
import magicbees.main.utils.compat.ArsMagicaHelper;
|
||||||
import magicbees.main.utils.compat.EquivalentExchangeHelper;
|
import magicbees.main.utils.compat.EquivalentExchangeHelper;
|
||||||
import magicbees.main.utils.compat.ExtraBeesHelper;
|
import magicbees.main.utils.compat.ExtraBeesHelper;
|
||||||
import magicbees.main.utils.compat.ForestryHelper;
|
import magicbees.main.utils.compat.ForestryHelper;
|
||||||
|
import magicbees.main.utils.compat.RedstoneArsenalHelper;
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
import magicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
|
import magicbees.main.utils.compat.ThermalExpansionHelper;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.common.BiomeDictionary;
|
import net.minecraftforge.common.BiomeDictionary;
|
||||||
import net.minecraftforge.common.BiomeDictionary.Type;
|
import net.minecraftforge.common.BiomeDictionary.Type;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
import cpw.mods.fml.common.FMLLog;
|
|
||||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.apiculture.IBeeMutation;
|
import forestry.api.apiculture.IBeeMutation;
|
||||||
import forestry.api.apiculture.IBeeRoot;
|
import forestry.api.apiculture.IBeeRoot;
|
||||||
import forestry.api.core.BlockInterface;
|
|
||||||
import forestry.api.genetics.IAllele;
|
import forestry.api.genetics.IAllele;
|
||||||
import forestry.api.genetics.IGenome;
|
import forestry.api.genetics.IGenome;
|
||||||
|
|
||||||
public class BeeMutation implements IBeeMutation
|
public class BeeMutation implements IBeeMutation
|
||||||
{
|
{
|
||||||
public static void setupMutations()
|
public static void setupMutations()
|
||||||
{
|
{
|
||||||
IAlleleBeeSpecies baseA, baseB;
|
IAlleleBeeSpecies baseA, baseB;
|
||||||
@@ -51,11 +51,14 @@ public class BeeMutation implements IBeeMutation
|
|||||||
{
|
{
|
||||||
for (String str : binnieMundane)
|
for (String str : binnieMundane)
|
||||||
{
|
{
|
||||||
FMLLog.info("Registering %s", str);
|
LogHelper.info("Registering " + str);
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
new BeeMutation(species, Allele.getExtraSpecies(str), ForestryHelper.getTemplateForestryForSpecies("Common"), 15);
|
new BeeMutation(species, Allele.getExtraSpecies(str), ForestryHelper.getTemplateForestryForSpecies("Common"), 15);
|
||||||
} catch (Exception e) {
|
}
|
||||||
FMLLog.info("Unable to register! This mutation will not be available.");
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
LogHelper.info("Unable to register! This mutation will not be available.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -66,23 +69,23 @@ public class BeeMutation implements IBeeMutation
|
|||||||
new BeeMutation(Allele.getBaseSpecies("Cultivated"), BeeSpecies.ELDRITCH, BeeSpecies.ESOTERIC, 10);
|
new BeeMutation(Allele.getBaseSpecies("Cultivated"), BeeSpecies.ELDRITCH, BeeSpecies.ESOTERIC, 10);
|
||||||
new BeeMutation(BeeSpecies.ELDRITCH, BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 8);
|
new BeeMutation(BeeSpecies.ELDRITCH, BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 8);
|
||||||
new BeeMutation(BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, BeeSpecies.ARCANE, 8)
|
new BeeMutation(BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, BeeSpecies.ARCANE, 8)
|
||||||
.setMoonPhaseBonus(MoonPhase.WAXING_CRESCENT, MoonPhase.WAXING_GIBBOUS, 1.2f);
|
.setMoonPhaseBonus(MoonPhase.WAXING_CRESCENT, MoonPhase.WAXING_GIBBOUS, 1.2f);
|
||||||
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Cultivated"), BeeSpecies.ELDRITCH, BeeSpecies.CHARMED, 10);
|
new BeeMutation(Allele.getBaseSpecies("Cultivated"), BeeSpecies.ELDRITCH, BeeSpecies.CHARMED, 10);
|
||||||
new BeeMutation(BeeSpecies.ELDRITCH, BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, 8);
|
new BeeMutation(BeeSpecies.ELDRITCH, BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, 8);
|
||||||
new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 8)
|
new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 8)
|
||||||
.setMoonPhaseBonus(MoonPhase.WANING_GIBBOUS, MoonPhase.WANING_CRESCENT, 1.2f);
|
.setMoonPhaseBonus(MoonPhase.WANING_GIBBOUS, MoonPhase.WANING_CRESCENT, 1.2f);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, 7);
|
new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, 7);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.WINDY, 14)
|
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.WINDY, 14)
|
||||||
.setBlockRequired(18);
|
.setBlockRequired(Blocks.leaves);
|
||||||
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.WATERY, 14)
|
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.WATERY, 14)
|
||||||
.setBlockRequired(Block.waterStill);
|
.setBlockRequired(Blocks.water);
|
||||||
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.EARTHY, 100)//14)
|
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.EARTHY, 100)//14)
|
||||||
.setBlockRequired(Block.brick);
|
.setBlockRequired(Blocks.brick_block);
|
||||||
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.FIREY, 14)
|
new BeeMutation(BeeSpecies.SUPERNATURAL, BeeSpecies.ETHEREAL, BeeSpecies.FIREY, 14)
|
||||||
.setBlockRequired(Block.lavaStill);
|
.setBlockRequired(Blocks.lava);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.ATTUNED, BeeSpecies.AWARE, 10);
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.ATTUNED, BeeSpecies.AWARE, 10);
|
||||||
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.AWARE, BeeSpecies.SPIRIT, 8);
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.AWARE, BeeSpecies.SPIRIT, 8);
|
||||||
@@ -98,36 +101,42 @@ public class BeeMutation implements IBeeMutation
|
|||||||
new BeeMutation(BeeSpecies.TIMELY, BeeSpecies.LORDLY, BeeSpecies.DOCTORAL, 7);
|
new BeeMutation(BeeSpecies.TIMELY, BeeSpecies.LORDLY, BeeSpecies.DOCTORAL, 7);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.INFERNAL, BeeSpecies.ELDRITCH, BeeSpecies.HATEFUL, 9)
|
new BeeMutation(BeeSpecies.INFERNAL, BeeSpecies.ELDRITCH, BeeSpecies.HATEFUL, 9)
|
||||||
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
new BeeMutation(BeeSpecies.INFERNAL, BeeSpecies.HATEFUL, BeeSpecies.SPITEFUL, 7)
|
new BeeMutation(BeeSpecies.INFERNAL, BeeSpecies.HATEFUL, BeeSpecies.SPITEFUL, 7)
|
||||||
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.SPITEFUL, BeeSpecies.WITHERING, 6)
|
new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.SPITEFUL, BeeSpecies.WITHERING, 6)
|
||||||
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Modest"), BeeSpecies.ELDRITCH, BeeSpecies.SKULKING, 12);
|
new BeeMutation(Allele.getBaseSpecies("Modest"), BeeSpecies.ELDRITCH, BeeSpecies.SKULKING, 12);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Tropical"), BeeSpecies.SKULKING, BeeSpecies.SPIDERY, 10);
|
new BeeMutation(Allele.getBaseSpecies("Tropical"), BeeSpecies.SKULKING, BeeSpecies.SPIDERY, 10);
|
||||||
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.ETHEREAL, BeeSpecies.GHASTLY, 9);
|
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.ETHEREAL, BeeSpecies.GHASTLY, 9);
|
||||||
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.HATEFUL, BeeSpecies.SMOULDERING, 7)
|
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.HATEFUL, BeeSpecies.SMOULDERING, 7)
|
||||||
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.OBLIVION, BeeSpecies.NAMELESS, 10);
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.OBLIVION, BeeSpecies.NAMELESS, 10);
|
||||||
new BeeMutation(BeeSpecies.OBLIVION, BeeSpecies.NAMELESS, BeeSpecies.ABANDONED, 8);
|
new BeeMutation(BeeSpecies.OBLIVION, BeeSpecies.NAMELESS, BeeSpecies.ABANDONED, 8);
|
||||||
new BeeMutation(BeeSpecies.NAMELESS, BeeSpecies.ABANDONED, BeeSpecies.FORLORN, 6);
|
new BeeMutation(BeeSpecies.NAMELESS, BeeSpecies.ABANDONED, BeeSpecies.FORLORN, 6);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Imperial"), BeeSpecies.ABANDONED, BeeSpecies.DRACONIC, 6)
|
new BeeMutation(Allele.getBaseSpecies("Imperial"), BeeSpecies.ABANDONED, BeeSpecies.DRACONIC, 6)
|
||||||
.setBiomeRequired(BiomeDictionary.Type.END);
|
.setBiomeRequired(BiomeDictionary.Type.END);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.UNUSUAL, BeeSpecies.ELDRITCH, BeeSpecies.MUTABLE, 12);
|
||||||
|
new BeeMutation(BeeSpecies.UNUSUAL, BeeSpecies.MUTABLE, BeeSpecies.TRANSMUTING, 9);
|
||||||
|
new BeeMutation(BeeSpecies.UNUSUAL, BeeSpecies.MUTABLE, BeeSpecies.CRUMBLING, 9);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.MYSTICAL, BeeSpecies.MUTABLE, BeeSpecies.INVISIBLE, 15);
|
||||||
|
|
||||||
if (BeeSpecies.COPPER.isActive())
|
if (BeeSpecies.COPPER.isActive())
|
||||||
{
|
{
|
||||||
new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Meadows"), BeeSpecies.COPPER, 12)
|
new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Meadows"), BeeSpecies.COPPER, 12)
|
||||||
.setBlockRequired("blockCopper");
|
.setBlockRequired("blockCopper");
|
||||||
}
|
}
|
||||||
if (BeeSpecies.TIN.isActive())
|
if (BeeSpecies.TIN.isActive())
|
||||||
{
|
{
|
||||||
new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Forest"), BeeSpecies.TIN, 12)
|
new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Forest"), BeeSpecies.TIN, 12)
|
||||||
.setBlockRequired("blockTin");
|
.setBlockRequired("blockTin");
|
||||||
}
|
}
|
||||||
new BeeMutation(Allele.getBaseSpecies("Common"), Allele.getBaseSpecies("Industrious"), BeeSpecies.IRON, 10)
|
new BeeMutation(Allele.getBaseSpecies("Common"), Allele.getBaseSpecies("Industrious"), BeeSpecies.IRON, 12)
|
||||||
.setBlockRequired(Block.blockIron);
|
.setBlockRequired(Blocks.iron_block);
|
||||||
if (BeeSpecies.LEAD.isActive())
|
if (BeeSpecies.LEAD.isActive())
|
||||||
{
|
{
|
||||||
baseA = (BeeSpecies.TIN.isActive()) ? BeeSpecies.TIN : (BeeSpecies.COPPER.isActive()) ? BeeSpecies.COPPER : BeeSpecies.IRON;
|
baseA = (BeeSpecies.TIN.isActive()) ? BeeSpecies.TIN : (BeeSpecies.COPPER.isActive()) ? BeeSpecies.COPPER : BeeSpecies.IRON;
|
||||||
@@ -148,64 +157,63 @@ public class BeeMutation implements IBeeMutation
|
|||||||
baseA = (BeeSpecies.EE_MINIUM.isActive()) ? BeeSpecies.EE_MINIUM : Allele.getBaseSpecies("Imperial");
|
baseA = (BeeSpecies.EE_MINIUM.isActive()) ? BeeSpecies.EE_MINIUM : Allele.getBaseSpecies("Imperial");
|
||||||
baseB = (BeeSpecies.LEAD.isActive()) ? BeeSpecies.LEAD : BeeSpecies.IRON;
|
baseB = (BeeSpecies.LEAD.isActive()) ? BeeSpecies.LEAD : BeeSpecies.IRON;
|
||||||
new BeeMutation(baseA, baseB, BeeSpecies.GOLD, 8)
|
new BeeMutation(baseA, baseB, BeeSpecies.GOLD, 8)
|
||||||
.setBlockRequired(Block.blockGold);
|
.setBlockRequired(Blocks.gold_block);
|
||||||
|
|
||||||
|
if (BeeSpecies.ALUMINUM.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Cultivated"), BeeSpecies.ALUMINUM, 10)
|
||||||
|
.setBlockRequired("blockAluminum");
|
||||||
|
}
|
||||||
|
if (BeeSpecies.ARDITE.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.INFERNAL, BeeSpecies.ARDITE, 9)
|
||||||
|
.setBlockRequired("blockArdite");
|
||||||
|
}
|
||||||
|
if (BeeSpecies.COBALT.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(Allele.getBaseSpecies("Imperial"), BeeSpecies.INFERNAL, BeeSpecies.COBALT, 9)
|
||||||
|
.setBlockRequired("blockCobalt");
|
||||||
|
}
|
||||||
|
if (BeeSpecies.MANYULLYN.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(BeeSpecies.ARDITE, BeeSpecies.COBALT, BeeSpecies.MANYULLYN, 9)
|
||||||
|
.setBlockRequired("blockManyullyn");
|
||||||
|
}
|
||||||
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Austere"), BeeSpecies.GOLD, BeeSpecies.DIAMOND, 7)
|
new BeeMutation(Allele.getBaseSpecies("Austere"), BeeSpecies.GOLD, BeeSpecies.DIAMOND, 7)
|
||||||
.setBlockRequired(Block.blockDiamond);
|
.setBlockRequired(Blocks.diamond_block);
|
||||||
baseA = (BeeSpecies.SILVER.isActive()) ? BeeSpecies.SILVER : Allele.getBaseSpecies("Imperial");
|
baseA = (BeeSpecies.SILVER.isActive()) ? BeeSpecies.SILVER : Allele.getBaseSpecies("Imperial");
|
||||||
new BeeMutation(Allele.getBaseSpecies("Austere"), baseA, BeeSpecies.EMERALD, 6)
|
new BeeMutation(Allele.getBaseSpecies("Austere"), baseA, BeeSpecies.EMERALD, 6)
|
||||||
.setBlockRequired(Block.blockEmerald);
|
.setBlockRequired(Blocks.emerald_block);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Rural"), BeeSpecies.COPPER, BeeSpecies.APATITE, 12)
|
new BeeMutation(Allele.getBaseSpecies("Rural"), BeeSpecies.COPPER, BeeSpecies.APATITE, 12)
|
||||||
.setBlockRequired("oreApatite");
|
.setBlockRequired("blockApatite");
|
||||||
|
|
||||||
if (ThaumcraftHelper.isActive())
|
if (ThaumcraftHelper.isActive())
|
||||||
{
|
{
|
||||||
BeeSpecies[] speciesList = new BeeSpecies[] {BeeSpecies.WINDY, BeeSpecies.FIREY, BeeSpecies.WATERY, BeeSpecies.EARTHY};
|
|
||||||
|
|
||||||
for (int a = 0; a < speciesList.length; ++a)
|
|
||||||
{
|
|
||||||
for (int b = a + 1; b < speciesList.length; ++b)
|
|
||||||
{
|
|
||||||
new BeeMutation(speciesList[a], speciesList[b], BeeSpecies.TC_STARK, 8)
|
|
||||||
.setBlockRequired(Config.tcCrystal)
|
|
||||||
.setBlockRequiredNameOverride("research.block.crystals");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.WINDY, BeeSpecies.WINDY, BeeSpecies.TC_AIR, 8)
|
new BeeMutation(BeeSpecies.WINDY, BeeSpecies.WINDY, BeeSpecies.TC_AIR, 8)
|
||||||
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.AIR.ordinal());
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.AIR.ordinal());
|
||||||
new BeeMutation(BeeSpecies.FIREY, BeeSpecies.FIREY, BeeSpecies.TC_FIRE, 8)
|
new BeeMutation(BeeSpecies.FIREY, BeeSpecies.FIREY, BeeSpecies.TC_FIRE, 8)
|
||||||
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.FIRE.ordinal());
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.FIRE.ordinal());
|
||||||
new BeeMutation(BeeSpecies.WATERY, BeeSpecies.WATERY, BeeSpecies.TC_WATER, 8)
|
new BeeMutation(BeeSpecies.WATERY, BeeSpecies.WATERY, BeeSpecies.TC_WATER, 8)
|
||||||
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.WATER.ordinal());
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.WATER.ordinal());
|
||||||
new BeeMutation(BeeSpecies.EARTHY, BeeSpecies.EARTHY, BeeSpecies.TC_EARTH, 8)
|
new BeeMutation(BeeSpecies.EARTHY, BeeSpecies.EARTHY, BeeSpecies.TC_EARTH, 8)
|
||||||
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.EARTH.ordinal());
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.EARTH.ordinal());
|
||||||
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.ETHEREAL, BeeSpecies.TC_MAGIC, 8)
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.ARCANE, BeeSpecies.TC_ORDER, 8)
|
||||||
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.MAGIC.ordinal());
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.ORDER.ordinal());
|
||||||
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.SUPERNATURAL, BeeSpecies.TC_CHAOS, 8)
|
||||||
new BeeMutation(BeeSpecies.ELDRITCH, BeeSpecies.ETHEREAL, BeeSpecies.TC_VIS, 10)
|
.setBlockAndMetaRequired(Config.tcCrystal, ThaumcraftHelper.ShardType.CHAOS.ordinal());
|
||||||
.setAuraNodeRequired(75);
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.TC_VIS, BeeSpecies.TC_FLUX, 8)
|
|
||||||
.setAuraNodeTypeRequired(50, thaumcraft.api.aura.EnumNodeType.DARK);
|
|
||||||
new BeeMutation(BeeSpecies.TC_VIS, BeeSpecies.TC_FLUX, BeeSpecies.TC_ATTRACT, 13)
|
|
||||||
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE)
|
|
||||||
.setMoonPhaseRestricted(MoonPhase.NEW, MoonPhase.NEW);
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Imperial"), BeeSpecies.TC_VIS, BeeSpecies.TC_REJUVENATING, 8)
|
|
||||||
.setAuraNodeRequired(25);
|
|
||||||
new BeeMutation(BeeSpecies.TC_VIS, BeeSpecies.TC_REJUVENATING, BeeSpecies.TC_PURE, 6)
|
|
||||||
.setAuraNodeTypeRequired(10, thaumcraft.api.aura.EnumNodeType.PURE)
|
|
||||||
.setMoonPhaseRestricted(MoonPhase.FULL, MoonPhase.FULL);
|
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.WINDY, BeeSpecies.TC_BATTY, 9);
|
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.WINDY, BeeSpecies.TC_BATTY, 9);
|
||||||
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.PUPIL, BeeSpecies.TC_BRAINY, 9);
|
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.PUPIL, BeeSpecies.TC_BRAINY, 9);
|
||||||
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.GHASTLY, BeeSpecies.TC_WISPY, 9)
|
new BeeMutation(BeeSpecies.ETHEREAL, BeeSpecies.GHASTLY, BeeSpecies.TC_WISPY, 9)
|
||||||
.setMoonPhaseRestricted(MoonPhase.WANING_CRESCENT, MoonPhase.WAXING_CRESCENT);
|
.setMoonPhaseRestricted(MoonPhase.WANING_CRESCENT, MoonPhase.WAXING_CRESCENT);
|
||||||
|
|
||||||
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_CHICKEN, 12)
|
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_CHICKEN, 12)
|
||||||
.setBiomeRequired(Type.FOREST);
|
.setBiomeRequired(Type.FOREST);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_BEEF, 12)
|
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_BEEF, 12)
|
||||||
.setBiomeRequired(Type.PLAINS);
|
.setBiomeRequired(Type.PLAINS);
|
||||||
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_PORK, 12)
|
new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.TC_PORK, 12)
|
||||||
.setBiomeRequired(Type.MOUNTAIN);
|
.setBiomeRequired(Type.MOUNTAIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ArsMagicaHelper.isActive())
|
if (ArsMagicaHelper.isActive())
|
||||||
@@ -221,7 +229,6 @@ public class BeeMutation implements IBeeMutation
|
|||||||
|
|
||||||
new BeeMutation(BeeSpecies.WINDY, BeeSpecies.AM_AIR, BeeSpecies.AM_LIGHTNING, 8);
|
new BeeMutation(BeeSpecies.WINDY, BeeSpecies.AM_AIR, BeeSpecies.AM_LIGHTNING, 8);
|
||||||
new BeeMutation(BeeSpecies.EARTHY, BeeSpecies.AM_EARTH, BeeSpecies.AM_PLANT, 8);
|
new BeeMutation(BeeSpecies.EARTHY, BeeSpecies.AM_EARTH, BeeSpecies.AM_PLANT, 8);
|
||||||
new BeeMutation(BeeSpecies.FIREY, BeeSpecies.AM_FIRE, BeeSpecies.AM_MAGMA, 8);
|
|
||||||
new BeeMutation(BeeSpecies.WATERY, BeeSpecies.AM_WATER, BeeSpecies.AM_ICE, 8);
|
new BeeMutation(BeeSpecies.WATERY, BeeSpecies.AM_WATER, BeeSpecies.AM_ICE, 8);
|
||||||
|
|
||||||
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.AM_ESSENCE, BeeSpecies.AM_VORTEX, 8);
|
new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.AM_ESSENCE, BeeSpecies.AM_VORTEX, 8);
|
||||||
@@ -230,7 +237,58 @@ public class BeeMutation implements IBeeMutation
|
|||||||
|
|
||||||
if (EquivalentExchangeHelper.isActive())
|
if (EquivalentExchangeHelper.isActive())
|
||||||
{
|
{
|
||||||
new BeeMutation(Allele.getBaseSpecies("Frugal"), BeeSpecies.ELDRITCH, BeeSpecies.EE_MINIUM, 8);
|
new BeeMutation(Allele.getBaseSpecies("Frugal"), BeeSpecies.MUTABLE, BeeSpecies.EE_MINIUM, 8);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (RedstoneArsenalHelper.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(BeeSpecies.TE_ELECTRUM, BeeSpecies.TE_DESTABILIZED, BeeSpecies.RSA_FLUXED, 10)
|
||||||
|
.setBlockRequired("blockElectrumFlux");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ThermalExpansionHelper.isActive())
|
||||||
|
{
|
||||||
|
new BeeMutation(BeeSpecies.TIN, BeeSpecies.COPPER, BeeSpecies.TE_BRONZE, 12)
|
||||||
|
.setBlockRequired("blockBronze");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.GOLD, BeeSpecies.SILVER, BeeSpecies.TE_ELECTRUM, 10)
|
||||||
|
.setBlockRequired("blockElectrum");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.IRON, BeeSpecies.ESOTERIC, BeeSpecies.TE_NICKEL, 14)
|
||||||
|
.setBlockRequired("blockNickel");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.IRON, BeeSpecies.TE_NICKEL, BeeSpecies.TE_INVAR, 14)
|
||||||
|
.setBlockRequired("blockInvar");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TE_NICKEL, BeeSpecies.TE_INVAR, BeeSpecies.TE_PLATINUM, 10)
|
||||||
|
.setBlockRequired("blockPlatinum");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TIN, BeeSpecies.COPPER, BeeSpecies.TE_BRONZE, 12)
|
||||||
|
.setBlockRequired("blockBronze");
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.SPITEFUL, BeeSpecies.TIN, BeeSpecies.TE_COAL, 12)
|
||||||
|
.setBlockRequired(Blocks.coal_ore);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.SPITEFUL, Allele.getBaseSpecies("Industrious"), BeeSpecies.TE_DESTABILIZED, 12)
|
||||||
|
.setBlockRequired(Blocks.redstone_ore);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.SMOULDERING, BeeSpecies.INFERNAL, BeeSpecies.TE_LUX, 12)
|
||||||
|
.setBlockRequired(Blocks.glowstone);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.SMOULDERING, Allele.getBaseSpecies("Austere"), BeeSpecies.TE_DANTE, 12)
|
||||||
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TE_DANTE, BeeSpecies.TE_COAL, BeeSpecies.TE_PYRO, 8)
|
||||||
|
.setBiomeRequired(BiomeDictionary.Type.NETHER);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Wintry"), BeeSpecies.TE_BLIZZY, 12);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TE_BLIZZY, Allele.getBaseSpecies("Icy"), BeeSpecies.TE_GELID, 8);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TE_PLATINUM, BeeSpecies.OBLIVION, BeeSpecies.TE_WINSOME, 12);
|
||||||
|
|
||||||
|
new BeeMutation(BeeSpecies.TE_WINSOME, BeeSpecies.TE_COAL, BeeSpecies.TE_ENDEARING, 8)
|
||||||
|
.setBlockRequired("blockEnderium");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -243,11 +301,8 @@ public class BeeMutation implements IBeeMutation
|
|||||||
private MoonPhase moonPhaseStart;
|
private MoonPhase moonPhaseStart;
|
||||||
private MoonPhase moonPhaseEnd;
|
private MoonPhase moonPhaseEnd;
|
||||||
private float moonPhaseMutationBonus;
|
private float moonPhaseMutationBonus;
|
||||||
private boolean nodeRequired;
|
|
||||||
private thaumcraft.api.aura.EnumNodeType nodeType;
|
|
||||||
private double nodeRange;
|
|
||||||
private boolean requiresBlock;
|
private boolean requiresBlock;
|
||||||
private int requiredBlockId;
|
private Block requiredBlock;
|
||||||
private int requiredBlockMeta;
|
private int requiredBlockMeta;
|
||||||
private String requiredBlockOreDictEntry;
|
private String requiredBlockOreDictEntry;
|
||||||
private String requiredBlockName;
|
private String requiredBlockName;
|
||||||
@@ -267,7 +322,7 @@ public class BeeMutation implements IBeeMutation
|
|||||||
this.isSecret = false;
|
this.isSecret = false;
|
||||||
this.isMoonRestricted = false;
|
this.isMoonRestricted = false;
|
||||||
this.moonPhaseMutationBonus = -1f;
|
this.moonPhaseMutationBonus = -1f;
|
||||||
this.nodeType = null;
|
//this.nodeType = null;
|
||||||
this.requiresBlock = false;
|
this.requiresBlock = false;
|
||||||
this.requiredBlockMeta = OreDictionary.WILDCARD_VALUE;
|
this.requiredBlockMeta = OreDictionary.WILDCARD_VALUE;
|
||||||
this.requiredBlockOreDictEntry = null;
|
this.requiredBlockOreDictEntry = null;
|
||||||
@@ -303,49 +358,26 @@ public class BeeMutation implements IBeeMutation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.nodeRequired)
|
|
||||||
{
|
|
||||||
int nodeId = thaumcraft.api.ThaumcraftApi.getClosestAuraWithinRange(housing.getWorld(),
|
|
||||||
housing.getXCoord(), housing.getYCoord(), housing.getZCoord(), this.nodeRange);
|
|
||||||
if (nodeId >= 0)
|
|
||||||
{
|
|
||||||
if (this.nodeType != null)
|
|
||||||
{
|
|
||||||
// Needs a _specific_ variety of node
|
|
||||||
thaumcraft.api.aura.AuraNode node = thaumcraft.api.ThaumcraftApi.getNodeCopy(nodeId);
|
|
||||||
if (node.type != this.nodeType)
|
|
||||||
{
|
|
||||||
chance = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
chance = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.requiresBlock)
|
if (this.requiresBlock)
|
||||||
{
|
{
|
||||||
Block blockBelow;
|
Block blockBelow;
|
||||||
int blockId;
|
|
||||||
int blockMeta;
|
int blockMeta;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
blockId = housing.getWorld().getBlockId(housing.getXCoord(), housing.getYCoord() - i, housing.getZCoord());
|
blockBelow = housing.getWorld().getBlock(housing.getXCoord(), housing.getYCoord() - i,
|
||||||
|
housing.getZCoord());
|
||||||
blockMeta = housing.getWorld().getBlockMetadata(housing.getXCoord(), housing.getYCoord() - i, housing.getZCoord());
|
blockMeta = housing.getWorld().getBlockMetadata(housing.getXCoord(), housing.getYCoord() - i, housing.getZCoord());
|
||||||
blockBelow = Block.blocksList[blockId];
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
while (blockBelow != null && (blockBelow instanceof IBeeHousing));
|
while (blockBelow != null && (blockBelow instanceof IBeeHousing || blockBelow == Config.fAlvearyBlock));
|
||||||
|
|
||||||
if (this.requiredBlockOreDictEntry != null)
|
if (this.requiredBlockOreDictEntry != null)
|
||||||
{
|
{
|
||||||
int dicId = OreDictionary.getOreID(new ItemStack(blockId, 1, blockMeta));
|
int[] dicId = OreDictionary.getOreIDs(new ItemStack(blockBelow, 1, blockMeta));
|
||||||
if (dicId != -1)
|
if (dicId.length != 0)
|
||||||
{
|
{
|
||||||
if (!OreDictionary.getOreName(dicId).equals(this.requiredBlockOreDictEntry))
|
if (!OreDictionary.getOreName(dicId[0]).equals(this.requiredBlockOreDictEntry))
|
||||||
{
|
{
|
||||||
chance = 0;
|
chance = 0;
|
||||||
}
|
}
|
||||||
@@ -355,7 +387,8 @@ public class BeeMutation implements IBeeMutation
|
|||||||
chance = 0;
|
chance = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (this.requiredBlockId != blockId || (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE && this.requiredBlockMeta != blockMeta))
|
else if (this.requiredBlock != blockBelow || (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE &&
|
||||||
|
this.requiredBlockMeta != blockMeta))
|
||||||
{
|
{
|
||||||
chance = 0;
|
chance = 0;
|
||||||
}
|
}
|
||||||
@@ -380,11 +413,11 @@ public class BeeMutation implements IBeeMutation
|
|||||||
}
|
}
|
||||||
|
|
||||||
finalChance = Math.round(chance
|
finalChance = Math.round(chance
|
||||||
* housing.getMutationModifier((IBeeGenome) genome0,
|
* housing.getMutationModifier((IBeeGenome)genome0,
|
||||||
(IBeeGenome) genome1, chance)
|
(IBeeGenome)genome1, chance)
|
||||||
* BeeManager.beeRoot.getBeekeepingMode(housing.getWorld())
|
* BeeManager.beeRoot.getBeekeepingMode(housing.getWorld())
|
||||||
.getMutationModifier((IBeeGenome) genome0,
|
.getMutationModifier((IBeeGenome)genome0,
|
||||||
(IBeeGenome) genome1, chance));
|
(IBeeGenome)genome1, chance));
|
||||||
}
|
}
|
||||||
|
|
||||||
return finalChance;
|
return finalChance;
|
||||||
@@ -448,19 +481,6 @@ public class BeeMutation implements IBeeMutation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.nodeRequired)
|
|
||||||
{
|
|
||||||
if (this.nodeType != null)
|
|
||||||
{
|
|
||||||
conditions.add(String.format(LocalizationManager.getLocalizedString("research.requiresNodeSpecific"),
|
|
||||||
LocalizationManager.getLocalizedString("research.node." + this.nodeType.name().toLowerCase())));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
conditions.add(LocalizationManager.getLocalizedString("research.requiresNode"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.requiresBlock)
|
if (this.requiresBlock)
|
||||||
{
|
{
|
||||||
if (this.requiredBlockName != null)
|
if (this.requiredBlockName != null)
|
||||||
@@ -478,13 +498,13 @@ public class BeeMutation implements IBeeMutation
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int meta = 0;
|
int meta = OreDictionary.WILDCARD_VALUE;
|
||||||
if (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE)
|
if (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE)
|
||||||
{
|
{
|
||||||
meta = this.requiredBlockMeta;
|
meta = this.requiredBlockMeta;
|
||||||
}
|
}
|
||||||
conditions.add(String.format(LocalizationManager.getLocalizedString("research.requiresBlock"),
|
conditions.add(String.format(LocalizationManager.getLocalizedString("research.requiresBlock"),
|
||||||
new ItemStack(this.requiredBlockId, 1, this.requiredBlockMeta).getDisplayName()));
|
new ItemStack(this.requiredBlock, 1, meta).getDisplayName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -521,27 +541,10 @@ public class BeeMutation implements IBeeMutation
|
|||||||
return isSecret;
|
return isSecret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BeeMutation setBlockRequired(int blockId)
|
|
||||||
{
|
|
||||||
this.requiresBlock = true;
|
|
||||||
this.requiredBlockId = blockId;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeeMutation setBlockRequired(Block block)
|
public BeeMutation setBlockRequired(Block block)
|
||||||
{
|
{
|
||||||
this.requiresBlock = true;
|
this.requiresBlock = true;
|
||||||
this.requiredBlockId = block.blockID;
|
this.requiredBlock = block;
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeeMutation setBlockAndMetaRequired(int blockId, int meta)
|
|
||||||
{
|
|
||||||
this.requiresBlock = true;
|
|
||||||
this.requiredBlockId = blockId;
|
|
||||||
this.requiredBlockMeta = meta;
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -549,7 +552,7 @@ public class BeeMutation implements IBeeMutation
|
|||||||
public BeeMutation setBlockAndMetaRequired(Block block, int meta)
|
public BeeMutation setBlockAndMetaRequired(Block block, int meta)
|
||||||
{
|
{
|
||||||
this.requiresBlock = true;
|
this.requiresBlock = true;
|
||||||
this.requiredBlockId = block.blockID;
|
this.requiredBlock = block;
|
||||||
this.requiredBlockMeta = meta;
|
this.requiredBlockMeta = meta;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -588,21 +591,6 @@ public class BeeMutation implements IBeeMutation
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BeeMutation setAuraNodeRequired(double range)
|
|
||||||
{
|
|
||||||
this.nodeRequired = true;
|
|
||||||
this.nodeRange = range;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeeMutation setAuraNodeTypeRequired(double range, thaumcraft.api.aura.EnumNodeType type)
|
|
||||||
{
|
|
||||||
this.nodeType = type;
|
|
||||||
|
|
||||||
return this.setAuraNodeRequired(range);
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeeMutation setBiomeRequired(BiomeDictionary.Type biomeType)
|
public BeeMutation setBiomeRequired(BiomeDictionary.Type biomeType)
|
||||||
{
|
{
|
||||||
this.requiredBiomeType = biomeType;
|
this.requiredBiomeType = biomeType;
|
||||||
+749
-333
File diff suppressed because it is too large.
Load diff
+6
-4
@@ -18,11 +18,13 @@ public class EffectData implements IEffectData
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound nbttagcompound)
|
public void readFromNBT(NBTTagCompound nbttagcompound)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToNBT(NBTTagCompound nbttagcompound)
|
public void writeToNBT(NBTTagCompound nbttagcompound)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setInteger(int index, int val)
|
public void setInteger(int index, int val)
|
||||||
@@ -66,7 +68,7 @@ public class EffectData implements IEffectData
|
|||||||
public float getFloat(int index)
|
public float getFloat(int index)
|
||||||
{
|
{
|
||||||
float val = 0f;
|
float val = 0f;
|
||||||
if (index >= 0 && index < this.intData.length)
|
if (index >= 0 && index < this.floatData.length)
|
||||||
{
|
{
|
||||||
val = this.floatData[index];
|
val = this.floatData[index];
|
||||||
}
|
}
|
||||||
@@ -77,7 +79,7 @@ public class EffectData implements IEffectData
|
|||||||
public boolean getBoolean(int index)
|
public boolean getBoolean(int index)
|
||||||
{
|
{
|
||||||
boolean val = false;
|
boolean val = false;
|
||||||
if (index >= 0 && index < this.intData.length)
|
if (index >= 0 && index < this.boolData.length)
|
||||||
{
|
{
|
||||||
val = this.boolData[index];
|
val = this.boolData[index];
|
||||||
}
|
}
|
||||||
+41
-9
@@ -3,6 +3,7 @@ package magicbees.bees;
|
|||||||
import magicbees.main.Config;
|
import magicbees.main.Config;
|
||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import forestry.api.genetics.IFlowerProvider;
|
import forestry.api.genetics.IFlowerProvider;
|
||||||
@@ -11,14 +12,18 @@ import forestry.api.genetics.IPollinatable;
|
|||||||
|
|
||||||
public class FlowerProviderArsMagicaFlower implements IFlowerProvider
|
public class FlowerProviderArsMagicaFlower implements IFlowerProvider
|
||||||
{
|
{
|
||||||
private ItemStack[] flowers = {new ItemStack(Config.amBlackOrchid), new ItemStack(Config.amDesertNova) };
|
private ItemStack[] flowers = { new ItemStack(Config.amBlackOrchid), new ItemStack(Config.amDesertNova),
|
||||||
|
new ItemStack(Config.amAum), new ItemStack(Config.amWakebloom),
|
||||||
|
new ItemStack(Config.amTarmaRoot) };
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int y, int z)
|
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int y, int z)
|
||||||
{
|
{
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
int id = world.getBlockId(x, y, z);
|
Block block = world.getBlock(x, y, z);
|
||||||
if (id == Config.amBlackOrchid.blockID || id == Config.amDesertNova.blockID)
|
if (block == Config.amBlackOrchid || block == Config.amDesertNova ||
|
||||||
|
block == Config.amAum || block == Config.amWakebloom ||
|
||||||
|
block == Config.amTarmaRoot)
|
||||||
{
|
{
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
@@ -29,17 +34,44 @@ public class FlowerProviderArsMagicaFlower implements IFlowerProvider
|
|||||||
public boolean growFlower(World world, IIndividual genome, int x, int y, int z)
|
public boolean growFlower(World world, IIndividual genome, int x, int y, int z)
|
||||||
{
|
{
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
int blockDown = world.getBlockId(x, y - 1, z);
|
x = -222;
|
||||||
if (world.getBlockId(x, y, z) == 0)
|
y = 70;
|
||||||
|
z = -51;
|
||||||
|
Block blockDown = world.getBlock(x, y - 1, z);
|
||||||
|
if (world.getBlock(x, y, z).isAir(world, x, y, z))
|
||||||
{
|
{
|
||||||
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
|
if (blockDown == Blocks.dirt || blockDown == Blocks.grass)
|
||||||
{
|
{
|
||||||
world.setBlock(x, y, z, Config.amBlackOrchid.blockID);
|
int dart = world.rand.nextInt(100);
|
||||||
|
Block block;
|
||||||
|
if (dart > 60)
|
||||||
|
{
|
||||||
|
block = Config.amBlackOrchid;
|
||||||
|
}
|
||||||
|
else if (dart > 30)
|
||||||
|
{
|
||||||
|
block = Config.amAum;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
block = Config.amTarmaRoot;
|
||||||
|
}
|
||||||
|
world.setBlock(x, y, z, block);
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
else if (blockDown == Block.sand.blockID)
|
else if (blockDown == Blocks.sand)
|
||||||
{
|
{
|
||||||
world.setBlock(x, y, z, Config.amDesertNova.blockID);
|
world.setBlock(x, y, z, Config.amDesertNova);
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
else if (blockDown == Blocks.stone)
|
||||||
|
{
|
||||||
|
world.setBlock(x, y, z, Config.amTarmaRoot);
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
else if (blockDown == Blocks.water || blockDown == Blocks.water)
|
||||||
|
{
|
||||||
|
world.setBlock(x, y, z, Config.amWakebloom);
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+8
-10
@@ -3,8 +3,6 @@ package magicbees.bees;
|
|||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
|
||||||
import thaumcraft.api.aura.AuraNode;
|
|
||||||
import forestry.api.genetics.IFlowerProvider;
|
import forestry.api.genetics.IFlowerProvider;
|
||||||
import forestry.api.genetics.IIndividual;
|
import forestry.api.genetics.IIndividual;
|
||||||
import forestry.api.genetics.IPollinatable;
|
import forestry.api.genetics.IPollinatable;
|
||||||
@@ -52,14 +50,14 @@ public class FlowerProviderAuraNode implements IFlowerProvider
|
|||||||
protected boolean isNodeWithinRange(World w, int x, int y, int z)
|
protected boolean isNodeWithinRange(World w, int x, int y, int z)
|
||||||
{
|
{
|
||||||
boolean nodeNearby = false;
|
boolean nodeNearby = false;
|
||||||
if (ThaumcraftApi.getClosestAuraWithinRange(w, x, y, z, this.nodeRange) >= 0)
|
/*if (ThaumcraftApi.getClosestAuraWithinRange(w, x, y, z, this.nodeRange) >= 0)
|
||||||
{
|
{
|
||||||
nodeNearby = true;
|
nodeNearby = true;
|
||||||
}
|
}*/
|
||||||
return nodeNearby;
|
return nodeNearby;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AuraNode getNodeWithinRange(World w, int x, int y, int z)
|
/*protected AuraNode getNodeWithinRange(World w, int x, int y, int z)
|
||||||
{
|
{
|
||||||
AuraNode node = null;
|
AuraNode node = null;
|
||||||
|
|
||||||
@@ -70,22 +68,22 @@ public class FlowerProviderAuraNode implements IFlowerProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
protected ItemStack[] addItemToProducts(ItemStack[] products, ItemStack itemStack)
|
protected ItemStack[] addItemToProducts(ItemStack[] products, ItemStack itemStack)
|
||||||
{
|
{
|
||||||
for (ItemStack stack : products)
|
for (ItemStack stack : products)
|
||||||
{
|
{
|
||||||
if (stack.itemID == itemStack.itemID && stack.getItemDamage() == itemStack.getItemDamage())
|
if (stack.getItem() == itemStack.getItem() && stack.getItemDamage() == itemStack.getItemDamage())
|
||||||
{
|
{
|
||||||
if (stack.stackSize < stack.getItem().getItemStackLimit())
|
if (stack.stackSize < stack.getItem().getItemStackLimit(stack))
|
||||||
{
|
{
|
||||||
stack.stackSize += itemStack.stackSize;
|
stack.stackSize += itemStack.stackSize;
|
||||||
itemStack.stackSize = Math.max(stack.stackSize - stack.getItem().getItemStackLimit(), 0);
|
itemStack.stackSize = Math.max(stack.stackSize - stack.getItem().getItemStackLimit(stack), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemStack.stackSize > 0)
|
if (itemStack.stackSize > 0)
|
||||||
{
|
{
|
||||||
ItemStack[] newProducts = new ItemStack[products.length + 1];
|
ItemStack[] newProducts = new ItemStack[products.length + 1];
|
||||||
+4
-5
@@ -3,11 +3,10 @@ package magicbees.bees;
|
|||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
|
|
||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.EnumPlantType;
|
import net.minecraftforge.common.EnumPlantType;
|
||||||
import forestry.api.apiculture.IBeeGenome;
|
|
||||||
import forestry.api.genetics.IFlowerProvider;
|
import forestry.api.genetics.IFlowerProvider;
|
||||||
import forestry.api.genetics.IIndividual;
|
import forestry.api.genetics.IIndividual;
|
||||||
import forestry.api.genetics.IPollinatable;
|
import forestry.api.genetics.IPollinatable;
|
||||||
@@ -18,7 +17,7 @@ public class FlowerProviderBookshelf implements IFlowerProvider
|
|||||||
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int i, int j)
|
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int i, int j)
|
||||||
{
|
{
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
if (world.getBlockId(x, i, j) == Block.bookShelf.blockID)
|
if (world.getBlock(x, i, j) == Blocks.bookshelf)
|
||||||
{
|
{
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
@@ -39,14 +38,14 @@ public class FlowerProviderBookshelf implements IFlowerProvider
|
|||||||
|
|
||||||
public ItemStack[] getItemStacks()
|
public ItemStack[] getItemStacks()
|
||||||
{
|
{
|
||||||
return new ItemStack[] { new ItemStack(Block.bookShelf) };
|
return new ItemStack[] { new ItemStack(Blocks.bookshelf) };
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
|
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
|
||||||
{
|
{
|
||||||
EnumSet<EnumPlantType> types = pollinatable.getPlantType();
|
EnumSet<EnumPlantType> types = pollinatable.getPlantType();
|
||||||
return types.size() > 0 && !types.contains(EnumPlantType.Nether) && !types.contains(EnumPlantType.Water) ;
|
return types.size() > 0 && !types.contains(EnumPlantType.Nether) && !types.contains(EnumPlantType.Water);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription()
|
public String getDescription()
|
||||||
+10
-9
@@ -4,6 +4,7 @@ import magicbees.main.Config;
|
|||||||
import magicbees.main.utils.LocalizationManager;
|
import magicbees.main.utils.LocalizationManager;
|
||||||
import magicbees.main.utils.compat.ThaumcraftHelper;
|
import magicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import forestry.api.genetics.IFlowerProvider;
|
import forestry.api.genetics.IFlowerProvider;
|
||||||
@@ -12,13 +13,13 @@ import forestry.api.genetics.IPollinatable;
|
|||||||
|
|
||||||
public class FlowerProviderThaumcraftFlower implements IFlowerProvider
|
public class FlowerProviderThaumcraftFlower implements IFlowerProvider
|
||||||
{
|
{
|
||||||
private ItemStack[] flowers = {new ItemStack(Config.tcPlant, 1, 2), new ItemStack(Config.tcPlant, 1, 3) };
|
private ItemStack[] flowers = { new ItemStack(Config.tcPlant, 1, 2), new ItemStack(Config.tcPlant, 1, 3) };
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int y, int z)
|
public boolean isAcceptedFlower(World world, IIndividual genome, int x, int y, int z)
|
||||||
{
|
{
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
if (world.getBlockId(x, y, z) == Config.tcPlant.blockID)
|
if (world.getBlock(x, y, z) == Config.tcPlant)
|
||||||
{
|
{
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
if (meta == 2 || meta == 3)
|
if (meta == 2 || meta == 3)
|
||||||
@@ -33,17 +34,17 @@ public class FlowerProviderThaumcraftFlower implements IFlowerProvider
|
|||||||
public boolean growFlower(World world, IIndividual genome, int x, int y, int z)
|
public boolean growFlower(World world, IIndividual genome, int x, int y, int z)
|
||||||
{
|
{
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
int blockDown = world.getBlockId(x, y - 1, z);
|
Block blockDown = world.getBlock(x, y - 1, z);
|
||||||
if (world.getBlockId(x, y, z) == 0)
|
if (world.getBlock(x, y, z).isAir(world, x, y, z))
|
||||||
{
|
{
|
||||||
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
|
if (blockDown == Blocks.dirt || blockDown == Blocks.grass)
|
||||||
{
|
{
|
||||||
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.SHIMMERLEAF.ordinal());
|
world.setBlock(x, y, z, Config.tcPlant, ThaumcraftHelper.BlockPlant.SHIMMERLEAF.ordinal(), 2);
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
else if (blockDown == Block.sand.blockID)
|
else if (blockDown == Blocks.sand)
|
||||||
{
|
{
|
||||||
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.CINDERPEARL.ordinal());
|
world.setBlock(x, y, z, Config.tcPlant, ThaumcraftHelper.BlockPlant.CINDERPEARL.ordinal(), 2);
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,211 @@
|
|||||||
|
package magicbees.bees;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
|
|
||||||
|
import net.minecraftforge.common.BiomeDictionary;
|
||||||
|
|
||||||
|
import forestry.api.apiculture.hives.HiveManager;
|
||||||
|
import forestry.api.apiculture.hives.IHiveDescription;
|
||||||
|
import forestry.api.apiculture.hives.IHiveGen;
|
||||||
|
import forestry.api.core.EnumHumidity;
|
||||||
|
import forestry.api.core.EnumTemperature;
|
||||||
|
|
||||||
|
import magicbees.block.types.HiveType;
|
||||||
|
import magicbees.main.Config;
|
||||||
|
import magicbees.main.utils.BlockUtil;
|
||||||
|
import magicbees.main.utils.LogHelper;
|
||||||
|
import magicbees.world.feature.FeatureOreVein;
|
||||||
|
import magicbees.world.feature.HiveGenNether;
|
||||||
|
import magicbees.world.feature.HiveGenOblivion;
|
||||||
|
import magicbees.world.feature.HiveGenUnderground;
|
||||||
|
|
||||||
|
public enum HiveDescription implements IHiveDescription {
|
||||||
|
CURIOUS(HiveType.CURIOUS, 3.0f, HiveManager.genHelper.tree()),
|
||||||
|
UNUSUAL(HiveType.UNUSUAL, 1.0f, HiveManager.genHelper.ground(Blocks.dirt, Blocks.grass)),
|
||||||
|
RESONANT(HiveType.RESONANT, 0.5f, HiveManager.genHelper.ground(Blocks.sand, Blocks.sandstone)),
|
||||||
|
DEEP(HiveType.DEEP, 2.0f, new HiveGenUnderground(10, 10, 6)) {
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
super.postGen(world, x, y, z);
|
||||||
|
Random random = world.rand;
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x + 1, y, z, 2);
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x - 1, y, z, 2);
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x, y + 1, z, 2);
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x, y - 1, z, 2);
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x, y, z + 1, 2);
|
||||||
|
FeatureOreVein.redstoneGen.generateVein(world, random, x, y, z - 1, 2);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
INFERNAL(HiveType.INFERNAL, 50.0f, new HiveGenNether(0, 175, 6)) {
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
super.postGen(world, x, y, z);
|
||||||
|
Random random = world.rand;
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x + 1, y, z, 4);
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x - 1, y, z, 4);
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x, y + 1, z, 4);
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x, y - 1, z, 4);
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x, y, z + 1, 4);
|
||||||
|
FeatureOreVein.netherQuartzGen.generateVein(world, random, x, y, z - 1, 4);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
INFERNAL_OVERWORLD(HiveType.INFERNAL, 1.0f, new HiveGenUnderground(5, 13, 6)) {
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
super.postGen(world, x, y, z);
|
||||||
|
Random random = world.rand;
|
||||||
|
FeatureOreVein.glowstoneGen.generateVein(world, random, x + 1, y, z, world.rand.nextInt(4) + 1);
|
||||||
|
FeatureOreVein.glowstoneGen.generateVein(world, random, x - 1, y, z, world.rand.nextInt(4) + 1);
|
||||||
|
|
||||||
|
if (BlockUtil.canBlockReplaceAt(world, x, y + 1, z, Blocks.stone))
|
||||||
|
{
|
||||||
|
world.setBlock(x, y + 1, z, Blocks.glowstone, 0, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (BlockUtil.canBlockReplaceAt(world, x, y - 1, z, Blocks.stone))
|
||||||
|
{
|
||||||
|
world.setBlock(x, y - 1, z, Blocks.glowstone, 0, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
FeatureOreVein.glowstoneGen.generateVein(world, random, x, y, z + 1, world.rand.nextInt(4) + 1);
|
||||||
|
FeatureOreVein.glowstoneGen.generateVein(world, random, x, y, z - 1, world.rand.nextInt(4) + 1);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
OBLIVION(HiveType.OBLIVION, 20.0f, new HiveGenOblivion()) {
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
super.postGen(world, x, y, z);
|
||||||
|
int obsidianSpikeHeight = world.rand.nextInt(8) + 3;
|
||||||
|
|
||||||
|
for (int i = 1; i < obsidianSpikeHeight && y - i > 0; ++i)
|
||||||
|
{
|
||||||
|
world.setBlock(x, y - i, z, Blocks.obsidian, 0, 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
OBLIVION_OVERWORLD(HiveType.OBLIVION, 1.0f, new HiveGenUnderground(5, 5, 5)) {
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
super.postGen(world, x, y, z);
|
||||||
|
Random random = world.rand;
|
||||||
|
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x + 1, y, z, world.rand.nextInt(6) + 1);
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x - 1, y, z, world.rand.nextInt(6) + 1);
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x, y + 1, z, world.rand.nextInt(3) + 1);
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x, y - 1, z, world.rand.nextInt(3) + 1);
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x, y, z + 1, world.rand.nextInt(6) + 1);
|
||||||
|
FeatureOreVein.endStoneGen.generateVein(world, random, x, y, z - 1, world.rand.nextInt(6) + 1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
private static boolean logSpawns = Config.logHiveSpawns;
|
||||||
|
|
||||||
|
private final HiveType hiveType;
|
||||||
|
private final float genChance;
|
||||||
|
private final List<BiomeDictionary.Type> biomes = new ArrayList<BiomeDictionary.Type>();
|
||||||
|
private final IHiveGen hiveGen;
|
||||||
|
|
||||||
|
private HiveDescription(HiveType hiveType, float genChance, IHiveGen hiveGen)
|
||||||
|
{
|
||||||
|
this.hiveType = hiveType;
|
||||||
|
this.genChance = genChance;
|
||||||
|
this.hiveGen = hiveGen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void initHiveData()
|
||||||
|
{
|
||||||
|
CURIOUS.biomes.add(BiomeDictionary.Type.FOREST);
|
||||||
|
CURIOUS.biomes.add(BiomeDictionary.Type.JUNGLE);
|
||||||
|
CURIOUS.biomes.add(BiomeDictionary.Type.HILLS);
|
||||||
|
|
||||||
|
UNUSUAL.biomes.add(BiomeDictionary.Type.PLAINS);
|
||||||
|
UNUSUAL.biomes.add(BiomeDictionary.Type.MOUNTAIN);
|
||||||
|
UNUSUAL.biomes.add(BiomeDictionary.Type.HILLS);
|
||||||
|
|
||||||
|
RESONANT.biomes.add(BiomeDictionary.Type.SANDY);
|
||||||
|
RESONANT.biomes.add(BiomeDictionary.Type.MAGICAL);
|
||||||
|
|
||||||
|
DEEP.biomes.add(BiomeDictionary.Type.HILLS);
|
||||||
|
DEEP.biomes.add(BiomeDictionary.Type.MOUNTAIN);
|
||||||
|
DEEP.biomes.add(BiomeDictionary.Type.MAGICAL);
|
||||||
|
|
||||||
|
INFERNAL.biomes.add(BiomeDictionary.Type.NETHER);
|
||||||
|
INFERNAL_OVERWORLD.biomes.add(BiomeDictionary.Type.MAGICAL);
|
||||||
|
|
||||||
|
OBLIVION.biomes.add(BiomeDictionary.Type.END);
|
||||||
|
OBLIVION_OVERWORLD.biomes.add(BiomeDictionary.Type.MAGICAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IHiveGen getHiveGen()
|
||||||
|
{
|
||||||
|
return hiveGen;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Block getBlock()
|
||||||
|
{
|
||||||
|
return Config.hive;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMeta()
|
||||||
|
{
|
||||||
|
return hiveType.ordinal();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isGoodBiome(BiomeGenBase biome)
|
||||||
|
{
|
||||||
|
BiomeDictionary.Type[] types = BiomeDictionary.getTypesForBiome(biome);
|
||||||
|
for (BiomeDictionary.Type type : types)
|
||||||
|
{
|
||||||
|
if (biomes.contains(type))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isGoodHumidity(EnumHumidity humidity)
|
||||||
|
{
|
||||||
|
return hiveType.getOccupant().canWorkInHumidity(humidity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isGoodTemperature(EnumTemperature temperature)
|
||||||
|
{
|
||||||
|
return hiveType.getOccupant().canWorkInTemperature(temperature);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getGenChance()
|
||||||
|
{
|
||||||
|
return genChance;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postGen(World world, int x, int y, int z)
|
||||||
|
{
|
||||||
|
if (logSpawns)
|
||||||
|
{
|
||||||
|
LogHelper.info("Spawned " + this.toString().toLowerCase(Locale.ENGLISH) + " hive at: X " + x + ", Y: " + y + ", Z: " + z);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loaded 100 of 341 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user