Jump to content

BeardlessBrady

Members
  • Posts

    398
  • Joined

  • Last visited

Everything posted by BeardlessBrady

  1. Hello, so I figured out how to detect a mouse scroll in the GUI via #handleInput() and Integer.signum(Mouse.getEventDWheel()); BUT my issue is if you scroll your mouse one click in either direction it will detect it as scrolling for a couple of seconds. I want to be able to detect one scroll movement
  2. I can look at my block fine but if I spam going side to side looking at and away from my block it crashes. Crash Report: https://pastebin.com/9Hk2RmeP TESR: https://github.com/BeardlessBrady/Currency-Mod/blob/a5664192d7434b4703eeddb1b0546ba4250c20d2/src/main/java/beardlessbrady/modcurrency/block/vending/VendingRenderer.java
  3. Thank you, must of deleted it at some point. I appreciate it!
  4. Hello, so my lang file doesn't seem to be working which is funny because it was until recently. I have tried deleting my mod and reloading it from github, going back a few commits...nothing. Use: https://github.com/BeardlessBrady/Currency-Mod/blob/a5664192d7434b4703eeddb1b0546ba4250c20d2/src/main/java/beardlessbrady/modcurrency/block/vending/GuiVending.java#L75-L79 Lang: https://github.com/BeardlessBrady/Currency-Mod/blob/a5664192d7434b4703eeddb1b0546ba4250c20d2/src/main/resources/assets/modcurrency/lang/en_us.lang
  5. Thanks, I figured it out!
  6. How would I go about getting a baked model from an itemstack or get its vertex data?
  7. I suppose Ill have to move it down to just 25. Unfortunately when using the FastTESR I put the same code in the render method from above in the fastTESR's 'renderTileEntityFast' and it crashes. Any idea why?
  8. I know thats the problem. Im asking if you know of a more efficient way to implement it. And I will look into the FastTESR thank you. Basically I want to render the inventory of the block in-world in the model. The apples are just temporary till I get the render working.
  9. https://github.com/BeardlessBrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/VendingRenderer.java Well working on my TESR I noticed that having even just one of the block lowers my FPS exponentially. Any tips on how I can make it less laggy or other methods of rendering items in-world that'll be less straining?
  10. I figured it out! You can drop json files right into a resource pack
  11. I think I have an idea, basically when initializing the models I could just set the location to some folder in the game instance and I can tell the users to place their textures and json models there. But how do I create a modeResourceLocation that isnt in the normal location?
  12. Im working on an item that can have a configurable amount of sub items through the config. Im wondering if there is a way for the player to add textures to those sub items when there are no textures before hand? Edit: Yes I am aware "Resource Packs" are used to add in custom textures, but the problem is I also need to add the model files as well.
  13. Now Similarly is there a way to dynamically link textures to sub types. I want to allow users to create the textures and include them for the items (Before game load).
  14. Thanks! Thats exactly what I wanted!
  15. Hi so I was wondering if there was a way to set localized named by code instead of the lang file. The reason being is because I create items dynamically and allow the localized names to be chosen through the config
  16. I want players to be able to create the item texture in game. So Dynamically generating textures.
  17. Hey, Im more so looking for a way to create the texture and put it on an item on the fly. Hopefully someone can help, Thanks
  18. Thanks V0idWa1k3r that makes sense. Thanks everyone else for trying to help as well
  19. I found it thanks! But I tried using it on the quads I want to change the color of and it doesnt seem...to be doing anything. This is where the Color the Quads: https://github.com/BeardlessBrady/Currency-Mod/blob/3b28b7f982b489298a715e59ee0fe6e0fcf53fa8/src/main/java/beard/modcurrency/client/BakedModelCurrencyFinalized.java This is the method that colors the quads I quickly made: https://github.com/BeardlessBrady/Currency-Mod/blob/3b28b7f982b489298a715e59ee0fe6e0fcf53fa8/src/main/java/beard/modcurrency/client/BakedModelCurrencyFinalized.java
  20. Right, I already have baked quads which I get from an item texture, I just want to be able to colour it.
  21. As the title suggests I want to be able to colour BakedQuads.
  22. So for some reason how I was registering my items worked but when getting the object from the bakeHandler it would come null. I changed the way I registered my items to how CAS_ual_TY does it and the bakeHandler finds it. odd but hey it works.
  23. I dont think it was created but I have no idea why.
  24. So it should be there but its coming out null, any idea why?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.