OSDN Git Service

tc
[chemicraft/chemicraft.git] / common / pcc / chemicraft / ChemiCraft.java
index 1e0c1cc..f89a5d3 100644 (file)
@@ -5,7 +5,9 @@ import net.minecraft.block.material.Material;
 import net.minecraft.creativetab.CreativeTabs;
 import net.minecraft.item.Item;
 import net.minecraft.item.ItemStack;
+import net.minecraft.src.ModLoader;
 import net.minecraftforge.common.Configuration;
+import net.minecraftforge.common.MinecraftForge;
 import net.minecraftforge.common.Property;
 import net.minecraftforge.oredict.OreDictionary;
 import pcc.chemicraft.block.BlockChemicalCombinationTable;
@@ -20,11 +22,16 @@ import pcc.chemicraft.creativetab.CreativeTabChemiCraft;
 import pcc.chemicraft.debug.CommandDeleteItem;
 import pcc.chemicraft.debug.CommandGenDebugRoom;
 import pcc.chemicraft.debug.CommandSetTile;
+import pcc.chemicraft.entity.EntityDust;
+import pcc.chemicraft.gen.EnumOreSpawnFrequency;
 import pcc.chemicraft.item.ItemAtoms;
 import pcc.chemicraft.item.ItemAtomsGrenade;
 import pcc.chemicraft.item.ItemChemiCell;
 import pcc.chemicraft.item.ItemCompounds;
+import pcc.chemicraft.item.ItemDust;
 import pcc.chemicraft.item.ItemGasCollectingBottle;
+import pcc.chemicraft.item.ItemRadiationBallet;
+import pcc.chemicraft.item.ItemRadiationGun;
 import pcc.chemicraft.ore.BlockAtomOres;
 import pcc.chemicraft.ore.ItemAtomOres;
 import pcc.chemicraft.system.CommonProxy;
@@ -45,7 +52,9 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
 import cpw.mods.fml.common.event.FMLServerStartingEvent;
 import cpw.mods.fml.common.network.NetworkMod;
 import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.registry.EntityRegistry;
 import cpw.mods.fml.common.registry.GameRegistry;
+import cpw.mods.fml.common.registry.LanguageRegistry;
 /**
  * ChemiCraft本体
  * @author P.C.C.
@@ -99,6 +108,9 @@ public class ChemiCraft implements Runnable {
        public int gasCollectingBottleID;
        public int atomGrenadeID;
        public int chemicalCellsID;
+       public int dustID;
+       public int radiationGunID;
+       public int radiationBalletID;
 
        /**
         * BlockID.
@@ -139,6 +151,9 @@ public class ChemiCraft implements Runnable {
        public Item itemGasCollectingBottle;
        public Item itemAtomGrenade;
        public Item itemChemicalCells;
+       public Item itemDust;
+       public Item itemRadiationGun;
+       public Item itemRadiationBallet;
 
        /**
         * このmodで使用するTextureのパス.
@@ -155,6 +170,7 @@ public class ChemiCraft implements Runnable {
        public final String GUI_CHEMICALCOMBINATION_TEXTURE = "/pcc/chemicraft/guis/ChemicalCombination.png";
        public final String GUI_TOOLANDWEAPONCRAFTING_TEXTURE = "/pcc/chemicraft/guis/ToolAndWeaponCrafting.png";
        public final String GUI_CHEMICALCRAFTING_TEXTURE = "/pcc/chemicraft/guis/MaterialCrafting.png";
+       public final String ENTITY_PARTICLE_TEXRURE = "/pcc/chemicraft/entityParticles/dust.png";
 
        /**
         * このmodに必要な補助クラスのインスタンス.
@@ -197,6 +213,9 @@ public class ChemiCraft implements Runnable {
                Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);
                Property atomGrenadeIDProp = cfg.getItem("AtomGrenadeID", 25003);
                Property chemicalCellsIDProp = cfg.getItem("ChemicalCellID", 25004);
+               Property dustIDProp = cfg.getItem("DustID", 25005);
+               Property radiationGunIDProp = cfg.getItem("RadiationGunID", 25006);
+               Property radiationBalletIDProp = cfg.getItem("RadiationBalletID", 25007);
 
                Property guiPyrolysisTableIDProp = cfg.get("GUI", "GUIPyrolysisID", 1000);
                Property guiElectrolysisTableIDProp = cfg.get("GUI", "GUIElectrolysisTableIDProp", 1001);
@@ -219,6 +238,9 @@ public class ChemiCraft implements Runnable {
                this.gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
                this.atomGrenadeID = atomGrenadeIDProp.getInt();
                this.chemicalCellsID = chemicalCellsIDProp.getInt();
+               this.dustID = dustIDProp.getInt();
+               this.radiationGunID = radiationGunIDProp.getInt();
+               this.radiationBalletID = radiationBalletIDProp.getInt();
 
                this.guiPyrolysisTableID = guiPyrolysisTableIDProp.getInt();
                this.guiElectrolysisTableID = guiElectrolysisTableIDProp.getInt();
@@ -240,11 +262,6 @@ public class ChemiCraft implements Runnable {
        public void chemiPostLoadMethod(final FMLPostInitializationEvent event) {
                this.thread = new Thread(this);
                this.event = event;
-               try {
-                       Thread.sleep(5000);
-               } catch (InterruptedException e1) {
-                       e1.printStackTrace();
-               }
                this.thread.start();
                try {
                        this.thread.join();
@@ -304,6 +321,7 @@ public class ChemiCraft implements Runnable {
                                        setStepSound(Block.soundStoneFootstep).
                                        setBlockName("AtomsOre" + i);
                        GameRegistry.registerBlock(blockAtomOres[i], ItemAtomOres.class, "AtomsOre" + i);
+                       MinecraftForge.setBlockHarvestLevel(this.blockAtomOres[i], "pickaxe", 2);
                }
 
                // Itemを追加します
@@ -312,6 +330,10 @@ public class ChemiCraft implements Runnable {
                this.itemGasCollectingBottle = new ItemGasCollectingBottle(this.gasCollectingBottleID).setItemName("gasCollectingBottle").setIconIndex(0);
                this.itemAtomGrenade = new ItemAtomsGrenade(this.atomGrenadeID).setItemName("grenade").setIconIndex(1);
                this.itemChemicalCells = new ItemChemiCell(this.chemicalCellsID).setItemName("chemiCell").setIconIndex(3);
+               this.itemDust = new ItemDust(15000).setItemName("dust").setIconIndex(12);
+               this.itemRadiationGun = new ItemRadiationGun(this.radiationGunID).setIconIndex(4).setItemName("RadiationGun");
+               this.itemRadiationBallet = new ItemRadiationBallet(this.radiationBalletID).setIconIndex(5).setItemName("RadiationBallet");
+
 
                // BlockをMinecraftに登録します
                GameRegistry.registerBlock(this.blockPyrolysisTable, "BlockPyrolysisTable");
@@ -339,6 +361,12 @@ public class ChemiCraft implements Runnable {
                this.nameAuxiliary.addName(this.itemGasCollectingBottle, "ja_JP", "集気瓶");
                this.nameAuxiliary.addName(this.itemAtomGrenade, "AtomGrenade");
                this.nameAuxiliary.addName(this.itemAtomGrenade, "ja_JP", "元素手榴弾");
+               this.nameAuxiliary.addName(this.itemDust, "dust");
+               this.nameAuxiliary.addName(this.itemDust, "ja_JP", "粉塵");
+               this.nameAuxiliary.addName(this.itemRadiationGun, "RadiationGun");
+               this.nameAuxiliary.addName(this.itemRadiationGun, "ja_JP", "放射線銃");
+               this.nameAuxiliary.addName(this.itemRadiationBallet, "RadiationBallet");
+               this.nameAuxiliary.addName(this.itemRadiationGun, "ja_JP", "放射線弾");
 
                // TileEntityを追加します
                GameRegistry.registerTileEntity(TileEntityPyrolysisTable.class, "TileEntityPyrolysisTable");
@@ -388,73 +416,211 @@ public class ChemiCraft implements Runnable {
                api.addChemicalCell(itemChemicalCells, "ChemicalCell", 1000);
                api.addChemicalCellLanguage("ChemicalCell", "ja_JP", "化学電池");
 
-               //鉱石を追加します
+               // 元素入手手段
+
+               // 水素
+               // 水を分解。
+
+               // ヘリウム
+               // 未定。
 
                // リチウム
-               api.addAtomOres("Petalite", new String[]{"Li", "Al", "Si", "O"}, new Integer[]{1, 1, 4, 10}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // LiAlSi4O10
-               api.addAtomOresLanguage("Petalite", "ペタル石", "ja_JP");
-               api.addAtomOres("Spodumene", new String[]{"Li", "Al", "Si", "O"}, new Integer[]{1, 1, 2, 6}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // LiAlSi2O6
-               api.addAtomOresLanguage("Spodumene", "リチア輝石", "ja_JP");
+               api.addAtomOres(
+                               "LithiumOre",
+                               new String[] { "Li", "Al", "Si", "O" },
+                               new Integer[] { 1, 1, 4, 10 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // LiAlSi4O10
+               api.addAtomOresLanguage("LithiumOre", "リチウム鉱石", "ja_JP");
 
                // ベリリウム
-               api.addAtomOres("Beryl", new String[]{"Be", "Al", "Si", "O"}, new Integer[]{3, 2, 6, 18}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Be3Al2Si6O18
-               api.addAtomOresLanguage("Beryl", "緑柱石", "ja_JP");
-               api.addAtomOres("Chrysoberyl", new String[]{"Be", "Al", "O"}, new Integer[]{1, 2, 4}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // BeAl2O4
-               api.addAtomOresLanguage("Chrysoberyl", "金緑石", "ja_JP");
+               api.addAtomOres(
+                               "BerylliumOre",
+                               new String[] { "Be", "Al", "Si", "O" },
+                               new Integer[] { 3, 2, 6, 18 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // Be3Al2Si6O18
+               api.addAtomOresLanguage("BerylliumOre", "ベリリウム鉱石", "ja_JP");
 
                // ホウ素
-               api.addAtomOres("Ulexite", new String[]{"Na", "Ca", "B", "O", "H"}, new Integer[]{1, 1, 5, 17, 16}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50);   // NaCaB5O6(OH)6・5H2O
-               api.addAtomOresLanguage("Ulexite", "ウレキサイト", "ja_JP");
+               api.addAtomOres(
+                               "BoronOre",
+                               new String[] { "Na", "Ca", "B", "O", "H" },
+                               new Integer[] { 1, 1, 5, 17, 16 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // NaCaB5O6(OH)6・5H2O
+               api.addAtomOresLanguage("BoronOre", "ホウ素鉱石", "ja_JP");
+
+               // 炭素
+               api.addPyrolysisDecompositionRecipe(
+                               new ItemStack(Block.oreCoal),
+                               new Integer[] { chemicalData.CARBON },
+                               new Integer[] { 1 });
 
                // フッ素
-               api.addAtomOres("Fluorite", new String[]{"Ca", "F"}, new Integer[]{1, 2}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // CaF2
-               api.addAtomOresLanguage("Fluorite", "蛍石", "ja_JP");
-               api.addAtomOres("Cryolite", new String[]{"Na", "Al", "F"}, new Integer[]{3, 1, 6}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Na3AlF6
-               api.addAtomOresLanguage("Cryolite", "氷晶石", "ja_JP");
+               api.addAtomOres(
+                               "FluorineOre",
+                               new String[] { "Ca", "F" },
+                               new Integer[] { 1, 2 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // CaF2
+               api.addAtomOresLanguage("FluorineOre", "フッ素鉱石", "ja_JP");
 
                // ナトリウム
-               api.addAtomOres("RockSalt", new String[]{"Na", "Cl"}, new Integer[]{1, 1}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // NaCl
-               api.addAtomOresLanguage("RockSalt", "岩塩", "ja_JP");
+               api.addAtomOres(
+                               "SodiumOre",
+                               new String[] { "Na", "Cl" },
+                               new Integer[] { 1, 1 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // NaCl
+               api.addAtomOresLanguage("SodiumOre", "ナトリウム鉱石", "ja_JP");
 
                // マグネシウム
-               api.addAtomOres("Dolomite", new String[]{"Ca", "Mg", "C", "O"}, new Integer[]{1, 1, 2, 6}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // CaMg(CO3)2
-               api.addAtomOresLanguage("Dolomite", "苦灰石", "ja_JP");
-               api.addAtomOres("Magnesite", new String[]{"Mg", "C", "O"}, new Integer[]{1, 1, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // MgCO3
-               api.addAtomOresLanguage("Magnesite", "菱苦土石", "ja_JP");
+               api.addAtomOres(
+                               "MagnesiumOre",
+                               new String[] { "Ca", "Mg", "C", "O" },
+                               new Integer[] { 1, 1, 2, 6 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // CaMg(CO3)2
+               api.addAtomOresLanguage("MagnesiumOre", "マグネシウム鉱石", "ja_JP");
 
                // アルミニウム
-               api.addAtomOres("Gibbsite", new String[]{"Al", "O", "H"}, new Integer[]{3, 3, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Al(OH)3
-               api.addAtomOresLanguage("Gibbsite", "ギブス石", "ja_JP");
-               api.addAtomOres("Ruby", new String[]{"Al", "O"}, new Integer[]{2, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Al2O3
-               api.addAtomOresLanguage("Ruby", "ルビー", "ja_JP");
-               api.addAtomOres("Sapphire", new String[]{"Al", "O"}, new Integer[]{2, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Al2O3
-               api.addAtomOresLanguage("Sapphire", "サファイア", "ja_JP");
+               api.addAtomOres(
+                               "AluminiumOre",
+                               new String[] { "Al", "O", "H" },
+                               new Integer[] { 3, 3, 3 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // Al(OH)3
+               api.addAtomOresLanguage("AluminiumOre", "アルミニウム鉱石", "ja_JP");
 
                // ケイ素
-               api.addAtomOres("Quartz", new String[]{"Si", "O"}, new Integer[]{1, 2}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // SiO2
-               api.addAtomOresLanguage("Quartz", "石英", "ja_JP");
+               // 1.5まで保留。
 
                // リン
-               api.addAtomOres("Fluorapatite", new String[]{"Ca", "P", "O", "F"}, new Integer[]{5, 3, 12, 1}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Ca5(PO4)3F
-               api.addAtomOresLanguage("Fluorapatite", "フッ素リン灰石", "ja_JP");
-               api.addAtomOres("Chlorapatite", new String[]{"Ca", "P", "O", "Cl"}, new Integer[]{5, 3, 12, 1}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Ca5(PO4)3Cl
-               api.addAtomOresLanguage("Chlorapatite", "塩素燐灰石", "ja_JP");
-               api.addAtomOres("Hydroxylapatite", new String[]{"Ca", "P", "O", "H"}, new Integer[]{5, 3, 13, 1}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // Ca5(PO4)3(OH)
-               api.addAtomOresLanguage("Hydroxylapatite", "水酸燐灰石", "ja_JP");
+               api.addAtomOres(
+                               "PhosphorusOre",
+                               new String[] { "Ca", "P", "O", "F" },
+                               new Integer[] { 5, 3, 12, 1 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // Ca5(PO4)3F
+               api.addAtomOresLanguage("PhosphorusOre", "リン鉱石", "ja_JP");
+
+               // 硫黄
+               api.addAtomOres(
+                               "SulfurOre",
+                               new String[] { "S" },
+                               new Integer[] { 1 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // S
+               api.addAtomOresLanguage("SulfurOre", "硫黄鉱石", "ja_JP");
 
                // カリウム
-               api.addAtomOres("Sylvite", new String[]{"K", "Cl"}, new Integer[]{1, 1}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // KCl
-               api.addAtomOresLanguage("Sylvite", "カリ岩塩", "ja_JP");
+               api.addAtomOres(
+                               "PotassiumOre",
+                               new String[] { "K", "Cl" },
+                               new Integer[] { 1, 1 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // KCl
+               api.addAtomOresLanguage("PotassiumOre", "カリウム鉱石", "ja_JP");
 
                // カルシウム
-               api.addAtomOres("Calcite", new String[]{"Ca", "C", "O"}, new Integer[]{1, 1, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // CaCO3
-               api.addAtomOresLanguage("Calcite", "方解石", "ja_JP");
+               api.addAtomOres(
+                               "CalciumOre",
+                               new String[] { "Ca", "C", "O" },
+                               new Integer[] { 1, 1, 3 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // CaCO3
+               api.addAtomOresLanguage("CalciumOre", "カルシウム鉱石", "ja_JP");
 
                // スカンジウム
-               api.addAtomOres("Thortveitite", new String[]{"Sc", "Y", "Si", "O"}, new Integer[]{2, 2, 2, 7}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // (Sc,Y)2Si2O7
-               api.addAtomOresLanguage("Thortveitite", "トルトベイト石", "ja_JP");
-
-               // api.addAtomOres("元素名(英)", new String[]{"元素"}, new Integer[]{<数>}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // 化学式
+               api.addAtomOres(
+                               "ScandiumOre",
+                               new String[] { "Sc", "Y", "Si", "O" },
+                               new Integer[] { 2, 2, 2, 7 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // (Sc,Y)2Si2O7
+               api.addAtomOresLanguage("ScandiumOre", "スカンジウム鉱石", "ja_JP");
+
+               // チタン
+               api.addAtomOres(
+                               "TitaniumOre",
+                               new String[] { "Ti", "O" },
+                               new Integer[] { 1, 2 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // TiO2
+               api.addAtomOresLanguage("TitaniumOre", "チタン鉱石", "ja_JP");
+
+               // バナジウム
+               api.addAtomOres(
+                               "VanadiumOre",
+                               new String[] { "K", "U", "O", "V", "H" },
+                               new Integer[] { 2, 2, 15, 2, 6 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               // K2(UO2)2V2O8・3H2O
+               api.addAtomOresLanguage("VanadiumOre", "バナジウム鉱石", "ja_JP");
+
+               // クロム
+               api.addAtomOres(
+                               "Chromium",
+                               new String[] { "Fe", "Cr", "O" },
+                               new Integer[] { 1, 2, 4 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               api.addAtomOresLanguage("Chromium", "クロム鉱石", "ja_JP");
+               // FeCr2O4
+
+               // マンガン
+               api.addAtomOres(
+                               "ManganeseOre",
+                               new String[] { "Mn", "O" },
+                               new Integer[] { 1, 2 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               api.addAtomOresLanguage("ManganeseOre", "ja_JP", "マンガン鉱石");
+               // MnO2
+
+               // コバルト
+               api.addAtomOres(
+                               "CobaltOre",
+                               new String[] { "Co", "As", "S" },
+                               new Integer[] { 1, 1, 1 },
+                               this.atomOresID[api.getAtomOresLastIndex()],
+                               8,
+                               EnumOreSpawnFrequency.NORMAL);
+               api.addAtomOresLanguage("CobaltOre", "ja_JP", "コバルト鉱石");
+               // CoAsS
+
+               // api.addAtomOres("元素名(英)", new String[]{"元素"}, new Integer[]{<数>}, this.atomOresID[api.getAtomOresLastIndex()], 8, EnumOreSpawnFrequency.NORMAL); // 化学式
                // api.addAtomOresLanguage("元素名(英)", "元素名(他国語)", "言語");
 
                //化合物を追加します
@@ -478,9 +644,9 @@ public class ChemiCraft implements Runnable {
                                null,
                                null,
                                null,
-                               new ItemStack(this.itemAtoms, 1, ChemiCraftData.ZINC),
+                               new ItemStack(this.itemAtoms, 1, chemicalData.ZINC),
                                null,
-                               new ItemStack(this.itemAtoms, 1, ChemiCraftData.COPPER),
+                               new ItemStack(this.itemAtoms, 1, chemicalData.COPPER),
                                new ItemStack(Item.bucketWater),
                                new ItemStack(Item.bucketWater),
                                new ItemStack(Item.bucketWater),
@@ -505,11 +671,11 @@ public class ChemiCraft implements Runnable {
                                );
 
                this.api.addPyrolysisDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
-                               new Integer[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
+                               new Integer[] {ChemiCraftData.HYDROGEN, chemicalData.OXYGEN},
                                new Integer[] {2, 1});
 
                this.api.addPyrolysisDecompositionRecipe(new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")),
-                               new Integer[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
+                               new Integer[] {ChemiCraftData.HYDROGEN, chemicalData.OXYGEN},
                                new Integer[] {2, 1});
 
                for (int i = 0; i < api.getAtomOresName().sizeKeysList(); i++){
@@ -518,6 +684,16 @@ public class ChemiCraft implements Runnable {
                                        api.getAtomOresAmounts().get(api.getAtomOresName().getKeyList(i)));
                }
 
+               //Entityを追加
+               LanguageRegistry.instance().addStringLocalization("entity.Dust.name", "en_US", "Dust");
+               EntityRegistry.registerModEntity(EntityDust.class,
+                               "Dust",
+                               ModLoader.getUniqueEntityId(),
+                               this,
+                               250,
+                               5,
+                               true);
+
                this.api.addPyrolysisDecompositionFuel(new ItemStack(Item.coal), 2000*8);
        }