Compare commits

...
41 Commits
Author SHA1 Message Date
Martin Robertz 4704d4c18c Merge pull request #12 from Kiwi233/1.7.10-krypt
Update zh_CN.lang
2022-09-24 12:34:28 +02:00
[Kiwi233] 2abb28bd8e Update zh_CN.lang 2022-09-24 14:23:22 +08:00
boubou19 011a5767a7 Merge pull request #11 from GTNewHorizons/feature/checks
Some safety checks
2022-08-03 08:46:47 +02:00
repo_alt 9fa67a8426 Some safety checks 2022-08-03 10:33:33 +04:00
Jason Mitchell fb65570ce9 [ci skip] Migrate github actions to GTNH-Actions-Workflows 2022-07-16 10:49:26 -07:00
Martin Robertz 0901392f11 Merge pull request #10 from GTNewHorizons/QuickBeeDropFix
20% instead of 0.00001% (lmao)
2022-04-27 23:19:18 +02:00
ScriptedPiky 1359133050 20% instead of 0.00001% (lmao)
Why was this even a thing is beyond me
Fixes: https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10225
2022-04-27 13:12:54 -07:00
Martin Robertz b12577b506 Merge pull request #9 from GTNewHorizons/maven
Maven
2022-03-15 20:00:17 +01:00
bombcar b787d693b9 Maven 2022-03-15 13:36:46 -05:00
Martin Robertz 1f19dc2f5e Merge pull request #8 from GTNewHorizons/fix/ultramine
help suboptimal asm code to not generate GuiContainer in frame info
2022-03-14 07:22:18 +01:00
Glease 4e638db2a7 help suboptimal asm code to not generate GuiContainer in frame info 2022-03-13 20:51:11 +08:00
Martin Robertz db7d6ab7a2 Merge pull request #7 from GTNewHorizons/fix/build
fix the build
2022-03-13 02:51:13 +01:00
Martin Robertz 1db58409ec Update dependencies.gradle 2022-03-13 02:48:54 +01:00
Martin Robertz ff9e54760a Update dependencies.gradle 2022-03-13 02:48:22 +01:00
Glease a15b899913 fix the build 2022-03-13 09:46:38 +08:00
Martin Robertz 68a2880877 Update dependencies.gradle 2022-03-13 02:45:45 +01:00
Martin Robertz 913c4e5d00 Update dependencies.gradle 2022-03-13 02:41:49 +01:00
Martin Robertz 51f161c2e8 Update dependencies.gradle 2022-03-13 02:39:53 +01:00
Martin Robertz a49128337b Update dependencies.gradle 2022-03-13 02:35:30 +01:00
Martin Robertz 4903f97de6 Update build.gradle 2022-03-13 02:31:11 +01:00
Martin Robertz f87a689045 Update dependencies.gradle 2022-03-13 02:30:48 +01:00
Johann Bernhardt 987d7c2b11 Merge pull request #6 from GTNewHorizons/unified-build-script
Migrated to unified build script
2022-01-07 23:58:10 +01:00
Johann Bernhardt 3550fe23d4 Migrated to unified build script 2022-01-07 23:14:30 +01:00
Martin Robertz 237abd6cef Merge pull request #5 from alkcorp/1.7.10-krypt
Allows Backpack to accept wildcard items.
2021-10-07 19:45:58 +02:00
Alkalus 5e86d62433 Allows Backpack to accept wildcard items. 2021-10-07 18:40:01 +01:00
DreamMasterXXL 4c71e42dd6 bump version 2021-08-17 08:57:23 +02:00
Martin Robertz de793aa5fc Update build.gradle 2021-08-14 15:47:50 +02:00
Martin Robertz 58439c0936 Update build.gradle 2021-08-14 15:47:01 +02:00
Martin Robertz ef76ab40e3 Update gradle.properties 2021-08-14 15:43:26 +02:00
Martin Robertz d2a3b91fe0 Merge pull request #4 from D-Cysteine/1.7.10-krypt
Update to latest Forestry API
2021-08-14 15:41:30 +02:00
D-Cysteine a370c61948 Update to latest Forestry API 2021-08-12 20:54:58 -06:00
DreamMasterXXL 04ea5e8862 bump version 2020-12-03 20:37:56 +01:00
Martin Robertz b411fec0c1 Merge pull request #3 from KiloJoel/magnetFix
items go lower and don't move when close
2020-11-22 21:20:48 +01:00
KiloJoel 82368a06bf items go lower and don't move when close 2020-11-22 20:08:47 +00:00
DreamMasterXXL 58a9fa9e0f update(MB)bump version 2020-09-20 22:00:47 +02:00
Martin Robertz bcb38e8718 Merge pull request #2 from TataTawa/patch-1
Update Config.java
2020-07-27 08:58:55 +02:00
TataTawa 59d2f6bdb0 Update Config.java
Aromatic Lump Swarmer now possible for the slot of Swarmer and has the swarm chance of aromaticLumpSwarmerRate , it is a bug since Magic Bees 2.0.0
2020-07-27 03:15:21 +00:00
DreamMasterXXL 989bb6f917 bump version 2020-05-31 10:39:11 +02:00
Martin Robertz 9c044ffc9a Merge pull request #1 from Kiwi233/1.7.10-krypt
Update zh_CN.lang
2020-05-30 08:29:13 +02:00
[Kiwi233] ce32e21597 Update zh_CN.lang 2020-05-30 09:19:58 +08:00
Dream-Master 2375121778 rename version id 2020-03-08 18:56:14 +01:00
35 changed files with 1134 additions and 315 deletions

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# This is the universal Text Editor Configuration
# for all GTNewHorizons projects
# See: https://editorconfig.org/
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{bat,ini}]
end_of_line = crlf
[*.{dtd,json,info,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}]
indent_size = 2
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/env bash
# bashsupport disable=BP5006 # Global environment variables
RUNDIR="run" \
CRASH="crash-reports" \
SERVERLOG="server.log"
# enable nullglob to get 0 results when no match rather than the pattern
shopt -s nullglob
# store matches in array
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
# if array not empty there are crash_reports
if [ "${#crash_reports[@]}" -gt 0 ]; then
# get the latest crash_report from array
latest_crash_report="${crash_reports[-1]}"
{
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
cat "$latest_crash_report"
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
{
printf 'Fatal errors detected:\n'
cat server.log
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
"$SERVERLOG"; then
{
printf 'Server force stopped:'
cat server.log
} >&2
exit 1
fi
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
{
printf 'Server did not finish startup:'
cat server.log
} >&2
exit 1
fi
printf 'No crash reports detected'
exit 0
+13
View File
@@ -0,0 +1,13 @@
name: Build and test
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
build-and-test:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master
secrets: inherit
+14
View File
@@ -0,0 +1,14 @@
name: Release tagged build
on:
push:
tags: [ '*' ]
permissions:
contents: write
jobs:
release-tags:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
secrets: inherit
+27 -99
View File
@@ -1,103 +1,31 @@
# IntelliJ IDEA Files
.gradle
.settings
/.idea/
/run/
/build/
/eclipse/
.classpath
.project
/bin/
/config/
/crash-reports/
/logs/
options.txt
/saves/
usernamecache.json
banned-ips.json
banned-players.json
eula.txt
ops.json
server.properties
servers.dat
usercache.json
whitelist.json
/out/
*.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
asm
Thumbs.db
## Windows
Thumbs.db
## gradle
/.gradle
/build
## ForgeGradle
/run
## eclipse
/.settings
/.metadata
/.classpath
/.project
/eclipse
/bin
## intellij
/out
/.idea
/atlassian-ide-plugin.xml
/*.ipr
/*.iws
/*.iml
## Private Stuffs
/private.properties
## Jars
*.jar
!/gradle/wrapper/gradle-wrapper.jar
### OSX (adds a lot of garbage)###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
# Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
src/main/resources/mixins.*.json
*.bat
LICENSE*
forge*
CREDITS*
MinecraftForge*
README.txt
*.psd
*.pdn
/src/main/resources/assets/thaumcraft
##API
/src/api
/models
*.DS_Store
!gradlew.bat
-3
View File
@@ -1,3 +0,0 @@
[submodule "src/api/java/thaumcraft/api"]
path = src/api/java/thaumcraft/api
url = https://github.com/Azanor/thaumcraft-api
+3
View File
@@ -0,0 +1,3 @@
# Any Github changes require admin approval
/.github/** @GTNewHorizons/admin
+747 -95
View File
@@ -1,95 +1,747 @@
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/"
}
ivy {
name "Thaumcraft"
artifactPattern "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]-deobf-${project.version_mc}-[revision].[ext]"
}
//ivy {
// name "Botania"
// artifactPattern "http://botaniamod.net/files/deobf/[module] [revision]-deobf.[ext]"
//}
}
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"
sourceCompatibility = 1.6
targetCompatibility = 1.6
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}:api"
runtime "net.sengir.forestry:forestry_${project.version_mc}:${project.version_forestry}:dev"
//compile name: 'Botania', version: "${project.version_botania}", ext: 'jar'
//compile name: 'Baubles', version: "${project.version_baubles}", ext: 'jar'
//compile name: 'Thaumcraft', version: "${project.version_thaumcraft}", ext: '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
}
}
task deobfJar(type: Jar) { // Generate deobfuscated
from sourceSets.main.output
classifier = 'deobf'
}
artifacts {
archives deobfJar
}
task fullBuild(dependsOn: ['build', 'deobfJar']) {
}
//version: 1646409286
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
Please check https://github.com/GTNewHorizons/ExampleMod1.7.10/blob/main/build.gradle for updates.
*/
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.internal.logging.text.StyledTextOutput.Style
import org.gradle.internal.logging.text.StyledTextOutputFactory
import java.util.concurrent.TimeUnit
buildscript {
repositories {
maven {
name 'forge'
url 'https://maven.minecraftforge.net'
}
maven {
name 'sonatype'
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'Scala CI dependencies'
url 'https://repo1.maven.org/maven2/'
}
maven {
name 'jitpack'
url 'https://jitpack.io'
}
}
dependencies {
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.7'
}
}
plugins {
id 'java-library'
id 'idea'
id 'eclipse'
id 'scala'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.5.30' apply false
id 'org.jetbrains.kotlin.kapt' version '1.5.30' apply false
id 'org.ajoberstar.grgit' version '4.1.1'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'com.palantir.git-version' version '0.13.0' apply false
id 'de.undercouch.download' version '5.0.1'
id 'com.github.gmazzo.buildconfig' version '3.0.3' apply false
}
if (project.file('.git/HEAD').isFile()) {
apply plugin: 'com.palantir.git-version'
}
def out = services.get(StyledTextOutputFactory).create('an-output')
apply plugin: 'forge'
def projectJavaVersion = JavaLanguageVersion.of(8)
java {
toolchain {
languageVersion.set(projectJavaVersion)
}
}
idea {
module {
inheritOutputDirs = true
downloadJavadoc = true
downloadSources = true
}
}
if(JavaVersion.current() != JavaVersion.VERSION_1_8) {
throw new GradleException("This project requires Java 8, but it's running on " + JavaVersion.current())
}
checkPropertyExists("modName")
checkPropertyExists("modId")
checkPropertyExists("modGroup")
checkPropertyExists("autoUpdateBuildScript")
checkPropertyExists("minecraftVersion")
checkPropertyExists("forgeVersion")
checkPropertyExists("replaceGradleTokenInFile")
checkPropertyExists("gradleTokenModId")
checkPropertyExists("gradleTokenModName")
checkPropertyExists("gradleTokenVersion")
checkPropertyExists("gradleTokenGroupName")
checkPropertyExists("apiPackage")
checkPropertyExists("accessTransformersFile")
checkPropertyExists("usesMixins")
checkPropertyExists("mixinPlugin")
checkPropertyExists("mixinsPackage")
checkPropertyExists("coreModClass")
checkPropertyExists("containsMixinsAndOrCoreModOnly")
checkPropertyExists("usesShadowedDependencies")
checkPropertyExists("developmentEnvironmentUserName")
boolean noPublishedSources = project.findProperty("noPublishedSources") ? project.noPublishedSources.toBoolean() : false
boolean usesMixinDebug = project.findProperty('usesMixinDebug') ?: project.usesMixins.toBoolean()
String javaSourceDir = "src/main/java/"
String scalaSourceDir = "src/main/scala/"
String kotlinSourceDir = "src/main/kotlin/"
String targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/")
String targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/")
String targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/")
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
throw new GradleException("Could not resolve \"modGroup\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
}
if(apiPackage) {
targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
throw new GradleException("Could not resolve \"apiPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
}
}
if(accessTransformersFile) {
String targetFile = "src/main/resources/META-INF/" + accessTransformersFile
if(!getFile(targetFile).exists()) {
throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile)
}
}
if(usesMixins.toBoolean()) {
if(mixinsPackage.isEmpty() || mixinPlugin.isEmpty()) {
throw new GradleException("\"mixinPlugin\" requires \"mixinsPackage\" and \"mixinPlugin\" to be set!")
}
targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
throw new GradleException("Could not resolve \"mixinsPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
}
String targetFileJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".java"
String targetFileScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".scala"
String targetFileScalaJava = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".java"
String targetFileKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".kt"
if(!(getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists() || getFile(targetFileKotlin).exists())) {
throw new GradleException("Could not resolve \"mixinPlugin\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava + " or " + targetFileKotlin)
}
}
if(coreModClass) {
String targetFileJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".java"
String targetFileScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".scala"
String targetFileScalaJava = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".java"
String targetFileKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".kt"
if(!(getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists() || getFile(targetFileKotlin).exists())) {
throw new GradleException("Could not resolve \"coreModClass\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava + " or " + targetFileKotlin)
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
// Make sure GregTech build won't time out
System.setProperty("org.gradle.internal.http.connectionTimeout", 120000 as String)
System.setProperty("org.gradle.internal.http.socketTimeout", 120000 as String)
}
// Fix Jenkins' Git: chmod a file should not be detected as a change and append a '.dirty' to the version
try {
'git config core.fileMode false'.execute()
}
catch (Exception ignored) {
out.style(Style.Failure).println("git isn't installed at all")
}
// Pulls version first from the VERSION env and then git tag
String identifiedVersion
String versionOverride = System.getenv("VERSION") ?: null
try {
identifiedVersion = versionOverride == null ? gitVersion() : versionOverride
}
catch (Exception ignored) {
out.style(Style.Failure).text(
'This mod must be version controlled by Git AND the repository must provide at least one tag,\n' +
'or the VERSION override must be set! ').style(Style.SuccessHeader).text('(Do NOT download from GitHub using the ZIP option, instead\n' +
'clone the repository, see ').style(Style.Info).text('https://gtnh.miraheze.org/wiki/Development').style(Style.SuccessHeader).println(' for details.)'
)
versionOverride = 'NO-GIT-TAG-SET'
identifiedVersion = versionOverride
}
version = minecraftVersion + '-' + identifiedVersion
ext {
modVersion = identifiedVersion
}
if(identifiedVersion == versionOverride) {
out.style(Style.Failure).text('Override version to ').style(Style.Identifier).text(modVersion).style(Style.Failure).println('!\7')
}
group = modGroup
if(project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
archivesBaseName = customArchiveBaseName
}
else {
archivesBaseName = modId
}
def arguments = []
def jvmArguments = []
if (usesMixins.toBoolean()) {
arguments += [
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
]
if (usesMixinDebug.toBoolean()) {
jvmArguments += [
"-Dmixin.debug.countInjections=true",
"-Dmixin.debug.verbose=true",
"-Dmixin.debug.export=true"
]
}
}
minecraft {
version = minecraftVersion + '-' + forgeVersion + '-' + minecraftVersion
runDir = 'run'
if (replaceGradleTokenInFile) {
replaceIn replaceGradleTokenInFile
if(gradleTokenModId) {
replace gradleTokenModId, modId
}
if(gradleTokenModName) {
replace gradleTokenModName, modName
}
if(gradleTokenVersion) {
replace gradleTokenVersion, modVersion
}
if(gradleTokenGroupName) {
replace gradleTokenGroupName, modGroup
}
}
clientIntellijRun {
args(arguments)
jvmArgs(jvmArguments)
if(developmentEnvironmentUserName) {
args("--username", developmentEnvironmentUserName)
}
}
serverIntellijRun {
args(arguments)
jvmArgs(jvmArguments)
}
}
if(file('addon.gradle').exists()) {
apply from: 'addon.gradle'
}
apply from: 'repositories.gradle'
configurations {
implementation.extendsFrom(shadowImplementation) // TODO: remove after all uses are refactored
implementation.extendsFrom(shadowCompile)
implementation.extendsFrom(shadeCompile)
}
repositories {
maven {
name 'Overmind forge repo mirror'
url 'https://gregtech.overminddl1.com/'
}
if(usesMixins.toBoolean()) {
maven {
name 'sponge'
url 'https://repo.spongepowered.org/repository/maven-public'
}
maven {
url 'https://jitpack.io'
}
}
}
dependencies {
if(usesMixins.toBoolean()) {
annotationProcessor('org.ow2.asm:asm-debug-all:5.0.3')
annotationProcessor('com.google.guava:guava:24.1.1-jre')
annotationProcessor('com.google.code.gson:gson:2.8.6')
annotationProcessor('org.spongepowered:mixin:0.8-SNAPSHOT')
// using 0.8 to workaround a issue in 0.7 which fails mixin application
compile('com.github.GTNewHorizons:SpongePoweredMixin:0.7.12-GTNH') {
// Mixin includes a lot of dependencies that are too up-to-date
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
exclude module: 'log4j-core'
}
compile('com.github.GTNewHorizons:SpongeMixins:1.5.0')
}
}
apply from: 'dependencies.gradle'
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
def refMap = "${tasks.compileJava.temporaryDir}" + File.separator + mixingConfigRefMap
def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + "mixins.srg"
task generateAssets {
if (usesMixins.toBoolean()) {
def mixinConfigFile = getFile("/src/main/resources/mixins." + modId + ".json");
if (!mixinConfigFile.exists()) {
mixinConfigFile.text = """{
"required": true,
"minVersion": "0.7.11",
"package": "${modGroup}.${mixinsPackage}",
"plugin": "${modGroup}.${mixinPlugin}",
"refmap": "${mixingConfigRefMap}",
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_8",
"mixins": [],
"client": [],
"server": []
}
"""
}
}
}
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = modGroup + ".shadow"
}
shadowJar {
project.configurations.shadeCompile.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
manifest {
attributes(getManifestAttributes())
}
minimize() // This will only allow shading for actually used classes
configurations = [project.configurations.shadowImplementation, project.configurations.shadowCompile]
dependsOn(relocateShadowJar)
}
jar {
project.configurations.shadeCompile.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
manifest {
attributes(getManifestAttributes())
}
if(usesShadowedDependencies.toBoolean()) {
dependsOn(shadowJar)
enabled = false
}
}
reobf {
if(usesMixins.toBoolean()) {
addExtraSrgFile mixinSrg
}
}
afterEvaluate {
if(usesMixins.toBoolean()) {
tasks.compileJava {
options.compilerArgs += [
"-AreobfSrgFile=${tasks.reobf.srg}",
"-AoutSrgFile=${mixinSrg}",
"-AoutRefMapFile=${refMap}",
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
"-XDenableSunApiLintControl",
"-XDignore.symbol.file"
]
}
}
}
runClient {
if(developmentEnvironmentUserName) {
arguments += [
"--username",
developmentEnvironmentUserName
]
}
args(arguments)
jvmArgs(jvmArguments)
}
runServer {
args(arguments)
jvmArgs(jvmArguments)
}
tasks.withType(JavaExec).configureEach {
javaLauncher.set(
javaToolchains.launcherFor {
languageVersion = projectJavaVersion
}
)
}
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 modVersion and minecraftVersion
expand "minecraftVersion": project.minecraft.version,
"modVersion": modVersion,
"modId": modId,
"modName": modName
}
if(usesMixins.toBoolean()) {
from refMap
}
// copy everything else that's not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
def getManifestAttributes() {
def manifestAttributes = [:]
if(!containsMixinsAndOrCoreModOnly.toBoolean() && (usesMixins.toBoolean() || coreModClass)) {
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
}
if(accessTransformersFile) {
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
}
if(coreModClass) {
manifestAttributes += ["FMLCorePlugin": modGroup + "." + coreModClass]
}
if(usesMixins.toBoolean()) {
manifestAttributes += [
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
"MixinConfigs" : "mixins." + modId + ".json",
"ForceLoadAsMod" : !containsMixinsAndOrCoreModOnly.toBoolean()
]
}
return manifestAttributes
}
task sourcesJar(type: Jar) {
from (sourceSets.main.allSource)
from (file("$projectDir/LICENSE"))
getArchiveClassifier().set('sources')
}
task shadowDevJar(type: ShadowJar) {
project.configurations.shadeCompile.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
from sourceSets.main.output
getArchiveClassifier().set("dev")
manifest {
attributes(getManifestAttributes())
}
minimize() // This will only allow shading for actually used classes
configurations = [project.configurations.shadowImplementation, project.configurations.shadowCompile]
}
task relocateShadowDevJar(type: ConfigureShadowRelocation) {
target = tasks.shadowDevJar
prefix = modGroup + ".shadow"
}
task circularResolverJar(type: Jar) {
dependsOn(relocateShadowDevJar)
dependsOn(shadowDevJar)
enabled = false
}
task devJar(type: Jar) {
project.configurations.shadeCompile.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
from sourceSets.main.output
getArchiveClassifier().set("dev")
manifest {
attributes(getManifestAttributes())
}
if(usesShadowedDependencies.toBoolean()) {
dependsOn(circularResolverJar)
enabled = false
}
}
task apiJar(type: Jar) {
from (sourceSets.main.allSource) {
include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/") + '/**'
}
from (sourceSets.main.output) {
include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/") + '/**'
}
from (sourceSets.main.resources.srcDirs) {
include("LICENSE")
}
getArchiveClassifier().set('api')
}
artifacts {
if(!noPublishedSources) {
archives sourcesJar
}
archives devJar
if(apiPackage) {
archives apiJar
}
}
// The gradle metadata includes all of the additional deps that we disabled from POM generation (including forgeBin with no groupID),
// and isn't strictly needed with the POM so just disable it.
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
// workaround variable hiding in pom processing
def projectConfigs = project.configurations
publishing {
publications {
maven(MavenPublication) {
from components.java
if(usesShadowedDependencies.toBoolean()) {
artifact source: shadowJar, classifier: ""
}
if(!noPublishedSources) {
artifact source: sourcesJar, classifier: "src"
}
artifact source: usesShadowedDependencies.toBoolean() ? shadowDevJar : devJar, classifier: "dev"
if (apiPackage) {
artifact source: apiJar, classifier: "api"
}
groupId = System.getenv("ARTIFACT_GROUP_ID") ?: "com.github.GTNewHorizons"
artifactId = System.getenv("ARTIFACT_ID") ?: project.name
// Using the identified version, not project.version as it has the prepended 1.7.10
version = System.getenv("RELEASE_VERSION") ?: identifiedVersion
// remove extra garbage from minecraft and minecraftDeps configuration
pom.withXml {
def badArtifacts = [:].withDefault {[] as Set<String>}
for (configuration in [projectConfigs.minecraft, projectConfigs.minecraftDeps]) {
for (dependency in configuration.allDependencies) {
badArtifacts[dependency.group == null ? "" : dependency.group] += dependency.name
}
}
// example for specifying extra stuff to ignore
// badArtifacts["org.example.group"] += "artifactName"
Node pomNode = asNode()
pomNode.dependencies.'*'.findAll() {
badArtifacts[it.groupId.text()].contains(it.artifactId.text())
}.each() {
it.parent().remove(it)
}
}
}
}
repositories {
maven {
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases"
credentials {
username = System.getenv("MAVEN_USER") ?: "NONE"
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
}
}
}
}
// Updating
task updateBuildScript {
doLast {
if (performBuildScriptUpdate(projectDir.toString())) return
print("Build script already up-to-date!")
}
}
if (isNewBuildScriptVersionAvailable(projectDir.toString())) {
if (autoUpdateBuildScript.toBoolean()) {
performBuildScriptUpdate(projectDir.toString())
} else {
out.style(Style.SuccessHeader).println("Build script update available! Run 'gradle updateBuildScript'")
}
}
static URL availableBuildScriptUrl() {
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/main/build.gradle")
}
boolean performBuildScriptUpdate(String projectDir) {
if (isNewBuildScriptVersionAvailable(projectDir)) {
def buildscriptFile = getFile("build.gradle")
availableBuildScriptUrl().withInputStream { i -> buildscriptFile.withOutputStream { it << i } }
out.style(Style.Success).print("Build script updated. Please REIMPORT the project or RESTART your IDE!")
return true
}
return false
}
boolean isNewBuildScriptVersionAvailable(String projectDir) {
Map parameters = ["connectTimeout": 2000, "readTimeout": 2000]
String currentBuildScript = getFile("build.gradle").getText()
String currentBuildScriptHash = getVersionHash(currentBuildScript)
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
String availableBuildScriptHash = getVersionHash(availableBuildScript)
boolean isUpToDate = currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash
return !isUpToDate
}
static String getVersionHash(String buildScriptContent) {
String versionLine = buildScriptContent.find("^//version: [a-z0-9]*")
if(versionLine != null) {
return versionLine.split(": ").last()
}
return ""
}
configure(updateBuildScript) {
group = 'forgegradle'
description = 'Updates the build script to the latest version'
}
// Deobfuscation
def deobf(String sourceURL) {
try {
URL url = new URL(sourceURL)
String fileName = url.getFile()
//get rid of directories:
int lastSlash = fileName.lastIndexOf("/")
if(lastSlash > 0) {
fileName = fileName.substring(lastSlash + 1)
}
//get rid of extension:
if(fileName.endsWith(".jar")) {
fileName = fileName.substring(0, fileName.lastIndexOf("."))
}
String hostName = url.getHost()
if(hostName.startsWith("www.")) {
hostName = hostName.substring(4)
}
List parts = Arrays.asList(hostName.split("\\."))
Collections.reverse(parts)
hostName = String.join(".", parts)
return deobf(sourceURL, hostName + "/" + fileName)
} catch(Exception e) {
return deobf(sourceURL, "deobf/" + String.valueOf(sourceURL.hashCode()))
}
}
// The method above is to be preferred. Use this method if the filename is not at the end of the URL.
def deobf(String sourceURL, String fileName) {
String cacheDir = System.getProperty("user.home") + "/.gradle/caches/"
String bon2Dir = cacheDir + "forge_gradle/deobf"
String bon2File = bon2Dir + "/BON2-2.5.0.jar"
String obfFile = cacheDir + "modules-2/files-2.1/" + fileName + ".jar"
String deobfFile = cacheDir + "modules-2/files-2.1/" + fileName + "-deobf.jar"
if(file(deobfFile).exists()) {
return files(deobfFile)
}
download.run {
src 'https://github.com/GTNewHorizons/BON2/releases/download/2.5.0/BON2-2.5.0.CUSTOM-all.jar'
dest bon2File
quiet true
overwrite false
}
download.run {
src sourceURL
dest obfFile
quiet true
overwrite false
}
exec {
commandLine 'java', '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', '1.7.10', '--mappingsVer', 'stable_12', '--notch'
workingDir bon2Dir
standardOutput = new ByteArrayOutputStream()
}
return files(deobfFile)
}
// Helper methods
def checkPropertyExists(String propertyName) {
if (!project.hasProperty(propertyName)) {
throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"gradle.properties\". You can find all properties and their description here: https://github.com/GTNewHorizons/ExampleMod1.7.10/blob/main/gradle.properties")
}
}
def getFile(String relativePath) {
return new File(projectDir, relativePath)
}
+9
View File
@@ -0,0 +1,9 @@
// Add your dependencies here
dependencies {
compile('com.github.GTNewHorizons:ForestryMC:4.4.6:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.1.14:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.9.2-GTNH:api') {transitive = false}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
}
-3
View File
@@ -1,3 +0,0 @@
2.4.3
false
Fixes a crash with EE3 integration.
+62 -9
View File
@@ -1,11 +1,64 @@
version_major=2
version_minor=5
version_rev=2
modName = Magic Bees
version_forestry=4.2.+
version_botania=r1.8-248
version_baubles=1.0.1.10
version_thaumcraft=4.2.3.5
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = MagicBees
version_mc=1.7.10
version_forge=10.13.4.1614-1.7.10
modGroup = magicbees
# WHY is there no version field?
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
# Will update your build.gradle automatically whenever an update is available
autoUpdateBuildScript = false
minecraftVersion = 1.7.10
forgeVersion = 10.13.4.1614
# Select a username for testing your mod with breakpoints. You may leave this empty for a random user name each time you
# restart Minecraft in development. Choose this dependent on your mod:
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
developmentEnvironmentUserName = Developer
# Define a source file of your project with:
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...])
# Leave these properties empty to skip individual token replacements
replaceGradleTokenInFile = VersionInfo.java
gradleTokenModId =
gradleTokenModName =
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenGroupName =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
apiPackage = api
# Specify the configuration file for Forge's access transformers here. I must be placed into /src/main/resources/META-INF/
# Example value: mymodid_at.cfg
accessTransformersFile =
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatibility only
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
coreModClass =
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
containsMixinsAndOrCoreModOnly = false
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
# responsibility check the licence and request permission for distribution, if required.
usesShadowedDependencies = false
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
# projects. New projects should not use this parameter.
customArchiveBaseName = magicbees
Binary file not shown.
+1 -2
View File
@@ -1,6 +1,5 @@
#Sat Jan 04 01:56:22 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
Vendored
+36 -12
View File
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
@@ -28,16 +44,16 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
warn () {
echo "$*"
}
die ( ) {
die () {
echo
echo "$*"
echo
@@ -109,8 +125,8 @@ 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
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
@@ -154,11 +170,19 @@ if $cygwin ; then
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=("$@")
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
APP_ARGS=$(save "$@")
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
Vendored
+17 -7
View File
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@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 DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
@@ -49,7 +65,6 @@ goto fail
@rem Get command-line arguments, handling Windows 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.
@@ -60,11 +75,6 @@ set _SKIP=2
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
+2
View File
@@ -0,0 +1,2 @@
before_install:
- ./gradlew setupCIWorkspace
Binary file not shown.
Binary file not shown.
Binary file not shown.
+26
View File
@@ -0,0 +1,26 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name 'GTNH Maven'
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
allowInsecureProtocol
}
maven {
name 'ic2'
url 'https://maven.ic2.player.to/'
metadataSources {
mavenPom()
artifact()
}
}
maven {
url 'https://jitpack.io'
}
maven {
url 'https://cursemaven.com'
content {
includeGroup 'curse.maven'
}
}
}
@@ -77,7 +77,7 @@ public class BeeProductHelper {
.addProduct(new ItemStack(Items.chicken), 0.12f)
.addSpecialty(new ItemStack(Items.melon), 0.20f);
BATTY.addProduct(Config.combs.getStackForType(CombType.FURTIVE), 0.10f)
.addSpecialty(new ItemStack(Items.string), 0.00001f);
.addSpecialty(new ItemStack(Items.string), 0.20f);
CHICKEN.addProduct(Config.combs.getStackForType(CombType.FURTIVE), 0.23f)
.addSpecialty(new ItemStack(Items.feather), 0.08f)
.addSpecialty(new ItemStack(Items.egg), 0.08f);
@@ -2,6 +2,7 @@ package magicbees.bees;
import net.minecraft.world.World;
import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
@@ -28,7 +29,7 @@ public class MoonPhaseMutationBonus implements IMutationCondition {
}
@Override
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
if (MoonPhase.getMoonPhase(world).isBetween(this.moonPhaseStart, this.moonPhaseEnd)) {
return this.mutationBonus;
}
@@ -2,6 +2,7 @@ package magicbees.bees;
import net.minecraft.world.World;
import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
@@ -24,7 +25,7 @@ public class MoonPhaseMutationRestriction implements IMutationCondition {
}
@Override
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
if (MoonPhase.getMoonPhase(world).isBetween(this.moonPhaseStart, this.moonPhaseEnd)) {
return 1;
}
@@ -31,18 +31,16 @@ public class GUIHandler implements IGuiHandler
@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.getTileEntity(x, y, z), player);
return new GUIEffectJar((TileEntityEffectJar)world.getTileEntity(x, y, z), player);
}else if (ID == UIScreens.THAUMIC_APIARY.ordinal())
{
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
value = new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
}
return value;
return new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
} else {
return null;
}
}
}
@@ -184,10 +184,13 @@ public class ItemMysteriousMagnet extends Item implements IBauble {
for (EntityItem e : list) {
if (e.age >= 10) {
double x = player.posX - e.posX;
double y = player.posY - e.posY;
double y = player.posY - e.posY - 1.f;
double z = player.posZ - e.posZ;
double length = Math.sqrt(x * x + y * y + z * z) * 2;
if (length < 1.2f)
continue;
x = x / length + player.motionX / 2;
y = y / length + player.motionY / 2;
+1 -1
View File
@@ -508,7 +508,7 @@ public class Config
private void setupMiscForestryItemHooks() {
// Make Aromatic Lumps a swarmer inducer. Chance is /1000.
if (aromaticLumpSwarmerRate <= 0) {
if (aromaticLumpSwarmerRate > 0) {
aromaticLumpSwarmerRate = (aromaticLumpSwarmerRate >= 1000) ? 1000: aromaticLumpSwarmerRate;
BeeManager.inducers.put(miscResources.getStackForType(ResourceType.AROMATIC_LUMP), aromaticLumpSwarmerRate);
}
@@ -21,6 +21,7 @@ import cpw.mods.fml.common.network.NetworkRegistry;
@Mod(
modid = VersionInfo.ModName,
name = "Magic Bees",
version = VersionInfo.Version,
dependencies = VersionInfo.Depends,
guiFactory = VersionInfo.GUI_FACTORY_CLASS
@@ -67,7 +67,9 @@ public class BlockUtil {
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
searchChunks.add(world.getChunkFromChunkCoords(chunkX, chunkZ));
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
if (chunk != null)
searchChunks.add(chunk);
}
}
@@ -17,8 +17,7 @@ import cpw.mods.fml.common.FMLLog;
public class VersionInfo
{
public static final String ModName = "MagicBees";
public static final String Version = "@VERSION@";
public static final String MCVersion = "@MCVERSION@";
public static final String Version = "GRADLETOKEN_VERSION";
public static final String VersionURL = "https://raw.githubusercontent.com/MagicBees/MagicBees/master/etc/version-1.7.txt";
public static final String DownloadURL = "http://minecraft.curseforge.com/mc-mods/65764-magic-bees/files";
public static final String GUI_FACTORY_CLASS = "magicbees.client.gui.GuiFactory";
@@ -33,6 +33,9 @@ public class NodeHelper {
@SuppressWarnings("unchecked")
public static INode findNode(Chunk chunk, int x, int y, int z, int range) {
if (chunk == null)
return null;
Vec3 apiaryPos = Vec3.createVectorHelper(x, y, z);
List<TileEntity> tileEntities = new ArrayList<TileEntity>(((Map<ChunkPosition, TileEntity>)chunk.chunkTileEntityMap).values());
Collections.shuffle(tileEntities);
@@ -52,17 +55,19 @@ public class NodeHelper {
@SuppressWarnings("unchecked")
public static List<INode> findNodesInChunkWithinRange(Chunk chunk, int x, int y, int z, int range) {
List<INode> nodes = new ArrayList<INode>();
Vec3 apiaryPos = Vec3.createVectorHelper(x, y, z);
List<TileEntity> tileEntities = new ArrayList<TileEntity>(((Map<ChunkPosition, TileEntity>)chunk.chunkTileEntityMap).values());
for (TileEntity entity : tileEntities) {
if (entity instanceof INode) {
Vec3 tePos = Vec3.createVectorHelper(entity.xCoord, entity.yCoord, entity.zCoord);
Vec3 result = apiaryPos.subtract(tePos);
if (result.lengthVector() <= range) {
nodes.add((INode)entity);
}
}
}
if (chunk != null) {
Vec3 apiaryPos = Vec3.createVectorHelper(x, y, z);
List<TileEntity> tileEntities = new ArrayList<TileEntity>(((Map<ChunkPosition, TileEntity>) chunk.chunkTileEntityMap).values());
for (TileEntity entity : tileEntities) {
if (entity instanceof INode) {
Vec3 tePos = Vec3.createVectorHelper(entity.xCoord, entity.yCoord, entity.zCoord);
Vec3 result = apiaryPos.subtract(tePos);
if (result.lengthVector() <= range) {
nodes.add((INode) entity);
}
}
}
}
return nodes;
}
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import forestry.api.storage.IBackpackDefinition;
/**
@@ -70,7 +71,7 @@ public class BackpackDefinition implements IBackpackDefinition
// If comparison stack has meta of -1
if (stack.getItem() == itemStack.getItem())
{
flag = stack.getItemDamage() == -1 || stack.getItemDamage() == itemStack.getItemDamage();
flag = stack.getItemDamage() == -1 || stack.getItemDamage() == OreDictionary.WILDCARD_VALUE || stack.getItemDamage() == itemStack.getItemDamage();
}
}
-3
View File
@@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: magicbees.main.MagicBees
@@ -1,4 +1,4 @@
language.name=Chinese
language.name=简体中文
language.region=CN
language.code=zh_CN
@@ -30,6 +30,9 @@ item.thaumiumGrafter.name=奥法剪枝器
item.magicbees:mysteriousMagnet.name=神秘磁铁
item.moonDial.name=翡翠色月相盘
item.voidScoop.name=虚空捕蜂网
item.voidGrafter.name=虚空剪枝器
#Tiles
tile.effectJar.name=蜜蜂收集者的罐子
tile.magicApiary.name=魔法蜂箱
@@ -71,7 +74,6 @@ comb.TEcarbon=碳素蜂窝
comb.TEelectric=电气蜂窝
comb.TElux=流明蜂窝
comb.TEendearing=可爱蜂窝
comb.BMSanguine=鲜血蜂窝
#Waxes
wax.magic=魔力蜜蜡
@@ -135,7 +137,7 @@ resource.startNode=蜜蜂与魔法
resource.crystalAspect=晶化%s要素
#Frames
item.frameMagic.name=魔力框架
item.frameMagic.name=魔法框架
item.frameResilient.name=弹力框架
item.frameGentle.name=柔性框架
item.frameMetabolic.name=代谢框架
@@ -167,14 +169,14 @@ liquid.liquiddna=液态DNA
liquid.creosote=木榴油
liquid.steam=蒸汽
liquid.redstone=不稳定熔融红石
liquid.glowstone=充能熔融荧石
liquid.glowstone=充能熔融萤石
liquid.ender=谐振熔融末影珍珠
liquid.pyrotheum=烈焰之炽焱
liquid.cryotheum=极寒之凛冰
liquid.mana=元始魔力
liquid.coal=液态煤炭
#Moondial
#Moondial & Mutation moon phase conditions
moon.full=满月
moon.gibbousWaning=亏凸月
moon.gibbousWaxing=盈凸月
@@ -185,7 +187,7 @@ moon.crescentWaxing=凸娥眉月
moon.new=新月
# Alternate moon names for languages that require a different kind of localization. Remove # to activate.
# If missing, will fall back on the non-alternate versions.
# If missing, will fall back on the non-alternate versions.
#moon.alt.full=
#moon.alt.gibbousWaning=
#moon.alt.gibbousWaxing=
@@ -213,6 +215,8 @@ tile.botania:flower.hibeescus.lore=这些尖(双)刺(关)会蜇人
research.requiresBlock=需要一个%s作为基础
research.requiresPhase=月相处于%s与%s之间时
research.requiresPhaseSingle=月相为%s
research.bonusPhase=在 %s 和 %s 之间更容易成功.
research.bonusPhaseSingle=在 %s 时更容易成功.
research.requiresNode=仅节点位于附近时才出现
research.requiresNodeSpecific=当受到%s节点影响时才出现
research.requiresBiome=当处于%s这种生态群落才出现
@@ -228,7 +232,7 @@ magicbees.speciesMystical.description=在很多地方很常见,这种蜜蜂偶
magicbees.speciesSorcerous=巫术
magicbees.speciesSorcerous.description=喜欢温暖而干燥的环境,并且它们似乎有在干旱环境里聚汽成水的能力|Apinomicon
magicbees.speciesUnusual=非凡
magicbees.speciesUnusual.description="我的新收藏品:一种好奇宝宝一样的蜜蜂!"|初级养蜂人
magicbees.speciesUnusual.description="我的新收藏品:一种好奇宝宝一样的蜜蜂!"|初级养蜂员
magicbees.speciesAttuned=谐振
magicbees.speciesAttuned.description=它们飞行时仿佛得到了空中无形的引路者的帮助.|Apinomicon
@@ -251,7 +255,7 @@ magicbees.speciesSupernatural.description=蜜蜂行走在不可视境界线之
magicbees.speciesEthereal=以太
magicbees.speciesEthereal.description=幽灵般地,被来自天域的力量充能.|Apinomicon
magicbees.speciesWatery=水
magicbees.speciesWatery.description=喜欢潮湿的地方和流动的水.|Apinomicon
magicbees.speciesEarthen=土
@@ -267,7 +271,7 @@ magicbees.speciesScholarly=博学
magicbees.speciesScholarly.description="我难以确信,但我觉得它们比我更聪明..."|Yorae,图书馆馆员
magicbees.speciesSavant=专家
magicbees.speciesSavant.description=lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))).把这个解出来我就给你们蜂蜜.|Yorae的桌子上发现的便签
magicbees.speciesAware=感知
magicbees.speciesAware.description="它们看得见你的灵魂!"|Florastar,养蜂专家
magicbees.speciesSpirit=精神
@@ -278,7 +282,7 @@ magicbees.speciesSoul.description="Dread Pirate Roberts来收割你的灵魂啦!
magicbees.speciesSkulking=诡隐
magicbees.speciesSkulking.description=这些蜜蜂变得暴躁排外, 务必小心!|Apinomicon
magicbees.speciesGhastly=幽魂
magicbees.speciesGhastly.description="*叹息中*... 真的,神秘?"|Taveria, 恼怒的养蜂人
magicbees.speciesGhastly.description="*叹息中*...真的,神秘?"|Taveria, 恼怒的养蜂员
magicbees.speciesSpidery=蜘蛛
magicbees.speciesSpidery.description=蜘蛛蜂; 嗯.做蜘蛛蜂该做的事情.|佚名
magicbees.speciesSmouldering=闷烧
@@ -290,7 +294,7 @@ magicbees.speciesTCBrainy.description=蜂巢变得恶臭难闻,但这些家伙
magicbees.speciesTCBatty=火蝠
magicbees.speciesTCBatty.description=它们通过未知的方法吸引了许多火焰蝙蝠.|Apinomicon
magicbees.speciesTCChicken=家禽
magicbees.speciesTCChicken.description="咯咯.咯咯咯,咯咯咯咯! ...听到没?"|困惑的蜜蜂
magicbees.speciesTCChicken.description="咯咯.咯咯咯,咯咯咯咯!...听到没?"|困惑的蜜蜂
magicbees.speciesTCBeef=壮牛
magicbees.speciesTCBeef.description="哞哞,哞哞,哞哞.稍等,咋回事?"|困惑的蜜蜂
magicbees.speciesTCPork=猪啰
@@ -308,11 +312,11 @@ magicbees.speciesLordly=贵族
magicbees.speciesLordly.description=它们平和生活,共建和谐社会|古版Apinomicon残卷
magicbees.speciesDoctoral=博士
magicbees.speciesDoctoral.description="你们喜欢胶糖娃娃吗?"|戴着大围巾,手持蓝色盒子的陌生人
magicbees.speciesInfernal=地狱
magicbees.speciesInfernal.description=诞生于地狱深处的蜂种,具有特殊的力量|Apinomicon
magicbees.speciesHateful=憎恶
magicbees.speciesHateful.description=下界的生存环境丝毫无法改善这些蜜蜂的脾气. 请小心.|Apinomicon
magicbees.speciesHateful.description=下界的生存环境丝毫无法改善这些蜜蜂的脾气.请小心.|Apinomicon
magicbees.speciesSpiteful=恶意
magicbees.speciesSpiteful.description=他们在守卫自己的领土是表现的十分激烈,就像恶魔一样,用火焰驱赶敌人.|Apinomicon
magicbees.speciesWithering=凋零
@@ -359,16 +363,16 @@ magicbees.speciesFluix=末元
magicbees.speciesFluix.description=集红石,下界石英和赛特斯石英于一体,福鲁伊克斯水晶本身相当罕见,且不稳定,极易与TNT反应.|Apinomicon
magicbees.speciesDiamond=钻石
magicbees.speciesDiamond.description=闪光的结晶,硬比龙牙. 钻石恒久远,一颗永流传.|Apinomicon
magicbees.speciesDiamond.description=闪光的结晶,硬比龙牙.钻石恒久远,一颗永流传.|Apinomicon
magicbees.speciesEmerald=宝石
magicbees.speciesEmerald.description=据说它们曾造访伟大巫师统治之地,并将巫师之城的要素劫掠一空.|Apinomicon
magicbees.speciesApatite=磷化
magicbees.speciesApatite.description=这些东西真心是日夜牢骚不断.我关紧窗户躲进地下室,但蜜蜂尖锐的嗡嗡声却无处不在地透墙而过,乱我心绪.|养蜂人入门指南
magicbees.speciesApatite.description=这些东西真心是日夜牢骚不断.我关紧窗户躲进地下室,但蜜蜂尖锐的嗡嗡声却无处不在地透墙而过,乱我心绪.|养蜂员入门指南
magicbees.speciesMutable=善变
magicbees.speciesMutable.description=多变的性质,善变的个性.|Apinomicon
magicbees.speciesTransmuting=蜕变
magicbees.speciesTransmuting.description="我发誓这是昨天用石头建造的!"|Sengir, 愤怒的养蜂人
magicbees.speciesTransmuting.description="我发誓这是昨天用石头建造的!"|Sengir, 愤怒的养蜂员
magicbees.speciesCrumbling=崩溃
magicbees.speciesCrumbling.description=他们对周围环境有强烈的腐蚀作用,他们会迅速衰老.|Apinomicon
@@ -402,7 +406,7 @@ magicbees.speciesTCPure.description="蜜蜂中的卫士!"|MysteriousAges,神秘
magicbees.speciesTCHungry=饕餮
magicbees.speciesTCHungry.description=至今人们仍然无从得知这群蜜蜂是怎么从节点中提取到纯粹的元始精华的,也无人知晓它们究竟做了什么,人们只知道,这种处理的结果是可怕的漩涡.|Apinomicon
magicbees.speciesTCVoid=虚空
# Description is gibberish; don't bother translating. <3|Friendly Chinese ver. of this notes:请勿翻译下面这个条目(原文为拉丁语而不是英语),原因详见en.wikipedia.org/wiki/Lorem_ipsum
# Description is gibberish; don't bother translating. <3
magicbees.speciesTCVoid.description=§kNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit|?????
magicbees.speciesTCWispy=轻灵
magicbees.speciesTCWispy.description=它们的语言支离破碎,难以理解,也许它们在和某种超自然的生物沟通?|Apinomicon
@@ -470,12 +474,12 @@ magicbees.speciesTEWinsome=迷人
magicbees.speciesTEWinsome.description="我喜欢这一群,它们可爱极了!"|Jadedcat,整合包作者
magicbees.speciesTEEndearing=可爱
magicbees.speciesTEEndearing.description="催眠的力量,辅以邪恶的性情,这些蜜蜂怎么可能有这么可爱!"|Jadedcat,整合包作者
magicbees.speciesTESignalus=信素
magicbees.speciesTESignalus.description=这些蜜蜂是它们自己的安全措施.|Apinomicon
magicbees.speciesTELumius=流明
magicbees.speciesTELumius.description=相比于蜜蜂,其实它更像萤火虫,这个物种就像它的名字一样.|Apinomicon
magicbees.speciesRSAFluxed=通量
magicbees.speciesRSAFluxed.description="什么?蜜蜂可是管理员哦."|Marquis Muskrat
magicbees.speciesBMBloody=血腥
magicbees.speciesBMBloody.description=灌输以血之魔力,它们现在正追寻更强大的力量.|Apinomicon
magicbees.speciesBMBound=束缚
magicbees.speciesBMBound.description="你...一定会喜欢这个的!"|WayOfFlowingTime,不擅长开玩笑的人
magicbees.speciesBotRooted=生根
magicbees.speciesBotRooted.description="若以方(平)形(方)修剪,她们就不会在此扎(开)根(方)了."|MysteriousAges,不擅长开数学的玩笑
magicbees.speciesBotBotanic=植物
@@ -507,24 +511,24 @@ magicbees.effectMoveSpeed=瞬息
binniecore.allele.magicbees.effectMoveSpeed.desc=提升玩家移动速度
magicbees.effectSlowSpeed=时光扭曲
binniecore.allele.magicbees.effectSlowSpeed.desc=随时光流逝,或为玩家带来恶心和反胃
magicbees.effectWithering=凋灵
magicbees.effectWithering=凋零
binniecore.allele.magicbees.effectWithering.desc=所经之玩家,必受凋零之诅咒
magicbees.effectTransmuting=变幻
binniecore.allele.magicbees.effectTransmuting.desc=令方块的材质受各种因素影响而变化无常
magicbees.effectCrumbling=粉碎
binniecore.allele.magicbees.effectCrumbling.desc=让硬的材料变软
magicbees.effectInvisiblility=隐形
magicbees.effectInvisibility=隐形
binniecore.allele.magicbees.effectInvisiblility.desc=令玩家隐身
magicbees.effectVisRecharge=再充能
binniecore.allele.magicbees.effectVisRecharge.desc=为灵气节点充能
magicbees.effectNodeEmpower=强充能
binniecore.allele.magicbees.effectNodeEmpower.desc=永久提高灵气节点的能量
magicbees.effectNodeRepair=Magnification
binniecore.allele.magicbees.effectNodeEmpower.desc=给灵气节点带来活力
magicbees.effectNodeRepair=放大
binniecore.allele.magicbees.effectNodeRepair.desc=给灵气节点带来活力
magicbees.effectNodeTainting=腐化
binniecore.allele.magicbees.effectNodeEmpower.desc=污染灵气节点
binniecore.allele.magicbees.effectNodeTainting.desc=污染灵气节点
magicbees.effectNodePurifying=净化
binniecore.allele.magicbees.effectNodeEmpower.desc=净化灵气节点
binniecore.allele.magicbees.effectNodePurifying.desc=净化灵气节点
magicbees.effectNodeRavening=掠夺
binniecore.allele.magicbees.effectNodeEmpower.desc=以非正常的方式,让节点更加饥饿
magicbees.effectBrainy=怒尸
@@ -540,17 +544,17 @@ binniecore.allele.magicbees.effectSpidery.desc=随机生成蜘蛛
magicbees.effectAblaze=火光
binniecore.allele.magicbees.effectAblaze.desc=随机生成烈焰人
magicbees.effectCanine=嚎叫
binniecore.allele.magicbees.effectCurative.desc=随机生成狼
binniecore.allele.magicbees.effectCanine.desc=随机生成狼
magicbees.effectManaDrainer=漩涡
binniecore.allele.magicbees.effectManaDrainer.desc=随机生成魔力爬行者
magicbees.effectAMWisp=魂灵
binniecore.allele.magicbees.effectAMWisp.desc=随机生成spirits
binniecore.allele.magicbees.effectAMWisp.desc=随机生成魂灵
magicbees.effectTEBlizzy=暴雪
binniecore.allele.magicbees.effectTEBlizzy.desc=随机生成暴雪怪
magicbees.effectTEBlitz=Blitzy
binniecore.allele.magicbees.effectTEBlitz.desc=随机生成Blitzes
magicbees.effectTEBasalz=Basalzy
binniecore.allele.magicbees.effectTEBasalz.desc=随机生成Basalzes
magicbees.effectTEBlitz=狂风人
binniecore.allele.magicbees.effectTEBlitz.desc=随机生成狂风人
magicbees.effectTEBasalz=岩石人
binniecore.allele.magicbees.effectTEBasalz.desc=随机生成岩石人
magicbees.effectDreaming=梦乡
binniecore.allele.magicbees.effectDreaming.desc=将普通的材料转化为植物学中对应的材料.
magicbees.effectPorcine=Porcine
@@ -589,7 +593,7 @@ classification.time.description=通过巧妙的时间控制能力,这种蜜蜂
classification.soul=灵魂
classification.soul.description=它们在收集死者的魂魄,好可怕!|Apinomicon
classification.abominable=厌恶
classification.abominable.description=出生于灼热地狱的最深处,这种蜜蜂从来就没有给养蜂人留下过任何好的印象.|Apinomicon
classification.abominable.description=出生于灼热地狱的最深处,这种蜜蜂从来就没有给养蜂员留下过任何好的印象.|Apinomicon
classification.Extrinsic=外来
classification.Extrinsic.description=究竟这些蜜蜂是从蜜蜂科生物中进化而来的,还是由别的生物独立进化而来的,至今仍不得而知.|Apinomicon
classification.metallic=金属
@@ -615,57 +619,68 @@ tc.research_category.MAGICBEES=神秘养蜂学
tc.research_name.MB_Root=神秘养蜂学
tc.research_text.MB_Root=[MB] 向蜂群中加一点活力.
tc.research_page.MB_Root.1=欢迎来到神秘养蜂学的世界! 作为一个饲养魔法蜜蜂的新人,在跳进这个大坑前还是要了解些注意事项. 正如你的神秘养蜂使修行学园录取通知书所提到的那样, 有几种新的可用工具在等待你的发现. 这些工具包括一些林业工具的增强版,每种工具都有其特别的性质,此外还有几种新的蜂箱框架. <LINE> 你或许会发现还有一些新的可用蜜蜂等待你的发现---如果你能哄它们在特定环境下定居的话. 林业的写字台会帮你找出那些蜜蜂,然后你就成为了
tc.research_page.MB_Root.2=你的前辈羡慕嫉妒恨的对象,准确的说,那些不会使用魔法的同行羡慕嫉妒恨的对象. 另外别忘了给野外出现的新蜜蜂品种记笔记:这些笔记将会帮助你发现这些小蜜蜂的新的血统.
tc.research_page.MB_Root.1=欢迎来到神秘养蜂学的世界!作为一个饲养魔法蜜蜂的新人,在跳进这个大坑前还是要了解些注意事项.正如你的神秘养蜂使修行学园录取通知书所提到的那样, 有几种新的可用工具在等待你的发现.这些工具包括一些林业工具的增强版,每种工具都有其特别的性质,此外还有几种新的蜂箱框架.<LINE> 你或许会发现还有一些新的可用蜜蜂等待你的发现---如果你能哄它们在特定环境下定居的话.林业的写字台会帮你找出那些蜜蜂,然后你就成为了
tc.research_page.MB_Root.2=你的前辈羡慕嫉妒恨的对象,准确的说,那些不会使用魔法的同行羡慕嫉妒恨的对象.另外别忘了给野外出现的新蜜蜂品种记笔记:这些笔记将会帮助你发现这些小蜜蜂的新的血统.
tc.research_name.MB_LoreFragment=知识碎片
tc.research_text.MB_LoreFragment=[MB] 研究?不如说是搜索蜜蜂!
tc.research_page.MB_LoreFragment.1=在蜜蜂繁育的实验中,你或许会遇见某种智力与你相当的品种的蜜蜂. 好吧,然而,这情况或许不会发生. 但是它们依旧可能发现一些令人费解的参考资料,或者只是一小条信息,而这些东西或许就是你超常的智力在探索更广大的宇宙的答案时所错过的东西. <BR> 拜你嗡嗡嗡的热心朋友所赐,发现这些"东西"的位置后,将这些残卷重组完整的笔记成为了可能.
tc.research_page.MB_LoreFragment.1=在蜜蜂繁育的实验中,你或许会遇见某种智力与你相当的品种的蜜蜂.好吧,然而,这情况或许不会发生.但是它们依旧可能发现一些令人费解的参考资料,或者只是一小条信息,而这些东西或许就是你超常的智力在探索更广大的宇宙的答案时所错过的东西.<BR> 拜你嗡嗡嗡的热心朋友所赐,发现这些"东西"的位置后,将这些残卷重组完整的笔记成为了可能.
tc.research_name.MB_FrameMagic=魔法框架
tc.research_text.MB_FrameMagic=[MB] 将魔法融入养蜂
tc.research_page.MB_FrameMagic.1=这魔法框架是你平时所使用的普通的未处理框架的升级版. 制作工艺依旧十分简单,但是它却有着三倍于普通未处理框架的使用时长. 而且,不像其它那些拒绝魔力注入的框架,魔法框架所有的可附魔特性使其可以与一些特殊源质一起使用,并作用于蜂箱上.
tc.research_page.MB_FrameMagic.1=这魔法框架是你平时所使用的普通的未处理框架的升级版.制作工艺依旧十分简单,但是它却有着三倍于普通未处理框架的使用时长.而且,不像其它那些拒绝魔力注入的框架,魔法框架所有的可附魔特性使其可以与一些特殊源质一起使用,并作用于蜂箱上.
tc.research_name.MB_Scoop=奥法捕蜂网
tc.research_text.MB_Scoop=[MB] 轻拿轻放.
tc.research_page.MB_Scoop.1=普通的捕蜂网很不耐用,而且易碎. 作为神秘养蜂学的权威,你完全可以做得更好. 以神秘锭打造手柄,再以一定量秩序要素织网,你的新捕蜂网从此拥有了三倍耐久! <BR> 另外,这个设备中的神秘锭成分使它可以接受修复附魔.
tc.research_page.MB_Scoop.1=普通的捕蜂网很不耐用,而且易碎.作为神秘养蜂学的权威,你完全可以做得更好.以神秘锭打造手柄,再以一定量秩序要素织网,你的新捕蜂网从此拥有了三倍耐久!<BR> 另外,这个设备中的神秘锭成分使它可以接受修复附魔.
tc.research_name.MB_Grafter=奥法剪枝器
tc.research_text.MB_Grafter=[MB] 每次都会有树苗哦.
tc.research_page.MB_Grafter.1=简易的剪枝工具不仅无用还很脆弱,虽然定型剪枝工具确实好用,但绿宝石的稀有程度让它的获取相当令人恼火. 那么解决方案是什么? 自己动手做! <BR> 由神秘锭打造的奥法剪枝工具,和神秘锭打造的奥法捕蜂网一样,更坚固,还可附魔,绝对是基础林业员工具的不二选择. 但还是有一条使用警告,尽管它可以被附以修复附魔,它不寻常的性质决定了它依旧不是一个耐用的工具.
tc.research_page.MB_Grafter.1=简易的剪枝工具不仅无用还很脆弱,虽然定型剪枝工具确实好用,但绿宝石的稀有程度让它的获取相当令人恼火.那么解决方案是什么? 自己动手做!<BR> 由神秘锭打造的奥法剪枝工具,和神秘锭打造的奥法捕蜂网一样,更坚固,还可附魔,绝对是基础林业员工具的不二选择.但还是有一条使用警告,尽管它可以被附以修复附魔,它不寻常的性质决定了它依旧不是一个耐用的工具.
tc.research_name.MB_EssenceLife=虚假之命源质
tc.research_text.MB_EssenceLife=[MB] 冠以他名的玫瑰...
tc.research_page.MB_EssenceLife.1=由魔力所创造,这种源质在暴露在蜜蜂面前时显现出了不寻常的性质. 和普通的养蜂框架结合时,它便可以极大地延长蜂箱中辛勤工作的蜜蜂的寿命.
tc.research_page.MB_EssenceLife.1=由魔力所创造,这种源质在暴露在蜜蜂面前时显现出了不寻常的性质.和普通的养蜂框架结合时,它便可以极大地延长蜂箱中辛勤工作的蜜蜂的寿命.
tc.research_name.MB_EssenceDeath=暗影之墓源质
tc.research_text.MB_EssenceDeath=[MB] 离地六英尺不足.
tc.reseacrh_page.MB_EssenceDeath.1=暗影之墓源质引导着无数游荡于这个世界的..."自然"生物,走向死亡: 僵尸, 骷髅, 诸如此类. 暴露于这种能量下的蜜蜂会越来越迟缓, 寿命也会随之缩短. 一部分神秘养蜂家认为使用浸有此种源质的框架是一种十分残忍的行为,然而, 也有其他观点认为这是常规养蜂中不可避免的一部分, 有时还可以让那些蜜蜂们在它们有限的生命周期里紧张工作起来. <BR> 神秘养蜂学安全指南章程中建议使用念力或者特别长的钳子来拿取此框架.
tc.reseacrh_page.MB_EssenceDeath.1=暗影之墓源质引导着无数游荡于这个世界的..."自然"生物,走向死亡:僵尸, 骷髅, 诸如此类.暴露于这种能量下的蜜蜂会越来越迟缓, 寿命也会随之缩短.一部分神秘养蜂家认为使用浸有此种源质的框架是一种十分残忍的行为,然而, 也有其他观点认为这是常规养蜂中不可避免的一部分, 有时还可以让那些蜜蜂们在它们有限的生命周期里紧张工作起来.<BR> 神秘养蜂学安全指南章程中建议使用念力或者特别长的钳子来拿取此框架.
tc.research_name.MB_EssenceArmor=恒久不灭源质
tc.research_text.MB_EssenceArmor=[MB] 你胶水上的橡胶
tc.research_page.MB_EssenceArmor.1=由护甲源质蒸馏而来, 加以永久封印, 或者直到储存于其中的魔力弱化,直到破灭. 但就现在来说,它依旧是无敌的. 大多数时候确实如此. <BR> 虽然魔力框架确实有用,但它们依旧有些不耐用. 然而这种源质所带来的强化效果,将你的魔法框架提升到了一个全新的高度. 与这种源质结合的魔法框架将会极大地提升蜜蜂的寿命.
tc.research_page.MB_EssenceArmor.1=由护甲源质蒸馏而来, 加以永久封印, 或者直到储存于其中的魔力弱化,直到破灭.但就现在来说,它依旧是无敌的.大多数时候确实如此.<BR> 虽然魔法框架确实有用,但它们依旧有些不耐用.然而这种源质所带来的强化效果,将你的魔法框架提升到了一个全新的高度.与这种源质结合的魔法框架将会极大地提升蜜蜂的寿命.
tc.research_name.MB_EssenceUnstable=变换不定源质
tc.research_text.MB_EssenceUnstable=[MB] 不定之中的确定
tc.research_page.MB_EssenceUnstable.1=自然造就了它的不稳定, 变换不定源质可以只影响那些平时稳定的生物的系统,让那些系统不再那么可靠. 尽管大多数时候这的确不怎么好,神秘养蜂使们却已经发现,将蜂箱暴露在这种源质下会有双重效果:一方面蜜蜂工作速度加快,另一方面后代发生突变的概率也有了一定提高.
tc.research_page.MB_EssenceUnstable.1=自然造就了它的不稳定, 变换不定源质可以只影响那些平时稳定的生物的系统,让那些系统不再那么可靠.尽管大多数时候这的确不怎么好,神秘养蜂使们却已经发现,将蜂箱暴露在这种源质下会有双重效果:一方面蜜蜂工作速度加快,另一方面后代发生突变的概率也有了一定提高.
tc.research_name.MB_EssenceTime=迷失之时源质
tc.research_text.MB_EssenceTime=[MB] 没有须臾喜欢永远
tc.research_page.MB_EssenceTime.1=时间,无常物也. 它来,它去,但它究竟去哪? 然而作为一个可敬的神秘使,捕获那些流逝的光阴并转存以魔力形式对你来说似乎是可能的. 所以,现在从这个世界里回收多余时间不再是天方夜谭,似乎只需要在合适的地方以合适地方式使用它就可以了. 若是你自己亲自去获取这些瞬间的话会相当危险, 但若是让你的蜜蜂去获取这些额外的时间块话或许会很简单. <BR> 像往常一样魔力框架和此种源质结合在一起,就将足以延长你饲养的蜜蜂以一段时间的寿命.
tc.research_page.MB_EssenceTime.1=时间,无常物也.它来,它去,但它究竟去哪? 然而作为一个可敬的神秘使,捕获那些流逝的光阴并转存以魔力形式对你来说似乎是可能的.所以,现在从这个世界里回收多余时间不再是天方夜谭,似乎只需要在合适的地方以合适地方式使用它就可以了.若是你自己亲自去获取这些瞬间的话会相当危险, 但若是让你的蜜蜂去获取这些额外的时间块话或许会很简单.<BR> 像往常一样魔法框架和此种源质结合在一起,就将足以延长你饲养的蜜蜂以一段时间的寿命.
tc.research_name.MB_DimensionalSingularity=奇异维度
tc.research_text.MB_DimensionalSingularity=[MB] 量子之变幻,予汝以无尽之可能
tc.research_page.MB_DimensionalSingularity.1=虽然它表现出了和便携式洞穴相似的性质,它实质上是连接另一个世界的双向通道,或许这是...荒无人烟的世界. 将奇点用于储存你的认知维度之外的材料应该是可能的 - 这意味着它不会把你的物品栏弄得一团糟. 就现在来看它们并不是什么特别有用的材料,但是你应该能够找到解封它的特性的方法.
tc.research_page.MB_DimensionalSingularity.1=虽然它表现出了和便携式洞穴相似的性质,它实质上是连接另一个世界的双向通道,或许这是...荒无人烟的世界.将奇点用于储存你的认知维度之外的材料应该是可能的 - 这意味着它不会把你的物品栏弄得一团糟.就现在来看它们并不是什么特别有用的材料,但是你应该能够找到解封它的特性的方法.
tc.research_name.MB_EssenceOblivion=无尽漠视源质
tc.research_text.MB_EssenceOblivion=[MB] 封装恶毒于一侧
tc.research_page.MB_EssenceOblivion.1=杂交蜜蜂可能会非常令人恼火,尤其是在遇到那些长寿的品种的时候. 在少许机智和少许自命不凡的帮助下,你发现了应用奇异维度的方式:这种方式将会逐渐削弱你的蜜蜂的生命力. 然而,片刻之间削去大量生命也是可能的. 也许不会对它们造成太大伤害. <BR> 然而,讽刺的是,为此你需要获得第二个甚至更多的§5龙蛋§0. 或许有一种蜜蜂可以帮你突破这个局限.
tc.research_page.MB_EssenceOblivion.1=杂交蜜蜂可能会非常令人恼火,尤其是在遇到那些长寿的品种的时候.在少许机智和少许自命不凡的帮助下,你发现了应用奇异维度的方式:这种方式将会逐渐削弱你的蜜蜂的生命力.然而,片刻之间削去大量生命也是可能的.也许不会对它们造成太大伤害.<BR> 然而,讽刺的是,为此你需要获得第二个甚至更多的§5龙蛋§0.或许有一种蜜蜂可以帮你突破这个局限.
tc.research_name.MB_VisAuraProvider=灵气蜂箱加速器
tc.research_text.MB_VisAuraProvider=[MB] Vis(灵气)?Bis如何?
tc.research_page.MB_VisAuraProvider.1=向罕见花粉中注以灵气,并与黄金结合,便可制造出一种不寻常的晶体,若给这种晶体提供一些节点里的Vis,它就可以创造出一个充能灵气场,籍此调节魔法蜂箱周围的环境,并自然地把蜜蜂吸引过来.
tc.research_name.MB_ScoopVoid=虚空捕蜂网
tc.research_text.MB_ScoopVoid=黑暗之网
tc.research_page.MB_ScoopVoid.1=虚空金属是种奇怪的东西,现在该看看它可以为Apimancy带来什么了.虚空金属的自我再生特性也渗入了这种捕蜂网,真令人不安啊.<BR>希望它不会对蜜蜂造成太大影响...
tc.research_name.MB_GrafterVoid=虚空剪枝器
tc.research_text.MB_GrafterVoid=扭曲的杨柳
tc.research_page.MB_GrafterVoid.1=毫无疑问,神秘锭是一种极好的材料,但你最近发现的虚空金属,在随后的实验中显示出了在工具材料方面的巨大前景. 纤巧的剪枝器与拥有自我修复能力的虚空金属,看起来是一对最佳拍档. <BR>与奥法剪枝器类似,虚空剪枝器同样脆弱.
#Botania Lexicon entries
magicbees.botania.lexicon.subtitle=[魔法蜜蜂]
@@ -676,7 +691,7 @@ magicbees.botania.lexicon.manasteelGrafter=&1魔钢剪枝器&0
magicbees.botania.lexicon.beeAlfheim.title=艾尔芙海姆的魔法蜜蜂
magicbees.botania.lexicon.beeAlfheim.trade=换取&b精灵雄蜂&0
magicbees.botania.lexicon.beeAlfheim.0=&1精灵族养蜂人&0正急于探寻你 的蜜蜂的快乐,而且特别对你 可以提供的&1梦境雄蜂&0感兴趣。 作为回报,精灵们会以&b精灵雄 蜂&0为交换,这是艾尔芙海姆仅 有的一种蜜蜂。
magicbees.botania.lexicon.beeAlfheim.0=&1精灵族养蜂员&0正急于探寻你 的蜜蜂的快乐,而且特别对你 可以提供的&1梦境雄蜂&0感兴趣。 作为回报,精灵们会以&b精灵雄 蜂&0为交换,这是艾尔芙海姆仅 有的一种蜜蜂。
magicbees.botania.lexicon.beegonia.0=雄蜂是一个强健的聚居地的 未来的基石,但事实上,她们甚 至可以在一个你根本不知从 何下手的地方开始堆积起来。<br>现在隆重推出&1食蜂海棠&0,这是 一种解决蜜蜂过度拥挤的极 佳方案!只需把多余的雄蜂丢 给这朵花儿,她就会开始改 造蜜蜂的生命力并最终变为 魔力!
magicbees.botania.lexicon.beegonia.1=她们并不是很挑剔,她们会在 工作时持续产出一定量的魔 力,虽然这看起来确实“复杂”: 蜜蜂提供了比普通蜜蜂更多 的魔力,管它什么意思。
@@ -687,10 +702,10 @@ magicbees.botania.lexicon.hiveacynth.0=为了库存而到处寻找蜜蜂 是个
magicbees.botania.lexicon.hiveacynth.1=看起来重组出的蜜蜂基因是 随机的,然而只有“平凡的”蜜 蜂才可能被重组出来,其属性 也大概和野外发现的差不多。<br>有时候这些花儿们也会给她 们自己放个假,然后就产出了 一只自吹自擂的公主蜂,而不 是平时那些普普通通的雄蜂。 红石信号将会停止&1蜂信子&0 消耗魔力并生产蜜蜂的进程。
magicbees.botania.lexicon.hiveacynth.crafting=点击链接了解详情> beesbeesbees.com
magicbees.botania.lexicon.hibeescus.0=&5卑贱种&0蜜蜂,尽管和它们的同 类&2始祖种&0一样有用,但还是有 点瑕疵:大概在100代以后,它们 会开始患病,变得虚弱,甚至会 在你面前死去,就正好在你要 得到梦寐以求的新品种时候, 就正好在你要引发同行的愤 怒和嫉妒的时候。尽管,你知道 这个问题应该是可以解决的!
magicbees.botania.lexicon.hibeescus.0=&5卑贱种&0蜜蜂,尽管和它们的同 类&2始祖种&0一样有用,但还是有 点瑕疵:大概在100代以后,它们 会开始患病,变得虚弱,甚至会 在你面前死去,就正好在你要 得到梦寐以求的新品种时候, 就正好在你要引发同行的愤 怒和嫉妒的时候。尽管,你知道 这个问题应该是可以解决的!
magicbees.botania.lexicon.hibeescus.1=只要有足够的魔力、时间以及 和你站在一边的&1蜂木槿&0的帮助, 你就可以批量抹去野生&5卑贱种&0 蜜蜂天生的基因缺陷了。一定 要有耐心,因为&1蜂木槿&0的施法速 度相当慢,最长要整整两天!
magicbees.botania.lexicon.hibeescus.2=另外强烈建议节约魔力,因为 它对于魔力极度饥渴。向其 根系通入红石信号可以阻止 其吸收新的公主蜂或蜂后,但 不给予红石信号也可以阻止 其吸收公主蜂或蜂后,但不会 阻止已经开始的净化进程。
magicbees.botania.lexicon.hibeescus.crafting=仅为居心不良者使用。
magicbees.botania.lexicon.manaBooster.0=魔力蜂箱是一种非常自然的 让蜜蜂加快工作速度的方式, 但它也有一点...局限。 <br>幸运的是,活石和花瓣的特性 使得它们可以偶尔为蜜蜂充 能,从而使蜜蜂们更高产。 只需向&1魔力蜂箱加速器&0持续 提供魔力,它们就可以一直让 蜜蜂们保持高产状态。
magicbees.botania.lexicon.manaBooster.crafting=充满魔力的蜂群中!
magicbees.botania.lexicon.manaBooster.crafting=充满魔力的蜂群中!
+4 -4
View File
@@ -1,9 +1,9 @@
[
{
"modid": "MagicBees",
"version": "${version}",
"mcversion": "${mcversion}",
"name": "Magic Bees",
"modid": "${modId}",
"version": "${modVersion}",
"mcversion": "${minecraftVersion}",
"name": "${modName}",
"url": "http://bit.ly/XFDvLY",
"description": "Magic themed bee expansion for Forestry. TC4, Botania, EE3, AM 2, TE 3",
"authors": [ "MysteriousAges" ],