-
Posts
398 -
Joined
-
Last visited
Everything posted by BeardlessBrady
-
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
-
[1.12.2] TESR crash when looking at my block
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Thanks -
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
-
Thank you, must of deleted it at some point. I appreciate it!
-
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
-
Thanks, I figured it out!
-
How would I go about getting a baked model from an itemstack or get its vertex data?
-
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?
-
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.
-
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?
-
[1.12] Dynamically add textures for subtypes of items
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
I figured it out! You can drop json files right into a resource pack -
[1.12] Dynamically add textures for subtypes of items
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
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? -
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.
-
[1.12] Localized Item Names in Code
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
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). -
[1.12] Localized Item Names in Code
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Thanks! Thats exactly what I wanted! -
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
-
[1.12] Creating Textures for an item in game
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
I want players to be able to create the item texture in game. So Dynamically generating textures. -
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
-
[1.12] Is there a way to color BakedQuad's?
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Thanks V0idWa1k3r that makes sense. Thanks everyone else for trying to help as well -
[1.12] Is there a way to color BakedQuad's?
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
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 -
[1.12] Is there a way to color BakedQuad's?
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Right, I already have baked quads which I get from an item texture, I just want to be able to colour it. -
As the title suggests I want to be able to colour BakedQuads.
-
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.
-
I dont think it was created but I have no idea why.
-
So it should be there but its coming out null, any idea why?