-
Posts
73 -
Joined
-
Last visited
Everything posted by Tieso2001
-
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
What value? Sorry if I'm annoying you or anything, normally I can figure it out on my own by looking at vanilla classes but that's not the case here. -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
private RecipeWrapper recipeWrapper; public RecipeWrapper getRecipeWrapper() { return recipeWrapper; } Like this, don't I have to define it then? -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Okay let me explain what I have and what I don't understand. You say that I need to add RecipeWrapper field to my TileEntity. private RecipeWrapper recipeWrapper() { } This needs to return RecipeWrapper. I understand that I need RecipeWrapper in my TileEntity, because I can use that to pass the inventory to RecipeManager#getRecipe. But I don't understand how to get RecipeWrapper into my TileEntity -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Yes, but how do I return the RecipeWrapper from my SteepingRecipe class. private RecipeWrapper recipeWrapper() { return } -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
I don't think I understand how to do that. I added this, but then? private RecipeWrapper recipeWrapper; -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Just pushed everything I currently have to here: https://github.com/Tieso2001/BoneAppleTea/tree/1.14.4-dev -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Aha, got confused there for a sec, now I understand. Still don't understand how to fix the issue with the first argument in getRecipe(). -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
If I change this: public class SteepingRecipe implements IRecipe<IInventory> { to: public class SteepingRecipe extends RecipeWrapper { than this class is no longer a recipe so it no longer works. What is RecipeWrapper and how do I use it? -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Well the reason I want to be able to add recipes through jsons is for modpack makers to easily customise my mod and balance it themself. -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
I got everything working after I changed the IFactory interface in SteepingRecipeSerializer to public. Now I try to add the recipes to my TileEntity but I get the following error: "Wrong 1st argument type. Found: 'crafting.IRecipeType<SteepingRecipe>', required: 'crafting.IRecipeType<T>'" I tried changing it IRecipeType<T> but that doesn't work. -
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
-
[1.14.4][Solved] Create recipes for machine with json
Tieso2001 replied to Tieso2001's topic in Modder Support
Btw here's my github repository with the current code: https://github.com/Tieso2001/BoneAppleTea/tree/1.14.4-dev -
I have a machine that has an input fluidstack, an input itemstack and an output itemstack. Currently I can add recipes with the following code: RecipeRegistrySteeping.addRecipe("recipe_name", new FluidStack(Fluids.WATER, 1000), new ItemStack(Items.STICK), new ItemStack(Items.DIAMOND)); Where water is the input fluid, the stick the input item and the diamond the output item. I would like to be able to add and remove recipes like vanilla does this with crafting recipes and furnace recipes, through jsons. How can I implement this for my own machine? I want players to add their own recipes through data packs like how it is done in vanilla right now. I took a look at the CookingRecipeSerializer class but I have no idea how to do it myself.
-
[1.14.4] Problem with creating Container for TileEntity
Tieso2001 replied to Tieso2001's topic in Modder Support
Thanks, that fixed it. -
[1.14.4] Problem with creating Container for TileEntity
Tieso2001 replied to Tieso2001's topic in Modder Support
-
I followed this tutorial from McJty: https://wiki.mcjty.eu/modding/index.php?title=Tut14_Ep4. to create a container for my TileEntity. I got everything worked except the screen part. I have this: The problem is CaskScreen::new says it is a bad return type and that it cannot convert CaskScreen to U. What did I do wrong? CaskScreen.class:
-
[1.14.4] [Solved] Problem with adding DirectionProperty to block
Tieso2001 replied to Tieso2001's topic in Modder Support
Okay thanks for checking. -
[1.14.4] [Solved] Problem with adding DirectionProperty to block
Tieso2001 replied to Tieso2001's topic in Modder Support
Thanks, now it works. Here: -
I have created a TileEntity block that places like a normal block. Now I wanted to make it rotate-able like the dispenser so I looked into the dispenser code and created this. When I try to load the game I get the following error: I understand that "java.lang.IllegalArgumentException: Cannot set property DirectionProperty{name=facing, clazz=class net.minecraft.util.Direction, values=[north, east, south, west, up, down]} as it does not exist in Block{null}" this says what is wrong and that it cannot set the property because it doesn't exist, but I don't know how to fix this. Help would be appreciated.
-
[1.14.4] [Solved] Update to new stable forge version
Tieso2001 replied to Tieso2001's topic in Modder Support
Apparently it is fixed by running gradlew build and after that, refreshing build.gradle. -
[1.14.4] [Solved] Update to new stable forge version
Tieso2001 replied to Tieso2001's topic in Modder Support
I got an error with java compiler: java.lang.IllegalStateException: ProjectScopeServices has been closed. Caused by: java.lang.IllegalStateException: ProjectScopeServices has been closed. How do I fix this? -
I want to update my mod to use the new stable forge version. I tried changing the version number in build.gradle under dependencies to "net.minecraftforge:forge:1.14.4-28.1.0" but now it doesn't work anymore. Did I do something wrong or did I forget something?
-
[1.14.4] onBlockActivated gets called 2 times
Tieso2001 replied to Tieso2001's topic in Modder Support
Thank you. Fixed it by checking if the hand used is the active hand and now it works. -
I have a tileEntity with 1 inventory slot with a max stacksize of 1. I'm trying to make it so that, when rightclicked, the item in your hand will be inserted into the slot or when already full, the item in the slot will be extracted into your inventory. I've got it working for the most part, but when I test it sometimes it works and sometimes not. I tried debugging it and it turns out that onBlockActivated sometimes fires 2 times, so it inserts and then extracts immediately. How do I fix this / stop this from happening?
-
I know that the forge fluid system is being reworked in minecraft 1.13 and 1.14 because fluids behave differently in these version than they did in 1.12. I am curious if there are any sources for following the progress of this rework so I can get an idea of how far this rework is at the moment.