• Recently Browsing

    No registered users viewing this page.

  • Posts

    • This is not what you want to do. This is a much more complicated and horrible way to do what you want to do. Just make the model/blockstate files.
    • At first, i want to say thanks for fast reply.   For the Item- and BlockTags and the Recipes I could use a provider, so i thought that it would work her too. Especially because it implements the IDataProvider.  Just want to mention that I mean the import BlockStateProvider  from net.minecraftforge.client.model.generators.BlockStateProvider, not the other one. Here are my other Generators:   public class Crushing_Projekt_RecipeProvider extends RecipeProvider{ public Crushing_Projekt_RecipeProvider( DataGenerator generatorIn) { super(generatorIn); // TODO Auto-generated constructor stub } protected InventoryChangeTrigger.Instance hasItem(IItemProvider itemIn) { return this.hasItem(ItemPredicate.Builder.create().item(itemIn).build()); } @Override protected void registerRecipes( Consumer<IFinishedRecipe> consumer) { ShapedRecipeBuilder.shapedRecipe(Items.DIAMOND, 5)// .patternLine("AAA")// .patternLine("ABA")// .patternLine("AAA")// .key('A', Blocks.DIRT)// .key('B', Crushing_Projekt_Items.Basic_Item)// .addCriterion("has_Dirt", hasItem(Blocks.DIRT))// .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_diamonds")); ShapedRecipeBuilder.shapedRecipe(Crushing_Projekt_Items.Basic_Item, 1)// .patternLine("AAB")// .patternLine("ACD")// .patternLine("BDC")// .key('A', Items.AIR)// .key('B', Items.OBSERVER)// .key('C', Items.STICKY_PISTON) .key('D', Items.SLIME_BLOCK) .setGroup("tutorial_basic") .addCriterion("has_Piston", this.hasItem(Blocks.PISTON))// .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_basic_1")); ShapelessRecipeBuilder.shapelessRecipe(Crushing_Projekt_Items.Basic_Item, 1) .addIngredient(Blocks.PISTON) .addIngredient(Items.DIAMOND,8) .setGroup("tutorial_basic") .addCriterion("has_Piston", this.hasItem(Blocks.PISTON)) .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_basic_2")); //Smelts all with tag Tutorial CookingRecipeBuilder.smeltingRecipe(Ingredient.fromTag(Crushing_Projekt_Tags.Items.Tutorial), Blocks.ANDESITE, 1, 10) .addCriterion("has_Door", hasItem(Items.DIRT)) .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_andesite")); //Smelts with forge Tag (Sotrage_Blocks, z.B. Iron Block) CookingRecipeBuilder.smeltingRecipe(getFakeIngredient(Tags.Items.STORAGE_BLOCKS), Blocks.ANDESITE, 1, 10) .addCriterion("has_storage", hasItem(Tags.Items.STORAGE_BLOCKS)) .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_andesite_fremd")); /* CookingRecipeBuilder.smeltingRecipe(getFakeIngredient(Tags.Items.STORAGE_BLOCKS), Blocks.ANDESITE, 1, 10) .addCriterion("has_storage", hasItem(Tags.Items.STORAGE_BLOCKS)) .build(consumer, new ResourceLocation(Crushing_Projekt.MODID,"tutorial_andesite_fremd")); */ } private Ingredient getFakeIngredient(Tag<Item> tag) { return Ingredient.fromItemListStream(Stream.of(new TagList(tag){ @Override public Collection<ItemStack> getStacks(){ return Arrays.asList(new ItemStack(Items.ACACIA_LOG)); } })); } }   public class Crushing_Projekt_ItemTagsProvider extends ItemTagsProvider{ public Crushing_Projekt_ItemTagsProvider(DataGenerator generator) { super(generator); } @Override protected void registerTags() { getBuilder(Crushing_Projekt_Tags.Items.Tutorial).add(Crushing_Projekt_Items.Basic_Item).add(Crushing_Projekt_Blocks.BASIC_BLOCK.asItem()); } }   public class Crushing_Projekt_BlockTagsProvider extends BlockTagsProvider{ public Crushing_Projekt_BlockTagsProvider(DataGenerator generator) { super(generator); } @Override protected void registerTags() { getBuilder(Crushing_Projekt_Tags.Blocks.Tutorial) .add(Crushing_Projekt_Blocks.BASIC_BLOCK).add(Tags.Blocks.STORAGE_BLOCKS_DIAMOND); } }   they all work and are much simpler to use then using a big code, like Animefan8888 did. But as i mentioned, i don't get it work.   I found an Youtube Video, where someone used it, but i could figure out, how to adjust it.
    • Sorry 1.7.10 forge is no longer supported here. Seeing as how it is 8 minecraft versions behind the current now.
    • i will try to disable chairsy block and then run it
  • Who's Online (See full list)