Skip to content

Commit

Permalink
top 5 videos
Browse files Browse the repository at this point in the history
  • Loading branch information
HbmMods committed Jan 6, 2025
1 parent 3400fed commit c34c412
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 56 deletions.
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Some secret ammo types are now craftable
* Updated the assault rifle's texture
* Shooting at old CRT screens now breaks them
* Leviathan turbines now have a tooltip showing their buffers
* Fullerene now only uses visible light instead of UV to make, meaning fullerite can be obtained without a fusion or watz reactor (still requiring vacuum oil though)
* Crumb yields from bedrock ore processing has been heavily decreased, all recipes that yield crumbs produce no more than one pile

## Fixed
* Fixed `ITEM_TOOLTIP_SHOW_CUSTOM_NUKE` client config overriding `ITEM_TOOLTIP_SHOW_OREDICT` due to name overlap
Expand All @@ -33,3 +36,5 @@
* Potentially fixed an issue where cargo planes do not successfully spawn on lower render distances
* Fixed glyphids not calling their `onDeath` function properly, causing them to not drop anything and preventing the appropriate forge events from firing
* Fixed GL state leak caused by plasma blast particles, causing other particles (especially bones) to render weird
* Fixed night vision goggles being constantly disabled due to m1tty's night vision removal out of water
* Fixed armor on test dummies entering the sneaked state in third person view when the player sneaks
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_version=1.0.27
# Empty build number makes a release type
mod_build_number=5193
mod_build_number=5202

credits=HbMinecraft,\
\ rodolphito (explosion algorithms),\
Expand Down
20 changes: 6 additions & 14 deletions src/main/java/com/hbm/blocks/machine/MachineChungus.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.hbm.inventory.fluid.trait.FT_Coolable;
import com.hbm.tileentity.TileEntityProxyCombo;
import com.hbm.tileentity.machine.TileEntityChungus;
import com.hbm.tileentity.machine.oil.TileEntityMachineFractionTower;
import com.hbm.util.BobMathUtil;
import com.hbm.util.I18nUtil;

Expand Down Expand Up @@ -148,34 +147,27 @@ public void addInformation(ItemStack stack, EntityPlayer player, List list, bool
@Override
public void printHook(Pre event, World world, int x, int y, int z) {
int[] pos = this.findCore(world, x, y, z);

if(pos == null)
return;
if(pos == null) return;

TileEntity te = world.getTileEntity(pos[0], pos[1], pos[2]);

if(!(te instanceof TileEntityChungus))
return;
if(!(te instanceof TileEntityChungus)) return;

TileEntityChungus chungus = (TileEntityChungus) te;

List<String> text = new ArrayList();

FluidTank tankInput = chungus.getReceivingTanks()[0];
FluidTank tankOutput = chungus.getSendingTanks()[0];
FluidTank tankInput = chungus.tanks[0];
FluidTank tankOutput = chungus.tanks[1];

FluidType inputType = tankInput.getTankType();
FluidType outputType = Fluids.NONE;

if (inputType.hasTrait(FT_Coolable.class)) {
if(inputType.hasTrait(FT_Coolable.class)) {
outputType = inputType.getTrait(FT_Coolable.class).coolsTo;
}

text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + inputType.getLocalizedName() + ": " + tankInput.getFill() + "/" + tankInput.getMaxFill() + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + outputType.getLocalizedName() + ": " + tankOutput.getFill() + "/" + tankOutput.getMaxFill() + "mB");


text.add(EnumChatFormatting.YELLOW + "** " + EnumChatFormatting.RESET + BobMathUtil.getShortNumber(chungus.power) + "/" + BobMathUtil.getShortNumber(chungus.getMaxPower()) + "HE");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + BobMathUtil.getShortNumber(chungus.power) + "/" + BobMathUtil.getShortNumber(chungus.getMaxPower()) + "HE");


ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ public void registerDefaults() {
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_NOSULFURIC, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_NOSOLVENT, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_NORAD, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_FIRST, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type, 2)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_SECOND, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type, 2)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_FIRST, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type, 1)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_SECOND, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.primary1, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.extract(type.primary2, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type, 1)});

recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.SULFURIC_WASHED, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.byproductAcid1, 1), ItemBedrockOreNew.extract(type.byproductAcid2, 1), ItemBedrockOreNew.extract(type.byproductAcid3, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type)});
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.SOLVENT_WASHED, type)), new ItemStack[] {ItemBedrockOreNew.extract(type.byproductSolvent1, 1), ItemBedrockOreNew.extract(type.byproductSolvent2, 1), ItemBedrockOreNew.extract(type.byproductSolvent3, 1), ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type)});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ public void registerDefaults() {
ArrayList<Pair<Object, Integer>> productsF = new ArrayList<>();
productsF.add(new Pair(type.primary1, 8));
productsF.add(new Pair(type.primary2, 4));
productsF.add(new Pair(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type), 3));
productsF.add(new Pair(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type), 1));
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_FIRST, type)), makeBedrockOreProduct(productsF));

ArrayList<Pair<Object, Integer>> productsS = new ArrayList<>();
productsS.add(new Pair(type.primary1, 4));
productsS.add(new Pair(type.primary2, 8));
productsS.add(new Pair(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type),3));
productsS.add(new Pair(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type), 1));

recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_SECOND, type)), makeBedrockOreProduct(productsS));

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/inventory/recipes/SILEXRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ public static void register() {
);

recipes.put(new ComparableStack(ModItems.fluid_icon, 1, Fluids.FULLERENE.getID()),
new SILEXRecipe(1_000, 1_000, EnumWavelengths.UV).addOut(DictFrame.fromOne(ModItems.powder_ash, EnumAshType.FULLERENE), 1));
new SILEXRecipe(1_000, 1_000, EnumWavelengths.VISIBLE).addOut(DictFrame.fromOne(ModItems.powder_ash, EnumAshType.FULLERENE), 1));
}

private static final HashMap<Item, Item> tinyWasteTranslation = new HashMap();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/lib/RefStrings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class RefStrings {
public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "1.0.27 BETA (5193)";
public static final String VERSION = "1.0.27 BETA (5202)";
//HBM's Beta Naming Convention:
//V T (X)
//V -> next release version
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/hbm/render/model/ModelArmorBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ public void setRotationAngles(float walkCycle, float walkAmplitude, float idleCy

rightArm.rotateAngleX = rightArm.rotateAngleX * 0.5F - ((float) Math.PI / 10F) * hold;
}

this.isSneak = player.isSneaking();
this.isRiding = player.isRiding();
}

this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();

if(this.isRiding) {
rightArm.rotateAngleX += -((float) Math.PI / 5F);
leftArm.rotateAngleX += -((float) Math.PI / 5F);
Expand Down
11 changes: 2 additions & 9 deletions src/main/java/com/hbm/render/model/ModelT45Boots.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;

public class ModelT45Boots extends ModelBiped {
// fields
Expand Down Expand Up @@ -74,14 +73,8 @@ private void setRotation(ModelRenderer model, float x, float y, float z) {
@Override
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {

if (entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) entity;
if (player.isSneaking()) {
this.isSneak = true;
} else {
this.isSneak = false;
}
}
this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.leftleg.rotationPointX = this.bipedLeftLeg.rotationPointX;
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/com/hbm/render/model/ModelT45Chest.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,6 @@ public void setRotationAngles(float f, float f1, float f2, float f3, float f4, f

if (entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) entity;
if (player.isSneaking()) {
this.isSneak = true;
} else {
this.isSneak = false;
}
ItemStack itemstack = player.inventory.getCurrentItem();
this.heldItemRight = itemstack != null ? 1 : 0;

Expand All @@ -232,6 +227,10 @@ public void setRotationAngles(float f, float f1, float f2, float f3, float f4, f
if(itemstack != null && player.getHeldItem().getItem() instanceof IHoldableWeapon) this.aimedBow = true;
if(itemstack != null && player.getHeldItem().getItem() instanceof ItemGunBaseNT) this.aimedBow = true;
}

this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.chest.rotationPointX = this.bipedBody.rotationPointX;
this.chest.rotationPointY = this.bipedBody.rotationPointY;
Expand Down
11 changes: 2 additions & 9 deletions src/main/java/com/hbm/render/model/ModelT45Helmet.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;

public class ModelT45Helmet extends ModelBiped {
// fields
Expand Down Expand Up @@ -106,14 +105,8 @@ private void setRotation(ModelRenderer model, float x, float y, float z) {
@Override
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {

if (entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) entity;
if (player.isSneaking()) {
this.isSneak = true;
} else {
this.isSneak = false;
}
}
this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.helmet.rotationPointX = this.bipedHead.rotationPointX;
Expand Down
11 changes: 2 additions & 9 deletions src/main/java/com/hbm/render/model/ModelT45Legs.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;

public class ModelT45Legs extends ModelBiped {
// fields
Expand Down Expand Up @@ -91,14 +90,8 @@ private void setRotation(ModelRenderer model, float x, float y, float z) {
@Override
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {

if (entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) entity;
if (player.isSneaking()) {
this.isSneak = true;
} else {
this.isSneak = false;
}
}
this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();

super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.leftleg.rotationPointX = this.bipedLeftLeg.rotationPointX;
Expand Down

0 comments on commit c34c412

Please sign in to comment.