-
Content Count
6 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Pinary
-
Rank
Tree Puncher
Converted
-
Gender
Male
-
Tysm! Whoops, I thought I posted it under Modder Support. Sorry about that...
-
Pinary changed their profile photo
-
Pinary started following Recipes Not Working/IItemProvider Help, Wall Trouble and Stonecutter Recipe Generator
-
I am able to create the wall block and it can connect to other blocks. My problem is they won't connect to themselves. The picture shows the problem. I also can't get the item to look correct. My code: Makes Wall Block public static final RegistryObject<WallBlock> WHITE_BRICK_WALL = register("white_brick_wall", () -> new WallBlock(AbstractBlock.Properties.create(Material.ROCK).hardnessAndResistance(2, 6).sound(SoundType.STONE))); Block State wallBlock(ModBlocks.WHITE_BRICK_WALL.get(), modLoc("block/white_bricks")); Item Model withExistingParent("white_bricks", modLoc("block/white_bricks")); Thanks for look at the problem
-
Tysm! I was able to get it working
-
Is there a way to generate stonecutter recipes using data generators like this? ShapelessRecipeBuilder.shapelessRecipe(ModItems.WHITE_BRICK.get()) .addIngredient(Tags.Items.INGOTS_BRICK) .addIngredient(Tags.Items.DYES_WHITE) .addCriterion("has item", hasItem(Tags.Items.INGOTS_BRICK)) .build(consumer); I've looked around but can't seem to find one
-
TYSSSM!! It means a lot to me that you helped!
-
I'm very new to modding (this is my first mod), so sorry if this seem stupid. I'm using data generators to generate my recipes and whenever I run them it doesn't give any errors, but it also fails to generate the recipes. My Code: package net.Pinary_Pi.my1stmod.data.recipes; import java.util.function.Consumer; import net.minecraft.data.IFinishedRecipe; import net.minecraft.data.RecipeProvider; import net.Pinary_Pi.gear.item.CraftingItems; import net.Pinary_Pi.my1stmod.setup.ModItems import net.Pinary_Pi.my1stmod.setup.ModTags; import net.minecraft.data.DataGenerator; import net.minecraft.data.ShapedRecipeBuilder; public class ModRecipesProvider extends RecipeProvider { public ModRecipesProvider(DataGenerator generatorIn) { super(generatorIn); } @Override protected void registerRecipes(Consumer<IFinishedRecipe> consumer) { ShapedRecipeBuilder.shapedRecipe(CraftingItems.STORAGE_BLOCKS_SILVER) .key('#', ModTags.Items.INGOTS_SILVER) .patternLine("###") .patternLine("###") .patternLine("###") .addCriterion("has item", hasItem(ModTags.Items.INGOTS_SILVER)) .build(consumer); ShapedRecipeBuilder.shapedRecipe(CraftingItems.INGOTS_SILVER, 9) .key('#', ModTags.Items.STORAGE_BLOCKS_SILVER) .patternLine("#") .addCriterion("has item", hasItem(ModTags.Items.STORAGE_BLOCKS_SILVER)) .build(consumer); } } I'm pretty sure I need to change the CraftingItems to something different, but everything else I put there causes an error that says "The method shapedRecipe(IItemProvider, int) in the type ShapedRecipeBuilder is not applicable for the arguments (RegistryObject<Item>, int). " I know I need to do something with IItemProvider, but I don't know how. CraftingItems is a library that someone named SilentChaos512 made that I saw him using in his mods; I tried to copy what he did with it and put it in my mod. I'm pretty sure I'm not using it correctly.