mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eccceab233 | ||
|
|
e5d696f210 | ||
|
|
0f59e8b4ef | ||
|
|
7248bac5d0 | ||
|
|
81cb972fff | ||
|
|
9589da0f00 | ||
|
|
b5cf82b574 | ||
|
|
c4cb9a19c6 | ||
|
|
8fb3407357 | ||
|
|
001f1b27f6 | ||
|
|
6429eea5d6 | ||
|
|
3ff6e91053 | ||
|
|
cdf3046e61 | ||
|
|
05476997e1 |
No files matched your search
@@ -1,51 +0,0 @@
|
||||
#!/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
|
||||
@@ -29,3 +29,4 @@ src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
*.DS_Store
|
||||
!gradlew.bat
|
||||
layout.json
|
||||
+7
-7
@@ -1,14 +1,14 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.9.7:dev')
|
||||
api('com.github.GTNewHorizons:ForestryMC:4.10.7:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.6.2:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.6.1:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.11.3-GTNH:api') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.7.25:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.7.3:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.1.7-GTNH:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.12.8-GTNH:api') {transitive = false}
|
||||
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.56:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.10-GTNH:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.285:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.7-GTNH:dev')
|
||||
}
|
||||
|
||||
+16
-5
@@ -14,7 +14,7 @@ modId = MagicBees
|
||||
modGroup = magicbees
|
||||
|
||||
# Whether to use modGroup as the maven publishing group.
|
||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||
# When false, com.github.GTNewHorizons is used.
|
||||
useModGroupForPublishing = false
|
||||
|
||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||
@@ -50,10 +50,10 @@ enableGenericInjection = false
|
||||
# Generate a class with a String field for the mod version named as defined below.
|
||||
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||
generateGradleTokenClass =
|
||||
generateGradleTokenClass = magicbees.Tags
|
||||
|
||||
# Name of the token containing the project's current version to generate/replace.
|
||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
||||
gradleTokenVersion = VERSION
|
||||
|
||||
# [DEPRECATED] Mod ID replacement token.
|
||||
gradleTokenModId =
|
||||
@@ -70,7 +70,7 @@ gradleTokenGroupName =
|
||||
# The string's content will be replaced with your mod's 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
|
||||
replaceGradleTokenInFile =
|
||||
|
||||
# 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.
|
||||
@@ -85,6 +85,11 @@ accessTransformersFile =
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = false
|
||||
|
||||
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||
separateMixinSourceSet =
|
||||
|
||||
# Adds some debug arguments like verbose output and class export.
|
||||
usesMixinDebug = false
|
||||
|
||||
@@ -117,9 +122,15 @@ minimizeShadowedDependencies = true
|
||||
# If disabled, won't rename the shadowed classes.
|
||||
relocateShadowedDependencies = true
|
||||
|
||||
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
includeWellKnownRepositories = true
|
||||
|
||||
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||
# list of strings, with the acceptable keys being(case does not matter):
|
||||
# cursemaven
|
||||
# modrinth
|
||||
excludeWellKnownRepositories =
|
||||
|
||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -84,7 +86,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
@@ -203,7 +205,7 @@ fi
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
before_install:
|
||||
- ./gradlew setupCIWorkspace
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.23'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
|
||||
}
|
||||
|
||||
|
||||
@@ -59,13 +59,17 @@ public class AlleleEffectCrumbling extends AlleleEffect {
|
||||
IBeeModifier beeModifier = BeeManager.beeRoot.createBeeHousingModifier(housing);
|
||||
|
||||
// Get random coords within territory
|
||||
int xRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
|
||||
int yRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
|
||||
int zRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
|
||||
int[] randomCoords = new int[3];
|
||||
for (int i = 0; i < 3; i++) {
|
||||
int range = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[i]);
|
||||
if (range > 0) {
|
||||
randomCoords[i] = world.rand.nextInt(range) - range / 2;
|
||||
}
|
||||
}
|
||||
|
||||
int xCoord = coords.posX + world.rand.nextInt(xRange) - xRange / 2;
|
||||
int yCoord = coords.posY + world.rand.nextInt(yRange) - yRange / 2;
|
||||
int zCoord = coords.posZ + world.rand.nextInt(zRange) - zRange / 2;
|
||||
int xCoord = coords.posX + randomCoords[0];
|
||||
int yCoord = coords.posY + randomCoords[1];
|
||||
int zCoord = coords.posZ + randomCoords[2];
|
||||
|
||||
Block block = world.getBlock(xCoord, yCoord, zCoord);
|
||||
if (block != null) {
|
||||
|
||||
@@ -37,13 +37,17 @@ public class AlleleEffectTransmuting extends AlleleEffect {
|
||||
IBeeModifier beeModifier = BeeManager.beeRoot.createBeeHousingModifier(housing);
|
||||
|
||||
// Get random coords within territory
|
||||
int xRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
|
||||
int yRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
|
||||
int zRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
|
||||
int[] randomCoords = new int[3];
|
||||
for (int i = 0; i < 3; i++) {
|
||||
int range = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[i]);
|
||||
if (range > 0) {
|
||||
randomCoords[i] = world.rand.nextInt(range) - range / 2;
|
||||
}
|
||||
}
|
||||
|
||||
int xCoord = coords.posX + world.rand.nextInt(xRange) - xRange / 2;
|
||||
int yCoord = coords.posY + world.rand.nextInt(yRange) - yRange / 2;
|
||||
int zCoord = coords.posZ + world.rand.nextInt(zRange) - zRange / 2;
|
||||
int xCoord = coords.posX + randomCoords[0];
|
||||
int yCoord = coords.posY + randomCoords[1];
|
||||
int zCoord = coords.posZ + randomCoords[2];
|
||||
|
||||
BiomeGenBase biome = world.getBiomeGenForCoords(xCoord, zCoord);
|
||||
transmutationController.attemptTransmutations(
|
||||
|
||||
@@ -28,6 +28,7 @@ public class BlockEnchantedEarth extends Block {
|
||||
setBlockTextureName(CommonProxy.DOMAIN + ":enchantedEarth");
|
||||
setTickRandomly(true);
|
||||
setStepSound(soundTypeGravel);
|
||||
setHardness(0.1F);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -426,14 +426,16 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(new ItemStack(Items.emerald), "xxx", "xxx", "xxx", 'x', "nuggetEmerald"));
|
||||
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
ItemInterface.getItemStack("apatite"),
|
||||
"xxx",
|
||||
"xxx",
|
||||
"xxx",
|
||||
'x',
|
||||
Config.nuggets.getStackForType(NuggetType.APATITE)));
|
||||
if (ItemInterface.getItemStack("apatite") != null) {
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
ItemInterface.getItemStack("apatite"),
|
||||
"xxx",
|
||||
"xxx",
|
||||
"xxx",
|
||||
'x',
|
||||
Config.nuggets.getStackForType(NuggetType.APATITE)));
|
||||
}
|
||||
|
||||
output = Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY);
|
||||
GameRegistry.addRecipe(
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package magicbees.main.utils;
|
||||
|
||||
import magicbees.Tags;
|
||||
|
||||
/**
|
||||
* Using some of the VersionInfo code from cofh. (Thanks, Lemming!)
|
||||
*
|
||||
@@ -8,7 +10,7 @@ package magicbees.main.utils;
|
||||
public class VersionInfo {
|
||||
|
||||
public static final String ModName = "MagicBees";
|
||||
public static final String Version = "GRADLETOKEN_VERSION";
|
||||
public static final String Version = Tags.VERSION;
|
||||
public static final String GUI_FACTORY_CLASS = "magicbees.client.gui.GuiFactory";
|
||||
public static final String Logo = "/gfx/magicbees/logo.png";
|
||||
public static final String Depends = "required-after:Forestry@[4.2.5,);after:Baubles;after:Thaumcraft;after:ExtraBees;after:EE3;after:ArsMagica;after:TConstruct;after:Railcraft;after:ThermalFoundation;after:ThermalExpansion;after:RedstoneArsenal;after:AWWayofTime;after:Botania;after:appliedenergistics2";
|
||||
|
||||
@@ -638,9 +638,11 @@ public class ThaumcraftHelper implements IModHelper {
|
||||
new ItemStack(item.getItem(), 1, ForestryHelper.BlockResource.APATITE.ordinal()),
|
||||
list.copy());
|
||||
item = ItemInterface.getItemStack(ForestryHelper.Name, "apatite");
|
||||
ThaumcraftApi.registerObjectTag(
|
||||
new ItemStack(item.getItem(), 1, item.getItemDamage()),
|
||||
list.copy().add(Aspect.CRYSTAL, 2));
|
||||
if (item != null) {
|
||||
ThaumcraftApi.registerObjectTag(
|
||||
new ItemStack(item.getItem(), 1, item.getItemDamage()),
|
||||
list.copy().add(Aspect.CRYSTAL, 2));
|
||||
}
|
||||
|
||||
list = new AspectList().add(Aspect.MOTION, 2).add(Aspect.FLIGHT, 1);
|
||||
item = ItemInterface.getItemStack("beeDroneGE");
|
||||
|
||||
@@ -182,7 +182,7 @@ public class SubTileHibeescus extends SubTileFunctional {
|
||||
}
|
||||
|
||||
protected float getManaPerOpTick() {
|
||||
return getFinalOperationManaCost() / OPERATION_TICKS_TIME;
|
||||
return (float) getFinalOperationManaCost() / OPERATION_TICKS_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -40,6 +40,7 @@ tile.magicApiary.name=Magic Apiary
|
||||
tile.visAuraProvider.name=Vis Apiary Booster
|
||||
tile.apimancersDrainer.name=Apimancer's Drainer
|
||||
tile.manaAuraProvider.name=Mana Apiary Booster
|
||||
tile.hive.name=Hive
|
||||
tile.hive.curious.name=Curious Hive
|
||||
tile.hive.unusual.name=Unusual Hive
|
||||
tile.hive.deep.name=Deep Hive
|
||||
@@ -49,6 +50,7 @@ tile.hive.oblivion.name=Oblivion Hive
|
||||
tile.enchantedEarth.name=Enchanted Earth
|
||||
|
||||
#Combs
|
||||
item.comb.name=Comb
|
||||
comb.mundane=Mundane Comb
|
||||
comb.molten=Molten Comb
|
||||
comb.occult=Occult Comb
|
||||
@@ -78,11 +80,13 @@ comb.TElux=Lux Comb
|
||||
comb.TEendearing=Endearing Comb
|
||||
|
||||
#Waxes
|
||||
item.wax.name=Wax
|
||||
wax.magic=Magic Wax
|
||||
wax.soul=Soulful Wax
|
||||
wax.amnesic=Amnesic Wax
|
||||
|
||||
#Drops
|
||||
item.drop.name=Drop
|
||||
drop.enchanting=Enchanting Drop
|
||||
drop.intellect=Intellect Drop
|
||||
drop.destabilized=Destabilized Drop
|
||||
@@ -91,10 +95,12 @@ drop.lux=Lux Drop
|
||||
drop.endearing=Endearing Drop
|
||||
|
||||
#Pollens
|
||||
item.pollen.name=Pollen
|
||||
pollen.unusual=Unusual Pollen
|
||||
pollen.phased=Phased Pollen
|
||||
|
||||
#Nuggets
|
||||
item.beeNugget.name=Nugget
|
||||
nugget.iron=Iron Nugget
|
||||
nugget.steel=Steel Nugget
|
||||
nugget.copper=Copper Nugget
|
||||
@@ -106,6 +112,7 @@ nugget.emerald=Emerald Shard
|
||||
nugget.apatite=Apatite Shard
|
||||
|
||||
#Propolises
|
||||
item.propolis.name=Propolis
|
||||
propolis.dull=Ordered Propolis
|
||||
propolis.air=Breezey Propolis
|
||||
propolis.fire=Burning Propolis
|
||||
@@ -115,6 +122,7 @@ propolis.magic=Chaotic Propolis
|
||||
propolis.unstable=Unstable Propolis
|
||||
|
||||
#Misc resources
|
||||
item.miscResources.name=Resource
|
||||
resource.fragment=Lore Fragment
|
||||
resource.lump=Aromatic Lump
|
||||
resource.fertilizer=Concentrated Compound
|
||||
@@ -151,7 +159,9 @@ item.frenziedFrame.name=Maddening Frame of Frenzy
|
||||
item.bloodSoakedFrame.name=Blood Frame
|
||||
|
||||
#Capsules
|
||||
item.capsule.magic.name=Magic Capsule
|
||||
capsule.magic=%s Magic Capsule
|
||||
item.capsule.void.name=Void Capsule
|
||||
capsule.void=%s Void Capsule
|
||||
|
||||
#Liquids
|
||||
@@ -203,6 +213,8 @@ moon.new=New Moon
|
||||
#moon.alt.new=
|
||||
|
||||
#Backpack
|
||||
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
|
||||
item.backpack.thaumaturgeT2.name=Thaumaturge's Backpack
|
||||
backpack.thaumaturge=Thaumaturge's Backpack
|
||||
|
||||
#Itemgroups
|
||||
|
||||
Reference in new issue
Block a user