Вопросы от новичка

Статус
В этой теме нельзя размещать новые ответы.
1. Папки аут никогда не было и нет.2. По файлам никуда лазить не надо, есть команда gradlew build, Это гораздо проще и удобнее.
3. Потому что ты достал меня и лаза. Мы вот порассуждали и нашли решение.
 
Dragon2488 написал(а):
1. Папки аут никогда не было и нет.2. По файлам никуда лазить не надо, есть команда gradlew build, Это гораздо проще и удобнее.
3. Потому что ты достал меня и лаза. Мы вот порассуждали и нашли решение.
1. У меня при работе с idea есть:)
 
Твоя папочка аут не будет нормально работать на нормальном майне, ибо он будет обфуцирован а все из папочки аут нет.
 
Народ! Кто знает, как добавить рецепты для дробителя и т.д? IC2
 
Где можно посмотреть способы крафта в механизмах в ic2? Может кто знает как это сделать?
[merge_posts_bbcode]Добавлено: 14.11.2014 20:03:09[/merge_posts_bbcode]

Ладно. Другой вопрос:
У меня lang файлы находятся по пути mod.core.lang лежат вместе в lang.class, прописаны так:
Код:
this.loadDefaultLanguage("en_US", "");
        this.loadDefaultLanguage("en_GB", "en_US");
        this.loadDefaultLanguage("ru_RU", "en_US");
Как мне поменять путь на assets.modname.lang?
 
Dovakin написал(а):
Самая просматриваемая тема,но не отвечаемая
Вот я узнал как добавить крафт, но фиг теперь с этим поделюсь)
[merge_posts_bbcode]Добавлено: 14.11.2014 20:14:12[/merge_posts_bbcode]

Ладно, я не еврей! Поделюсь, если спросят)
 
Код:
for (Entry<IRecipeInput, RecipeOutput> entry : Recipes.macerator.getRecipes().entrySet()) {
    if ((entry.getKey().getInputs().size() != 0) && (entry.getValue().items.size() != 0)) {
        System.out.println("input: " + entry.getKey().getInputs().get(0).getDisplayName() +
                " output: " + entry.getValue().items.get(0).getDisplayName());
    }
}
Проверил с industrialcraft-2-2.2.653-experimental-dev
[merge_posts_bbcode]Добавлено: 14.11.2014 23:01:39[/merge_posts_bbcode]

input: Plantball output: Bio Chaff
input: Lead Plate output: Tiny Pile of Lead Dust
input: Sugar Canes output: Bio Chaff
input: Fuel Rod (Empty) output: Iron Dust
input: Bio Chaff output: Dirt
input: Coal output: Coal Dust
input: Gold Plate output: Tiny Pile of Gold Dust
input: Weed  output: Bio Chaff
input: Bone output: Bone Meal
input: Ice output: Snowball
input: Melon Seeds output: Bio Chaff
input: Uranium Ore output: Crushed Uranium Ore
input: Block of Quartz output: Nether Quartz
input: Shrub output: Bio Chaff
input: Wool output: String
input: Sandstone output: Sand
input: Stone Stairs output: Nether Quartz
input: Tin Ingot output: Tin Dust
input: Lapis Lazuli output: Lapis Lazuli Dust
input: Quartz Stairs output: Nether Quartz
input: Tin Plate output: Tiny Pile of Tin Dust
input: Obsidian Plate output: Tiny Pile of Obsidian Dust
input: Energy Crystal output: Energium Dust
input: Tin Ore output: Crushed Tin Ore
input: Oak Sapling output: Bio Chaff
input: Gold Ore output: Crushed Gold Ore
input: Pumpkin output: Bio Chaff
input: Potato output: Bio Chaff
input: Tin Can output: Tin Dust
input: Cactus output: Bio Chaff
input: Copper Ore output: Crushed Copper Ore
input: Coffee Beans output: Coffee Powder
input: Lead Ingot output: Lead Dust
input: Diamond output: Diamond Dust
input: Wheat output: Bio Chaff
input: Carrot output: Bio Chaff
input: Gravel output: Flint
input: Lapis Lazuli Plate output: Tiny Pile of Lapis Dust
input: Oak Leaves output: Bio Chaff
input: Block of Coal output: Coal Dust
input: Melon output: Bio Chaff
input: Block of Redstone output: Redstone
input: Stone output: Cobblestone
input: Bronze Plate output: Tiny Pile of Bronze Dust
input: Clay output: Clay Dust
input: Lapis Lazuli Block output: Lapis Lazuli Dust
input: Pumpkin Seeds output: Bio Chaff
input: Glowstone output: Glowstone Dust
input: Copper Plate output: Tiny Pile of Copper Dust
input: Bronze Ingot output: Bronze Dust
input: Iron Ore output: Crushed Iron Ore
input: Iron Plate output: Tiny Pile of Iron Dust
input: Lead Ore output: Crushed Lead Ore
input: Cobblestone output: Sand
input: Blaze Rod output: Blaze Powder
input: Seeds output: Bio Chaff
input: Obsidian output: Obsidian Dust
input: Silver Ingot output: Silver Dust
input: Gold Ingot output: Gold Dust
input: Poisonous Potato output: Grin Powder
input: Spider Eye output: Grin Powder
input: Iron Ingot output: Iron Dust
input: Copper Ingot output: Copper Dust
 
Asd73 написал(а):
Код:
for (Entry<IRecipeInput, RecipeOutput> entry : Recipes.macerator.getRecipes().entrySet()) {
    if ((entry.getKey().getInputs().size() != 0) && (entry.getValue().items.size() != 0)) {
        System.out.println("input: " + entry.getKey().getInputs().get(0).getDisplayName() +
                " output: " + entry.getValue().items.get(0).getDisplayName());
    }
}
Проверил с industrialcraft-2-2.2.653-experimental-dev
[merge_posts_bbcode]Добавлено: 14.11.2014 23:01:39[/merge_posts_bbcode]

input: Plantball output: Bio Chaff
input: Lead Plate output: Tiny Pile of Lead Dust
input: Sugar Canes output: Bio Chaff
input: Fuel Rod (Empty) output: Iron Dust
input: Bio Chaff output: Dirt
input: Coal output: Coal Dust
input: Gold Plate output: Tiny Pile of Gold Dust
input: Weed  output: Bio Chaff
input: Bone output: Bone Meal
input: Ice output: Snowball
input: Melon Seeds output: Bio Chaff
input: Uranium Ore output: Crushed Uranium Ore
input: Block of Quartz output: Nether Quartz
input: Shrub output: Bio Chaff
input: Wool output: String
input: Sandstone output: Sand
input: Stone Stairs output: Nether Quartz
input: Tin Ingot output: Tin Dust
input: Lapis Lazuli output: Lapis Lazuli Dust
input: Quartz Stairs output: Nether Quartz
input: Tin Plate output: Tiny Pile of Tin Dust
input: Obsidian Plate output: Tiny Pile of Obsidian Dust
input: Energy Crystal output: Energium Dust
input: Tin Ore output: Crushed Tin Ore
input: Oak Sapling output: Bio Chaff
input: Gold Ore output: Crushed Gold Ore
input: Pumpkin output: Bio Chaff
input: Potato output: Bio Chaff
input: Tin Can output: Tin Dust
input: Cactus output: Bio Chaff
input: Copper Ore output: Crushed Copper Ore
input: Coffee Beans output: Coffee Powder
input: Lead Ingot output: Lead Dust
input: Diamond output: Diamond Dust
input: Wheat output: Bio Chaff
input: Carrot output: Bio Chaff
input: Gravel output: Flint
input: Lapis Lazuli Plate output: Tiny Pile of Lapis Dust
input: Oak Leaves output: Bio Chaff
input: Block of Coal output: Coal Dust
input: Melon output: Bio Chaff
input: Block of Redstone output: Redstone
input: Stone output: Cobblestone
input: Bronze Plate output: Tiny Pile of Bronze Dust
input: Clay output: Clay Dust
input: Lapis Lazuli Block output: Lapis Lazuli Dust
input: Pumpkin Seeds output: Bio Chaff
input: Glowstone output: Glowstone Dust
input: Copper Plate output: Tiny Pile of Copper Dust
input: Bronze Ingot output: Bronze Dust
input: Iron Ore output: Crushed Iron Ore
input: Iron Plate output: Tiny Pile of Iron Dust
input: Lead Ore output: Crushed Lead Ore
input: Cobblestone output: Sand
input: Blaze Rod output: Blaze Powder
input: Seeds output: Bio Chaff
input: Obsidian output: Obsidian Dust
input: Silver Ingot output: Silver Dust
input: Gold Ingot output: Gold Dust
input: Poisonous Potato output: Grin Powder
input: Spider Eye output: Grin Powder
input: Iron Ingot output: Iron Dust
input: Copper Ingot output: Copper Dust
Я так сделал Recipes.metalformerCutting.addRecipe(new RecipeInputItemStack(new ItemStack(wolfIngot), 1), null, new ItemStack[] { new ItemStack(wolfplate, 1) });
Но рецепты на рудопромывочную машину, а именно там же нужно сразу 3 предмета получить, как сделать?
 
Код:
for (Entry<IRecipeInput, RecipeOutput> entry : Recipes.oreWashing.getRecipes().entrySet()) {
    if ((entry.getKey().getInputs().size() != 0) && (entry.getValue().items.size() != 0)) {
        System.out.println("================================================================");
        System.out.println("input:");
        for (int i = 0; i < entry.getKey().getInputs().size(); ++i)
            System.out.println(i + ") " + entry.getKey().getInputs().get(i).getDisplayName());
        System.out.println("output:");
        for (int i = 0; i < entry.getValue().items.size(); ++i)
            System.out.println(i + ") " + entry.getValue().items.get(i).getDisplayName());
    }
Универсальный вариант.

=====================================
input:
0) Crushed Copper Ore
output:
0) Purified Crushed Copper Ore
1) Tiny Pile of Copper Dust
2) Stone Dust
=====================================
input:
0) Crushed Uranium Ore
output:
0) Purified Crushed Uranium Ore
1) Tiny Pile of Lead Dust
2) Stone Dust
=====================================
input:
0) Crushed Silver Ore
output:
0) Purified Crushed Silver Ore
1) Tiny Pile of Silver Dust
2) Stone Dust
=====================================
input:
0) Crushed Tin Ore
output:
0) Purified Crushed Tin Ore
1) Tiny Pile of Tin Dust
2) Stone Dust
=====================================
input:
0) Crushed Lead Ore
output:
0) Purified Crushed Lead Ore
1) Tiny Pile of Sulfur Dust
2) Stone Dust
=====================================
input:
0) Crushed Iron Ore
output:
0) Purified Crushed Iron Ore
1) Tiny Pile of Iron Dust
2) Stone Dust
=====================================
input:
0) Crushed Gold Ore
output:
0) Purified Crushed Gold Ore
1) Tiny Pile of Gold Dust
2) Stone Dust
[merge_posts_bbcode]Добавлено: 14.11.2014 23:18:37[/merge_posts_bbcode]

Только забыл вывести количество получаемых предметов.
 
Там мелкая кучка только со 2 попытки даеться?
 
Asd1995sse написал(а):
Там мелкая кучка только со 2 попытки даеться?
Не помню, но вроде бы нет.
Я имею в виду это:
Код:
for (Entry<IRecipeInput, RecipeOutput> entry : Recipes.oreWashing.getRecipes().entrySet()) {
    if ((entry.getKey().getInputs().size() != 0) && (entry.getValue().items.size() != 0)) {
        System.out.println("================================================================");
        System.out.println("input:");
        for (int i = 0; i < entry.getKey().getInputs().size(); i++)
            System.out.println(i + ") " + entry.getKey().getInputs().get(i).getDisplayName() +
                " | stackSize: " + entry.getKey().getInputs().get(i).stackSize);
        System.out.println("output:");
        for (int i = 0; i < entry.getValue().items.size(); i++)
            System.out.println(i + ") " + entry.getValue().items.get(i).getDisplayName() +
                " | stackSize: " + entry.getValue().items.get(i).stackSize);
    }
}
=================================================
input:
0) Crushed Copper Ore | stackSize: 1
output:
0) Purified Crushed Copper Ore | stackSize: 1
1) Tiny Pile of Copper Dust | stackSize: 2
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Uranium Ore | stackSize: 1
output:
0) Purified Crushed Uranium Ore | stackSize: 1
1) Tiny Pile of Lead Dust | stackSize: 2
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Silver Ore | stackSize: 1
output:
0) Purified Crushed Silver Ore | stackSize: 1
1) Tiny Pile of Silver Dust | stackSize: 2
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Tin Ore | stackSize: 1
output:
0) Purified Crushed Tin Ore | stackSize: 1
1) Tiny Pile of Tin Dust | stackSize: 2
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Lead Ore | stackSize: 1
output:
0) Purified Crushed Lead Ore | stackSize: 1
1) Tiny Pile of Sulfur Dust | stackSize: 3
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Iron Ore | stackSize: 1
output:
0) Purified Crushed Iron Ore | stackSize: 1
1) Tiny Pile of Iron Dust | stackSize: 2
2) Stone Dust | stackSize: 1
=================================================
input:
0) Crushed Gold Ore | stackSize: 1
output:
0) Purified Crushed Gold Ore | stackSize: 1
1) Tiny Pile of Gold Dust | stackSize: 2
2) Stone Dust | stackSize: 1
 
Код:
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(crushedwolfore), 1), null, new ItemStack[] {new ItemStack(Cuhelm, 1, 0), new ItemStack(wolfdustsmall, 2, 1), IC2Items.getItem("stoneDust")});

вот так не робит!
 
Код:
NBTTagCompound metadata = new NBTTagCompound();
metadata.setInteger("amount", 100); // Требуемое количество воды в милливедрах.
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(crushedwolfore), 1),
        metadata,
        new ItemStack[] {new ItemStack(Cuhelm, 1, 0), new ItemStack(wolfdustsmall, 2, 1), IC2Items.getItem("stoneDust")});
Нужно делать так.
 
А про воду, то я и забыл:sideways:
 
Почему я не могу на достижение поставить свои блоки или предметы? С ванильными работает на ура.
[merge_posts_bbcode]Добавлено: 16.11.2014 16:29:19[/merge_posts_bbcode]

Код:
Details:
    Item Type: null
    Item Aux: ~~ERROR~~ NullPointerException: null
    Item NBT: null
    Item Foil: ~~ERROR~~ NullPointerException: null

[merge_posts_bbcode]Добавлено: 16.11.2014 16:36:32[/merge_posts_bbcode]

Код:
("newwore", 6, 2, new ItemStack(AsdMod.WoBlock), AchievementList.buildBetterPickaxe)

[merge_posts_bbcode]Добавлено: 16.11.2014 17:01:17[/merge_posts_bbcode]

По какому вообще принципу иконка назначаеться?
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху