mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
flixes
This commit is contained in:
parent
c55c8c5da1
commit
3da96091da
15
changelog
15
changelog
@ -1,14 +1,7 @@
|
|||||||
## Added
|
|
||||||
* Steel trapdoor
|
|
||||||
* When open with a ladder below it, it too will act like a ladder
|
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
* Updated chinese localization
|
* The chemistry achievement now requires the new chemical plant
|
||||||
* Improved performance for many nodespace operations
|
* The new chemical plant can now be used to upgrade the meteorite sword
|
||||||
* .35 can now use a new ammo type
|
|
||||||
* Balefire mini nukes are now craftable
|
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
* Fixed chemical plant recipe config defaulting to an output chance of 0%
|
* Fixed crash caused by breaking a tool while the fortune or silk touch ability is enabled
|
||||||
* Potentially fixed an issue where chunks aren't properly force loaded when a nuclear explosion spawns, causing missiles to not work most of the time
|
* Fixed NTM adding mob spawns to the mushroom island
|
||||||
* Fixed taint-tipped missile not correctly spawning taint most of the time
|
|
||||||
@ -31,6 +31,7 @@ import net.minecraft.entity.EntityLiving;
|
|||||||
import net.minecraft.entity.EnumCreatureType;
|
import net.minecraft.entity.EnumCreatureType;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
|
import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
|
||||||
|
import net.minecraft.world.biome.BiomeGenMushroomIsland;
|
||||||
import net.minecraftforge.common.BiomeDictionary;
|
import net.minecraftforge.common.BiomeDictionary;
|
||||||
import net.minecraftforge.common.BiomeDictionary.Type;
|
import net.minecraftforge.common.BiomeDictionary.Type;
|
||||||
|
|
||||||
@ -279,6 +280,7 @@ public class EntityMappings {
|
|||||||
for(BiomeGenBase biome : biomes) {
|
for(BiomeGenBase biome : biomes) {
|
||||||
|
|
||||||
if(biome == null) continue;
|
if(biome == null) continue;
|
||||||
|
if(biome instanceof BiomeGenMushroomIsland) continue;
|
||||||
|
|
||||||
List<SpawnListEntry> spawns = biome.getSpawnableList(typeOfCreature);
|
List<SpawnListEntry> spawns = biome.getSpawnableList(typeOfCreature);
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public interface IToolHarvestAbility extends IBaseAbility {
|
|||||||
// Even if can be forced somehow, the player doesn't gain any
|
// Even if can be forced somehow, the player doesn't gain any
|
||||||
// benefit from it.
|
// benefit from it.
|
||||||
ItemStack stack = player.getHeldItem();
|
ItemStack stack = player.getHeldItem();
|
||||||
EnchantmentUtil.removeEnchantment(stack, Enchantment.silkTouch);
|
if(stack != null) EnchantmentUtil.removeEnchantment(stack, Enchantment.silkTouch);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ public interface IToolHarvestAbility extends IBaseAbility {
|
|||||||
// Even if can be forced somehow, the player doesn't gain any
|
// Even if can be forced somehow, the player doesn't gain any
|
||||||
// benefit from it.
|
// benefit from it.
|
||||||
ItemStack stack = player.getHeldItem();
|
ItemStack stack = player.getHeldItem();
|
||||||
EnchantmentUtil.removeEnchantment(stack, Enchantment.fortune);
|
if(stack != null) EnchantmentUtil.removeEnchantment(stack, Enchantment.fortune);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -27,32 +27,32 @@ public class ToolPreset {
|
|||||||
this.harvestAbilityLevel = harvestAbilityLevel;
|
this.harvestAbilityLevel = harvestAbilityLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChatComponentText getMessage() {
|
public ChatComponentText getMessage() {
|
||||||
if (isNone()) {
|
if(isNone()) {
|
||||||
return ChatBuilder.start("[Tool ability deactivated]").color(EnumChatFormatting.GOLD).flush();
|
return ChatBuilder.start("[Tool ability deactivated]").color(EnumChatFormatting.GOLD).flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean hasArea = areaAbility != IToolAreaAbility.NONE;
|
boolean hasArea = areaAbility != IToolAreaAbility.NONE;
|
||||||
boolean hasHarvest = harvestAbility != IToolHarvestAbility.NONE;
|
boolean hasHarvest = harvestAbility != IToolHarvestAbility.NONE;
|
||||||
|
|
||||||
ChatBuilder builder = ChatBuilder.start("[Enabled ");
|
|
||||||
|
|
||||||
if (hasArea) {
|
ChatBuilder builder = ChatBuilder.start("[Enabled ");
|
||||||
builder.nextTranslation(areaAbility.getName());
|
|
||||||
builder.next(areaAbility.getExtension(areaAbilityLevel));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasArea && hasHarvest) {
|
if(hasArea) {
|
||||||
builder.next(" + ");
|
builder.nextTranslation(areaAbility.getName());
|
||||||
}
|
builder.next(areaAbility.getExtension(areaAbilityLevel));
|
||||||
|
}
|
||||||
|
|
||||||
if (hasHarvest) {
|
if(hasArea && hasHarvest) {
|
||||||
builder.nextTranslation(harvestAbility.getName());
|
builder.next(" + ");
|
||||||
builder.next(harvestAbility.getExtension(harvestAbilityLevel));
|
}
|
||||||
}
|
|
||||||
|
if(hasHarvest) {
|
||||||
return builder.colorAll(EnumChatFormatting.YELLOW).flush();
|
builder.nextTranslation(harvestAbility.getName());
|
||||||
}
|
builder.next(harvestAbility.getExtension(harvestAbilityLevel));
|
||||||
|
}
|
||||||
|
|
||||||
|
return builder.colorAll(EnumChatFormatting.YELLOW).flush();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isNone() {
|
public boolean isNone() {
|
||||||
return areaAbility == IToolAreaAbility.NONE && harvestAbility == IToolHarvestAbility.NONE;
|
return areaAbility == IToolAreaAbility.NONE && harvestAbility == IToolHarvestAbility.NONE;
|
||||||
|
|||||||
@ -717,7 +717,7 @@ public class MainRegistry {
|
|||||||
achBlastFurnace = new Achievement("achievement.blastFurnace", "blastFurnace", 1, 3, new ItemStack(ModBlocks.machine_difurnace_off), achBurnerPress).initIndependentStat().registerStat();
|
achBlastFurnace = new Achievement("achievement.blastFurnace", "blastFurnace", 1, 3, new ItemStack(ModBlocks.machine_difurnace_off), achBurnerPress).initIndependentStat().registerStat();
|
||||||
achAssembly = new Achievement("achievement.assembly", "assembly", 3, -1, new ItemStack(ModBlocks.machine_assembler), achBurnerPress).initIndependentStat().registerStat();
|
achAssembly = new Achievement("achievement.assembly", "assembly", 3, -1, new ItemStack(ModBlocks.machine_assembler), achBurnerPress).initIndependentStat().registerStat();
|
||||||
achSelenium = new Achievement("achievement.selenium", "selenium", 3, 2, ModItems.ingot_starmetal, achBurnerPress).initIndependentStat().setSpecial().registerStat();
|
achSelenium = new Achievement("achievement.selenium", "selenium", 3, 2, ModItems.ingot_starmetal, achBurnerPress).initIndependentStat().setSpecial().registerStat();
|
||||||
achChemplant = new Achievement("achievement.chemplant", "chemplant", 6, -1, new ItemStack(ModBlocks.machine_chemplant), achAssembly).initIndependentStat().registerStat();
|
achChemplant = new Achievement("achievement.chemplant", "chemplant", 6, -1, new ItemStack(ModBlocks.machine_chemical_plant), achAssembly).initIndependentStat().registerStat();
|
||||||
achConcrete = new Achievement("achievement.concrete", "concrete", 6, -4, new ItemStack(ModBlocks.concrete), achChemplant).initIndependentStat().registerStat();
|
achConcrete = new Achievement("achievement.concrete", "concrete", 6, -4, new ItemStack(ModBlocks.concrete), achChemplant).initIndependentStat().registerStat();
|
||||||
achPolymer = new Achievement("achievement.polymer", "polymer", 9, -1, ModItems.ingot_polymer, achChemplant).initIndependentStat().registerStat();
|
achPolymer = new Achievement("achievement.polymer", "polymer", 9, -1, ModItems.ingot_polymer, achChemplant).initIndependentStat().registerStat();
|
||||||
achDesh = new Achievement("achievement.desh", "desh", 9, 2, ModItems.ingot_desh, achChemplant).initIndependentStat().registerStat();
|
achDesh = new Achievement("achievement.desh", "desh", 9, 2, ModItems.ingot_desh, achChemplant).initIndependentStat().registerStat();
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import com.hbm.inventory.container.ContainerMachineChemicalPlant;
|
|||||||
import com.hbm.inventory.fluid.Fluids;
|
import com.hbm.inventory.fluid.Fluids;
|
||||||
import com.hbm.inventory.fluid.tank.FluidTank;
|
import com.hbm.inventory.fluid.tank.FluidTank;
|
||||||
import com.hbm.inventory.gui.GUIMachineChemicalPlant;
|
import com.hbm.inventory.gui.GUIMachineChemicalPlant;
|
||||||
|
import com.hbm.items.ModItems;
|
||||||
import com.hbm.items.machine.ItemMachineUpgrade;
|
import com.hbm.items.machine.ItemMachineUpgrade;
|
||||||
import com.hbm.items.machine.ItemMachineUpgrade.UpgradeType;
|
import com.hbm.items.machine.ItemMachineUpgrade.UpgradeType;
|
||||||
import com.hbm.lib.Library;
|
import com.hbm.lib.Library;
|
||||||
@ -113,6 +114,11 @@ public class TileEntityMachineChemicalPlant extends TileEntityMachineBase implem
|
|||||||
this.didProcess = this.chemplantModule.didProcess;
|
this.didProcess = this.chemplantModule.didProcess;
|
||||||
if(this.chemplantModule.markDirty) this.markDirty();
|
if(this.chemplantModule.markDirty) this.markDirty();
|
||||||
|
|
||||||
|
if(didProcess) {
|
||||||
|
if(slots[0] != null && slots[0].getItem() == ModItems.meteorite_sword_machined)
|
||||||
|
slots[0] = new ItemStack(ModItems.meteorite_sword_treated);
|
||||||
|
}
|
||||||
|
|
||||||
this.networkPackNT(100);
|
this.networkPackNT(100);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ public class AchievementHandler {
|
|||||||
craftingAchievements.put(new ComparableStack(ModItems.battery_potatos), MainRegistry.achPotato);
|
craftingAchievements.put(new ComparableStack(ModItems.battery_potatos), MainRegistry.achPotato);
|
||||||
craftingAchievements.put(new ComparableStack(ModBlocks.machine_press), MainRegistry.achBurnerPress);
|
craftingAchievements.put(new ComparableStack(ModBlocks.machine_press), MainRegistry.achBurnerPress);
|
||||||
craftingAchievements.put(new ComparableStack(ModItems.rbmk_fuel_empty), MainRegistry.achRBMK);
|
craftingAchievements.put(new ComparableStack(ModItems.rbmk_fuel_empty), MainRegistry.achRBMK);
|
||||||
craftingAchievements.put(new ComparableStack(ModBlocks.machine_chemplant), MainRegistry.achChemplant);
|
craftingAchievements.put(new ComparableStack(ModBlocks.machine_chemical_plant), MainRegistry.achChemplant);
|
||||||
craftingAchievements.put(new ComparableStack(ModBlocks.concrete_smooth), MainRegistry.achConcrete);
|
craftingAchievements.put(new ComparableStack(ModBlocks.concrete_smooth), MainRegistry.achConcrete);
|
||||||
craftingAchievements.put(new ComparableStack(ModBlocks.concrete_asbestos), MainRegistry.achConcrete);
|
craftingAchievements.put(new ComparableStack(ModBlocks.concrete_asbestos), MainRegistry.achConcrete);
|
||||||
craftingAchievements.put(new ComparableStack(ModItems.ingot_polymer), MainRegistry.achPolymer);
|
craftingAchievements.put(new ComparableStack(ModItems.ingot_polymer), MainRegistry.achPolymer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user