Everything posted by Animefan8888
-
[1.10.2] Loading custom gui for custom block
That should be working....but change //This if (!mergeItemStack(sourceStack, first_fuel_index, first_fuel_index + fuel_slots, true)) // To this if (!mergeItemStack(sourceStack, first_fuel_index, first_fuel_index + fuel_slots, false))
-
[1.10.12] Disable swappinp hand (F key) on item
What do you mean it is not a safe solution, and I agree that would be a very useful hook.
-
[1.10.2] Loading custom gui for custom block
What does this line print out now? System.out.println(first_input_index + ", " + input_slots + ", " + (first_input_index + input_slots));
-
[1.10.12] Disable swappinp hand (F key) on item
You could probably use the InputEvent.
-
[1.10.2] Loading custom gui for custom block
addSlotToContainer is being called in your main class. When you call it the number of slots is still = 0 for all of those, and since you stored the number of slots in your TileEntity I don't understand why you don't use those? Instead of creating new variables in your container. *Note make them not final.
-
Sword json file help [1.10.2]
Where did you copy that from? { "parent": "item/handheld", "textures": { "layer0": "items/iron_sword" } }
-
Brewing Recipe Help [1.10.2]
Note these edits work for me.
-
[1.10.2] Loading custom gui for custom block
Ok you are going to have to add your Slots that are for you TileEntityFluxGrinder, you need to add them in your ContainerFluxGrinder.
-
Brewing Recipe Help [1.10.2]
In get output you never check if input2 is input. And honestly forge why would you just check to see if the item is the same when you should be comparing ItemStacks.....
-
Brewing Recipe Help [1.10.2]
Why not use BrewingRecipeRegistry.addRecipe(input, ingredient, output);
-
[1.10.2] Loading custom gui for custom block
Sadly it is not so http://stackoverflow.com/questions/1168345/why-does-this-and-super-have-to-be-the-first-statement-in-a-constructor What I mean is if you have something like upgrade slots that will be in all of the containers, you can add them in the main container. And all new ones for that specific TileEntity you add in that TileEntities container.
-
[1.10.2] Loading custom gui for custom block
Well then I'm going to say what I think happened since you are using for loops and setting variables that are initially set to 0. The constructor for the previous class gets called before the variables could get set in your ContainerFluxGrinder. Solution add slots in your new Containers atleast the ones that are not required.
-
[1.10.2] Loading custom gui for custom block
Why would super have to be first?
-
[1.10.2] Loading custom gui for custom block
Instead change the variables to not final and call super after changing them.
-
[1.10.2] Loading custom gui for custom block
Yes, did that work.
-
[1.10.2] Loading custom gui for custom block
Why would he want to use capabilities, he is using a TileEntity, not saving data to the player. Note to self capabilities can be tied to TileEntities.
-
Fence Gate rendering problem 1.10.2 (Solved)
Also never mind it exists in block models not in Item models.
-
Fence Gate rendering problem 1.10.2 (Solved)
Also // This "parent": "block/fence_gate_open", // and "parent": "block/fence_gate_closed", // Don't exist in vanilla 1.10
-
Fence Gate rendering problem 1.10.2 (Solved)
When do you ever register the model.
-
[1.10.2] Loading custom gui for custom block
Lets try something instead of re creating the variables public final int fuel_slots = 1; public final int input_slots = 1; public final int output_slots = 2; just initialize them in the constructor.
-
Need help porting back to 1.7.10
Ok the way I would recommend doing this is making a new project for 1.7.10 and copy all of your code into there. And downloading the forge source for 1.7.10 and setup your workspace.
-
[1.10.2] Loading custom gui for custom block
What is the result when System.out.println(first_input_index + ", " + input_slots + ", " + (first_input_index + input_slots)); prints out.
-
[1.10.2] Loading custom gui for custom block
Could you post the new crash report anyway?
-
[1.10.2] Loading custom gui for custom block
The inventory variable, instead of passing in the TileEntity you passed in the players inventory and the last time I checked the player only has 36 normal inventory slots. :3
-
[1.10.2] Custom gui button not working
I couldn't tell you why and yeah it has been a while since I have used drawTextureModelRect I forgot the parameters. Once you have switch over it should be much easier to pinpoint the problem.
IPS spam blocked by CleanTalk.