added RTG pellet fact generator

This commit is contained in:
Bob 2020-12-06 20:28:28 +01:00
parent 22f01754e6
commit 444191304d
4 changed files with 48 additions and 3 deletions

View File

@ -2429,7 +2429,7 @@ public class ModItems {
wiring_red_copper = new ItemWiring().setUnlocalizedName("wiring_red_copper").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":wiring_red_copper");
pellet_rtg = new ItemRadioactive(0.25F).setUnlocalizedName("pellet_rtg").setCreativeTab(MainRegistry.controlTab).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":pellet_rtg");
pellet_rtg = new ItemRTGPellet(0.25F).setUnlocalizedName("pellet_rtg").setCreativeTab(MainRegistry.controlTab).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":pellet_rtg");
pellet_rtg_weak = new ItemRadioactive(0.1F).setUnlocalizedName("pellet_rtg_weak").setCreativeTab(MainRegistry.controlTab).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":pellet_rtg_weak");
pellet_rtg_polonium = new ItemRadioactive(2.5F).setUnlocalizedName("pellet_rtg_polonium").setCreativeTab(MainRegistry.controlTab).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":pellet_rtg_polonium");
tritium_deuterium_cake = new ItemCustomLore().setUnlocalizedName("tritium_deuterium_cake").setCreativeTab(MainRegistry.controlTab).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":tritium_deuterium_cake");

View File

@ -0,0 +1,46 @@
package com.hbm.items.special;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatStyle;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
public class ItemRTGPellet extends ItemRadioactive {
public ItemRTGPellet(float radiation) {
super(radiation);
}
private static final String[] facts = new String[] {
"One gram of Pu-238 costs $8,000.",
"One gram of Pu-238 produces just under half a Watt of decay heat.",
"The typical plutonium RTG contains close to eight kilograms of Pu-238.",
"Pu-238's half life is 87.7 years.",
"A plutonium RTG was used to power the New Horizons probe that visited Pluto in 2015.",
"Po-210 can also be used for RTGs as it generates 140 W/g of decay heat due to its 138 day half life.",
"Pa-231 is an isotope of protactinium that easily fissions, but it isn't quite fissile.",
"Muons generated by matter-antimatter reactions can trigger nuclear fusion reactions at room temperature.",
"Roughly 20% of U-235 nuclei will fail to fission when hit by a neutron. They become U-236 nuclei instead.",
"Thorium reactors are really uranium reactors that convert thorium into U-233.",
"Natural uranium consists of 99.284% U-238, 0.711% U-235, and 0.0055% U-234.",
"Most nuclear reactors use uranium that has been enriched to 3-5% U-235.",
"Uranium-based nuclear weapons require uranium enriched to at least 85-90% U-235.",
"Depleted uranium is uranium that has had most of its U-235 removed. It is effectively pure U-238.",
"In the 1920s, uranium was considered a useless byproduct of the production of radium.",
"The Manhattan Project referred to refined natural uranium as tuballoy, enriched uranium as oralloy, and depleted uranium as depletalloy."
};
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if(!world.isRemote) {
player.addChatComponentMessage(new ChatComponentText(facts[world.rand.nextInt(facts.length)]).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.YELLOW)));
world.playSoundAtEntity(player, "random.orb", 1.0F, 1.0F);
}
return stack;
}
}

View File

@ -32,7 +32,6 @@ import com.hbm.tileentity.conductor.TileEntityPylonRedWire;
import com.hbm.tileentity.conductor.TileEntityWireCoated;
import com.hbm.tileentity.machine.TileEntityDummy;
import com.hbm.tileentity.machine.TileEntityMachineBattery;
import com.hbm.tileentity.machine.TileEntityMachineFluidTank;
import com.hbm.tileentity.machine.TileEntityMachineTransformer;
import api.hbm.energy.IBatteryItem;

View File

@ -3,7 +3,7 @@ package com.hbm.lib;
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 (MEMEPACK 2)";
public static final String VERSION = "1.0.27 BETA (3710)";
//HBM's Beta Naming Convention:
//V T (X)
//V -> next release version