Everything posted by Pingubro
-
[HELP]Progress bar does not work as intended
Yes that is what I am trying to do the arrow should fill white and I looked in the furnace how it is done. This works somehow for the energy and the startup indicator but not for the arrow. When the arrow should be painted this happens.
-
FIXED:Crashing on Tutorial Item Mod(dealing with texture problems too)
Try this maybe this.setRegistryName(new ResourceLocation(modid, name)); Your modid should equal "tut" in this case. You can also use this.setRegistryName("tut:" + name); The String you use should be the domain of your texture file. Not only the name of your item.
-
getOriginal [1.10.2]
Try to look at the mod how they implemented the functionality and how they handle the thirst. Then look at the getOriginal method and make your own how it is realised. Put both together in the end.
-
FIXED:Crashing on Tutorial Item Mod(dealing with texture problems too)
I think it is because of this tutItem = new ItemtutItem("tutorial_item", CreativeTabs.MATERIALS); All your files are called tut_item.json and you named your item "tutorial_item". Maybe this is the problem. If this was not the problem maybe give your console output for the start of your client.
-
[HELP]Progress bar does not work as intended
Good evening, I have come to another problem with my GUI. This time it is the Progressbar I have looked at the code of the Furnace and mimiced it a bit so i got it working with the powerbar an the boot thing. But when the progress bar becomes active, it totally messes up my GUI. GUI Container TileEntity Thank you
-
[Solved] Gui not opening
Ok my bad thank you
-
[Solved] Gui not opening
GUI Handler
-
[Solved] Gui not opening
Hello, I implemented two GUIs, basically one and mimiced the other. The first I implemented works fine. But the second is never shown or displayed. Maybe somebody can find my mistake I am simply overlooking or just give ideas about common mistakes in the code and thinks that are important. First GUI Second GUI Thank you
-
Button Highlighting
So als the title says and the comments my Buttons dont highlight properly. Can somebody maybe tell me how it is done in Minecraft e.g. slot highlighting?
-
Button Highlighting
Yes that is what I mean.
-
Button Highlighting
Thank you, but I am asking for the way how to position the yellow highlighting of my button. And also how to color it white. See screen for proper description.
-
Button Highlighting
Thank you very much, now I have the problem that the buttons start to glimmer yellow if i hover them. But this is also shifted to the button on their left. How can I highlight them in the default white? And also how can I position it correctly?
-
Button Highlighting
Hello, it is me again. I am creating a GUI the first time and try step by step to create it on my own. But at this point I am stucked again. My buttons seem very messy(posted screenshot). How cann I fix this? And can I cange the texture of a button like I do in my code? Button GUI(in onACtionPerformed I change the texture)
-
I cannot insert Items into my Slots
Hello, as the title says I can not insert items into my GUI. I am trying to create a filter styled GUI and I am trying to create a ghost item inside the slots so that people can keep their items if they configure the block. So my idea was to let the ItemHandlers(ItemHanlderFilter) insertItem() Method always return the full stack. But I can only insert the item if I am decreasing the stack size for atleast one. I am using a custom FilterSlot and also tried to override the isItemValid Method in there to always return true. Still not working. I am really confused about this. I am stucked at this point. FilterSlot: https://github.com/hnsdieter/FluxedThings2/blob/master/src/main/java/pingubro/fluxedthings/gui/FilterSlot.java ItemHandlerFilter: https://github.com/hnsdieter/FluxedThings2/blob/master/src/main/java/pingubro/fluxedthings/itemhandler/ItemHandlerFilter.java
-
[1.11] Change a model's texture in custom IBakedModel
I think that is what blockstates are for. (https://mcforge.readthedocs.io/en/latest/blockstates/states/) so you need atleast one other JSON file. Than you can change the state of your block in the code and I think it should change the texture. Correct me if I am wrong.
-
[SOLVED] GuiContainer Slot Questions
Ok thank you very much
-
[SOLVED] GuiContainer Slot Questions
Thanks for the quick answer, you really helped me with the SlotItemHandler thing I uploaded an Image about what I am talking about.
-
[SOLVED] GuiContainer Slot Questions
Hello, so I have got two questions: 1. How can I use Inventory Capability in a Gui Container? Do I have to implement IInventory here? 2. My GUI seems very messy(Slots are not aligning to the texture). Can somebody mayber see what is the problem here? My code: https://github.com/hnsdieter/FluxedThings2/blob/master/src/main/java/pingubro/fluxedthings/gui/ContainerOmniVoider.java Thanks, Pingubro
-
[1.11] How to modify a TileEntity via GuiButtons?
Hello, as the title says, I try to figure out how I can modify my TileEntity via a GuiButton? Best regards Pingubro P.S. sry for continous bad English in my posts, my mother tongue is German
-
Interfaces vs Capabilitys
Good evening, I am very curious about this new thing called "Capabilitys" because I have two questions I am asking myself all the time: 1.) When shall I use Capability, wehen Interfaces? So my answer to myself is use Interface for Complex things e.g. Chests and large Inventorys or Complex Machines. Capabilitys seem like they are for Simple Machines and Simple Inventorys. I know there are way more Capabalitys and I understand they primary advance to Interfaces because of alle the casting. 2.)Is every TileEntity implementing Capabilitys or is it like a need Helper for us Modders? In that case I am thinking about things like conduits sending Power, Items and Fluids. Who gurantees that a Capability is implemented and not an Interface. Thanks in advance. Pingubro
-
[SOLVED] [1.11] TileEntity doesnt seem to tick
Ok, my bad... False import instead of the util one I accidently imported the texture one FailFish sorry
-
[SOLVED] [1.11] TileEntity doesnt seem to tick
Hello everyone, I am pretty much stuck with my TileEntity. Because it doesnt seem like it is ticking. My Code: TileEntity: https://hastebin.com/otigaxujis.java Block: https://hastebin.com/talosalacu.java I am registering the tileentity in the preInit befor my Blocks, does this effect the functionality? Also improvements for the code and mistakes in the code are to find. If you want to leave them below . Thanks. Pingubro
IPS spam blocked by CleanTalk.