mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
the (wildly random, oh God) rebalancing
This commit is contained in:
parent
8eec4c2316
commit
2329d597b9
9 changed files with 23 additions and 23 deletions
|
@ -67,8 +67,8 @@ public class BlockAnimalGenerator extends BlockContainerImpl implements IVisuali
|
|||
float amountMod = child ? 0.667F : 1;
|
||||
|
||||
int timeAlive = data.getInteger(NaturesAura.MOD_ID + ":time_alive");
|
||||
int time = Math.min(MathHelper.floor((timeAlive - 15000) / 500F * timeMod), 200);
|
||||
int amount = Math.min(MathHelper.floor((timeAlive - 8000) / 250F * amountMod), 100);
|
||||
int time = Math.min(MathHelper.floor((timeAlive - 15000) / 500F * timeMod), 300);
|
||||
int amount = Math.min(MathHelper.floor((timeAlive - 8000) / 250F * amountMod), 150);
|
||||
if (time <= 0 || amount <= 0)
|
||||
return false;
|
||||
gen.setGenerationValues(time, amount);
|
||||
|
|
|
@ -50,7 +50,7 @@ public class TileEntityFlowerGenerator extends TileEntityImpl implements ITickab
|
|||
IBlockState state = this.world.getBlockState(pos);
|
||||
MutableInt curr = this.consumedRecently.computeIfAbsent(state, s -> new MutableInt());
|
||||
|
||||
int addAmount = 200;
|
||||
int addAmount = 250;
|
||||
int toAdd = Math.max(0, addAmount - curr.getValue());
|
||||
if (toAdd > 0) {
|
||||
if (NaturesAuraAPI.TYPE_OVERWORLD.isPresentInWorld(this.world)) {
|
||||
|
|
|
@ -41,7 +41,7 @@ public class TileEntityFurnaceHeater extends TileEntityImpl implements ITickable
|
|||
|
||||
BlockPos spot = IAuraChunk.getHighestSpot(this.world, this.pos, 20, this.pos);
|
||||
IAuraChunk chunk = IAuraChunk.getAuraChunk(this.world, spot);
|
||||
chunk.drainAura(spot, MathHelper.ceil((200 - time) / 4F));
|
||||
chunk.drainAura(spot, MathHelper.ceil((200 - time) / 6F));
|
||||
did = true;
|
||||
|
||||
if (this.world.getTotalWorldTime() % 15 == 0) {
|
||||
|
|
|
@ -58,7 +58,7 @@ public class TileEntityHopperUpgrade extends TileEntityImpl implements ITickable
|
|||
item.setDead();
|
||||
|
||||
BlockPos spot = IAuraChunk.getHighestSpot(this.world, this.pos, 25, this.pos);
|
||||
IAuraChunk.getAuraChunk(this.world, spot).drainAura(spot, 10);
|
||||
IAuraChunk.getAuraChunk(this.world, spot).drainAura(spot, 5);
|
||||
|
||||
PacketHandler.sendToAllAround(this.world, this.pos, 32,
|
||||
new PacketParticles((float) item.posX, (float) item.posY, (float) item.posZ, 10));
|
||||
|
|
|
@ -20,7 +20,7 @@ public class TileEntityOakGenerator extends TileEntityImpl implements ITickable
|
|||
while (!this.scheduledBigTrees.isEmpty()) {
|
||||
BlockPos pos = this.scheduledBigTrees.remove();
|
||||
if (this.world.getBlockState(pos).getBlock() instanceof BlockLog) {
|
||||
int toAdd = 500;
|
||||
int toAdd = 1000;
|
||||
while (toAdd > 0) {
|
||||
BlockPos spot = IAuraChunk.getLowestSpot(this.world, this.pos, 25, this.pos);
|
||||
toAdd -= IAuraChunk.getAuraChunk(this.world, spot).storeAura(spot, toAdd);
|
||||
|
|
|
@ -40,7 +40,7 @@ public class TileEntityPotionGenerator extends TileEntityImpl implements ITickab
|
|||
continue;
|
||||
}
|
||||
|
||||
int toAdd = ((effect.getAmplifier() * 6 + 1) * (effect.getDuration() / 30));
|
||||
int toAdd = ((effect.getAmplifier() * 7 + 1) * (effect.getDuration() / 25));
|
||||
while (toAdd > 0) {
|
||||
BlockPos spot = IAuraChunk.getLowestSpot(this.world, this.pos, 30, this.pos);
|
||||
toAdd -= IAuraChunk.getAuraChunk(this.world, spot).storeAura(spot, toAdd);
|
||||
|
|
|
@ -74,7 +74,7 @@ public class AnimalEffect implements IDrainSpotEffect {
|
|||
world.spawnEntity(chicken);
|
||||
|
||||
BlockPos closestSpot = IAuraChunk.getHighestSpot(world, item.getPosition(), 35, pos);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 150);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 20);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class AnimalEffect implements IDrainSpotEffect {
|
|||
this.setInLove(second);
|
||||
|
||||
BlockPos closestSpot = IAuraChunk.getHighestSpot(world, first.getPosition(), 35, pos);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 200);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 35);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class PlantBoostEffect implements IDrainSpotEffect {
|
|||
growable.grow(world, world.rand, plantPos, state);
|
||||
|
||||
BlockPos closestSpot = IAuraChunk.getHighestSpot(world, plantPos, 25, pos);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 200);
|
||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 35);
|
||||
|
||||
PacketHandler.sendToAllAround(world, plantPos, 32,
|
||||
new PacketParticles(plantPos.getX(), plantPos.getY(), plantPos.getZ(), 6));
|
||||
|
|
|
@ -112,48 +112,48 @@ public final class ModRecipes {
|
|||
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_iron"),
|
||||
Ingredient.fromItem(Items.IRON_INGOT), new ItemStack(ModItems.INFUSED_IRON),
|
||||
Ingredient.EMPTY, 300, 80).register();
|
||||
Ingredient.EMPTY, 150, 80).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_iron_block"),
|
||||
Helper.blockIng(Blocks.IRON_BLOCK), new ItemStack(ModBlocks.INFUSED_IRON),
|
||||
Ingredient.EMPTY, 2700, 700).register();
|
||||
Ingredient.EMPTY, 1350, 700).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_stone"),
|
||||
Helper.blockIng(Blocks.STONE), new ItemStack(ModBlocks.INFUSED_STONE),
|
||||
Ingredient.EMPTY, 150, 40).register();
|
||||
Ingredient.EMPTY, 75, 40).register();
|
||||
|
||||
Ingredient conversion = Helper.blockIng(ModBlocks.CONVERSION_CATALYST);
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "breath"),
|
||||
new NBTIngredient(ItemAuraBottle.setType(new ItemStack(ModItems.AURA_BOTTLE), NaturesAuraAPI.TYPE_END)),
|
||||
new ItemStack(Items.DRAGON_BREATH),
|
||||
conversion, 500, 80).register();
|
||||
conversion, 200, 80).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "leather"),
|
||||
Ingredient.fromItem(Items.ROTTEN_FLESH), new ItemStack(Items.LEATHER),
|
||||
conversion, 400, 50).register();
|
||||
conversion, 100, 50).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "soul_sand"),
|
||||
Helper.blockIng(Blocks.SAND), new ItemStack(Blocks.SOUL_SAND),
|
||||
conversion, 200, 100).register();
|
||||
conversion, 50, 100).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "nether_wart"),
|
||||
Helper.blockIng(Blocks.RED_MUSHROOM), new ItemStack(Items.NETHER_WART),
|
||||
conversion, 600, 250).register();
|
||||
conversion, 300, 250).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "prismarine"),
|
||||
Ingredient.fromItem(Items.QUARTZ), new ItemStack(Items.PRISMARINE_SHARD),
|
||||
conversion, 850, 200).register();
|
||||
conversion, 550, 200).register();
|
||||
|
||||
Ingredient crushing = Helper.blockIng(ModBlocks.CRUSHING_CATALYST);
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "bone"),
|
||||
Ingredient.fromItem(Items.BONE), new ItemStack(Items.DYE, 6, 15),
|
||||
crushing, 50, 40).register();
|
||||
crushing, 30, 40).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "sugar"),
|
||||
Ingredient.fromItem(Items.REEDS), new ItemStack(Items.SUGAR, 3),
|
||||
crushing, 50, 40).register();
|
||||
crushing, 30, 40).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "blaze"),
|
||||
Ingredient.fromItem(Items.BLAZE_ROD), new ItemStack(Items.BLAZE_POWDER, 4),
|
||||
crushing, 80, 60).register();
|
||||
crushing, 50, 60).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "glowstone"),
|
||||
Helper.blockIng(Blocks.GLOWSTONE), new ItemStack(Items.GLOWSTONE_DUST, 4),
|
||||
crushing, 50, 40).register();
|
||||
crushing, 30, 40).register();
|
||||
new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "sand"),
|
||||
Helper.blockIng(Blocks.COBBLESTONE), new ItemStack(Blocks.SAND),
|
||||
crushing, 50, 40).register();
|
||||
crushing, 30, 40).register();
|
||||
|
||||
new OfferingRecipe(new ResourceLocation(NaturesAura.MOD_ID, "sky_ingot"),
|
||||
new AmountIngredient(new ItemStack(ModItems.INFUSED_IRON, 3)),
|
||||
|
|
Loading…
Reference in a new issue