Compare commits

...
25 Commits
Author SHA1 Message Date
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
Dream-Master 5e2543027d fix broken gradle properties 2020-03-08 18:13:40 +01:00
Dream-Master 74afd10913 Merge remote-tracking branch 'TataTawa/1.7.10-krypt' into 1.7.10-krypt
# Conflicts:
#	.gitignore
#	gradle.properties
2020-03-08 18:10:13 +01:00
Dream-Master 1ef16b4dba Update gradle
not working
add libs
add gitignore
2020-03-08 18:03:01 +01:00
TataTawa c1cc32b2f6 Merge pull request #1 from ForestryMC/mc-1.7.10
[1.7.10] Thaumcraft/Thermal compat updates and fixes (#68)
2019-12-30 11:02:38 +08:00
KryptonCaptain 6c28a687ab [1.7.10] Thaumcraft/Thermal compat updates and fixes (#68)
* quick fixes 1

Fix for Brainy producing a deprecated Thaumcraft item

* quick fixes 2

Added TE signalum and lumium bees
Investigating why Amped/Rocking spawn Blizz instead of respective TE mobs

* More Thaumcraft compat

Fixed only some hives having aspects assigned
Removed the [MB] tag from research. This hasn't been needed since TC3, when addons didn't have their own tabs
Added Void metal scoop and grafter for the eldritch-inclined apiarists
Added uncommon rarity to Thaumium scoop/grafter for consistant tool look
2018-06-15 16:22:12 +02:00
27 changed files with 939 additions and 270 deletions

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
if [[ -d "run/crash-reports" ]]; then
echo "Crash reports detected:"
cat $directory/*
exit 1
fi
if grep --quiet "Fatal errors were detected" server.log; then
echo "Fatal errors detected:"
cat server.log
exit 1
fi
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then
echo "Server force stopped:"
cat server.log
exit 1
fi
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then
echo "Server didn't finish startup:"
cat server.log
exit 1
fi
echo "No crash reports detected"
exit 0
+45
View File
@@ -0,0 +1,45 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build and test
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup the workspace
run: ./gradlew setupCIWorkspace
- name: Build the mod
run: ./gradlew build
- name: Run server for 1.5 minutes
run: |
mkdir run
echo "eula=true" > run/eula.txt
timeout 90 ./gradlew runServer | tee --append server.log || true
- name: Test no errors reported during server run
run: |
chmod +x .github/scripts/test-no-error-reports.sh
.github/scripts/test-no-error-reports.sh
+61
View File
@@ -0,0 +1,61 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Release tagged build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup the workspace
run: ./gradlew setupCIWorkspace
- name: Build the mod
run: ./gradlew build
- name: Release under current tag
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
prerelease: false
title: "${{ env.RELEASE_VERSION }}"
files: build/libs/*.jar
- name: Set repository owner and name
run: |
echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Publish package
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACT_GROUP_ID: com.github.${{ env.REPOSITORY_OWNER }}
ARTIFACT_ID: "${{ env.REPOSITORY_NAME }}"
ARTIFACT_VERSION: "${{ env.RELEASE_VERSION }}"
REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}"
REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}"
+31 -103
View File
@@ -1,103 +1,31 @@
# 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
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
*.bat
LICENSE*
forge*
CREDITS*
MinecraftForge*
README.txt
*.psd
*.pdn
/src/main/resources/assets/thaumcraft
##API
/src/api
/models
.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
src/main/resources/mixins.*.json
*.bat
*.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
+538 -45
View File
@@ -1,59 +1,360 @@
//version: 1641429628
/*
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/SinTh0r4s/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 java.util.concurrent.TimeUnit
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
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 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.5'
}
}
repositories {
maven {
name = "forestry"
url = "http://maven.ic2.player.to/"
}
ivy {
name "Thaumcraft"
artifactPattern "https://dl.dropboxusercontent.com/u/47135879/[module]-deobf-${project.version_mc}-[revision].[ext]"
}
//ivy {
// name "Botania"
// artifactPattern "http://botaniamod.net/files/deobf/[module] [revision]-deobf.[ext]"
//}
plugins {
id 'idea'
id 'scala'
id("org.ajoberstar.grgit") version("3.1.1")
id("com.github.johnrengelman.shadow") version("4.0.4")
id("com.palantir.git-version") version("0.12.3")
id("maven-publish")
}
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"
def projectJavaVersion = JavaLanguageVersion.of(8)
sourceCompatibility = 1.6
targetCompatibility = 1.6
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")
String javaSourceDir = "src/main/java/"
String scalaSourceDir = "src/main/scala/"
String targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/")
String targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/")
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
throw new GradleException("Could not resolve \"modGroup\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
}
if(apiPackage) {
targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
throw new GradleException("Could not resolve \"apiPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
}
}
if(accessTransformersFile) {
String targetFile = "src/main/resources/META-INF/" + accessTransformersFile
if(getFile(targetFile).exists() == false) {
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("\\.", "/")
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
throw new GradleException("Could not resolve \"mixinsPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
}
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"
if((getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists()) == false) {
throw new GradleException("Could not resolve \"mixinPlugin\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava)
}
}
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"
if((getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists()) == false) {
throw new GradleException("Could not resolve \"coreModClass\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava)
}
}
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
'git config core.fileMode false'.execute()
// Pulls version from git tag
try {
version = minecraftVersion + "-" + gitVersion()
}
catch (Exception e) {
throw new IllegalStateException("This mod must be version controlled by Git AND the repository must provide at least one tag!");
}
group = modGroup
if(project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
archivesBaseName = customArchiveBaseName
}
else {
archivesBaseName = modId
}
minecraft {
version = project.version_mc + "-" + project.version_forge
runDir = "."
replace '@VERSION@', project.version_mod
replace '@MCVERSION@', project.version_mc
version = minecraftVersion + "-" + forgeVersion + "-" + minecraftVersion
runDir = "run"
if (replaceGradleTokenInFile) {
replaceIn replaceGradleTokenInFile
if(gradleTokenModId) {
replace gradleTokenModId, modId
}
if(gradleTokenModName) {
replace gradleTokenModName, modName
}
if(gradleTokenVersion) {
replace gradleTokenVersion, versionDetails().lastTag
}
if(gradleTokenGroupName) {
replace gradleTokenGroupName, modGroup
}
}
}
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 {
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'
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("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
// 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.3.3:dev")
}
}
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()) {
getFile("/src/main/resources/mixins." + modId + ".json").text = """{
"required": true,
"minVersion": "0.7.11",
"package": "${modGroup}.${mixinsPackage}",
"plugin": "${modGroup}.${mixinPlugin}",
"refmap": "${mixingConfigRefMap}",
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_8"
}
"""
}
}
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 {
def arguments = []
if(usesMixins.toBoolean()) {
arguments += [
"--mods=../build/libs/$modId-${version}.jar",
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
]
}
if(developmentEnvironmentUserName) {
arguments += [
"--username",
developmentEnvironmentUserName
]
}
args(arguments)
}
runServer {
def arguments = []
if (usesMixins.toBoolean()) {
arguments += [
"--mods=../build/libs/$modId-${version}.jar",
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
]
}
args(arguments)
}
tasks.withType(JavaExec).configureEach {
javaLauncher.set(
javaToolchains.launcherFor {
languageVersion = projectJavaVersion
}
)
}
processResources
@@ -65,31 +366,223 @@ processResources
// 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
expand "minecraftVersion": project.minecraft.version,
"modVersion": versionDetails().lastTag,
"modId": modId,
"modName": modName
}
if(usesMixins.toBoolean()) {
from refMap
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
idea {
module {
inheritOutputDirs = true
def getManifestAttributes() {
def manifestAttributes = [:]
if(containsMixinsAndOrCoreModOnly.toBoolean() == false && (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() == false
]
}
return manifestAttributes
}
task sourcesJar(type: Jar) {
from (sourceSets.main.allJava)
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 deobfJar(type: Jar) { // Generate deobfuscated
from sourceSets.main.output
classifier = 'deobf'
task apiJar(type: Jar) {
from (sourceSets.main.allJava) {
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 {
archives deobfJar
archives sourcesJar
archives devJar
if(apiPackage) {
archives apiJar
}
}
task fullBuild(dependsOn: ['build', 'deobfJar']) {
}
// publishing
publishing {
publications {
maven(MavenPublication) {
artifact source: jar
artifact source: sourcesJar, classifier: "src"
artifact source: devJar, classifier: "dev"
if (apiPackage) {
artifact source: apiJar, classifier: "api"
}
groupId = System.getenv("ARTIFACT_GROUP_ID") ?: group
artifactId = System.getenv("ARTIFACT_ID") ?: project.name
version = System.getenv("ARTIFACT_VERSION") ?: project.version
}
}
repositories {
maven {
String owner = System.getenv("REPOSITORY_OWNER") ?: "Unknown"
String repositoryName = System.getenv("REPOSITORY_NAME") ?: "Unknown"
String githubRepositoryUrl = "https://maven.pkg.github.com/$owner/$repositoryName"
name = "GitHubPackages"
url = githubRepositoryUrl
credentials {
username = System.getenv("GITHUB_ACTOR") ?: "NONE"
password = System.getenv("GITHUB_TOKEN") ?: "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 {
println("Build script update available! Run 'gradle updateBuildScript'")
}
}
static URL availableBuildScriptUrl() {
new URL("https://raw.githubusercontent.com/SinTh0r4s/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 } }
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'
}
// Helper methods
def checkPropertyExists(String propertyName) {
if (project.hasProperty(propertyName) == false) {
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/SinTh0r4s/ExampleMod1.7.10/blob/main/gradle.properties")
}
}
def getFile(String relativePath) {
return new File(projectDir, relativePath)
}
+16
View File
@@ -0,0 +1,16 @@
// Add your dependencies here
dependencies {
compile("com.github.GTNewHorizons:ForestryMC:master-SNAPSHOT:dev")
compileOnly("com.github.GTNewHorizons:Baubles:master-SNAPSHOT:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Botania:master-SNAPSHOT: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.
+64 -11
View File
@@ -1,11 +1,64 @@
version_major=2
version_minor=5
version_rev=2
version_forestry=4.2.+
version_botania=r1.8-248
version_baubles=1.0.1.10
version_thaumcraft=4.2.3.5
version_mc=1.7.10
version_forge=10.13.4.1614-1.7.10
modName = Magic Bees
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = MagicBees
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 @@
#Wed Jul 02 15:54:47 CDT 2014
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-2.0-bin.zip
Vendored
+77 -53
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.
#
##############################################################################
##
@@ -6,47 +22,6 @@
##
##############################################################################
# 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"
@@ -61,9 +36,49 @@ while [ -h "$PRG" ] ; do
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >&-
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >&-
cd "$SAVED" >/dev/null
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='"-Xmx64m" "-Xms64m"'
# 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
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
@@ -90,7 +105,7 @@ location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
@@ -110,10 +125,11 @@ 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"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
@@ -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
+20 -10
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
@@ -8,14 +24,14 @@
@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 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="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
@@ -46,10 +62,9 @@ echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
@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.
+15
View File
@@ -0,0 +1,15 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name = "ic2"
url = "https://maven.ic2.player.to/"
metadataSources {
mavenPom()
artifact()
}
}
maven {
url = "https://jitpack.io"
}
}
@@ -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;
}
@@ -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
@@ -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";
@@ -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
@@ -135,7 +135,7 @@ resource.startNode=蜜蜂与魔法
resource.crystalAspect=晶化%s要素
#Frames
item.frameMagic.name=魔力框架
item.frameMagic.name=魔法框架
item.frameResilient.name=弹力框架
item.frameGentle.name=柔性框架
item.frameMetabolic.name=代谢框架
@@ -278,7 +278,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 +290,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=猪啰
@@ -312,7 +312,7 @@ 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,7 +359,7 @@ 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=磷化
@@ -519,7 +519,7 @@ magicbees.effectVisRecharge=再充能
binniecore.allele.magicbees.effectVisRecharge.desc=为灵气节点充能
magicbees.effectNodeEmpower=强充能
binniecore.allele.magicbees.effectNodeEmpower.desc=永久提高灵气节点的能量
magicbees.effectNodeRepair=Magnification
magicbees.effectNodeRepair=放大
binniecore.allele.magicbees.effectNodeEmpower.desc=给灵气节点带来活力
magicbees.effectNodeTainting=腐化
binniecore.allele.magicbees.effectNodeEmpower.desc=污染灵气节点
@@ -544,13 +544,13 @@ binniecore.allele.magicbees.effectCurative.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
@@ -615,52 +615,52 @@ 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如何?
@@ -687,7 +687,7 @@ 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=仅为居心不良者使用。
+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" ],