Jump to content

GooberGunter

Members
  • Posts

    169
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

GooberGunter's Achievements

Creeper Killer

Creeper Killer (4/8)

0

Reputation

  1. All im really looking for is a guide to how the buffer builder works. I’ve been looking at some sample code from other mods as well as checking some LWJGL tutorials, but I’m still unsure on how to use it.
  2. Yeah, no problem. I didn't even think to use a lambda expression Edit: I don't know why I didn't think of this before, but the texture was null
  3. White box? Don't think so, just the mob's shadow.
  4. Hey, so I'm trying out my custom mob, but it's not rendering on screen. I've narrowed it down to the model's render method not being called, but I can't figure out why not. To test that it isn't just my model, I set the model to the ModelPig class and am still getting the same results: RenderTest: ClientProxy:
  5. Specifically, I wanna use Wavefront .obj models for custom mobs. My goal is to get familiar with 3D rendering. All I really need to know is how 3D rendering is done. From what I’ve seen it looks like the tessellator just needs the vertices of the model for correct positioning and then the normals of the faces to render the shape of the model. I’m not sure if that’s how it works, but I haven’t checked out too much code yet. Is this right?
  6. Hey, I'm trying to add my own complex models to the game, but I'm not sure how to use the Tessellator, are there any good tutorials/guides/books available for me to read up on? Thanks
  7. Ugh, I don’t know why I didn’t think of using the tick event. I even have one ready to be used. I also need to do a lot more research on threads ?. Thanks a lot.
  8. Fantastic! ...how would I go about checking that the key is down and then looping the effect? Also the game freezes even after i let go
  9. Hey, I'm trying to loop a method that damages an entity 3 blocks in front of the player (which works) as long as the left mouse button is held down, but the game just runs the method way too quickly to the point that the game freezes, I tried to slow this down with a modulo operator as seen below, but it doesn't work. Thanks in advance! public static void onClick(MouseInputEvent e) { GameSettings gs = Minecraft.getMinecraft().gameSettings; EntityPlayer p = Util.getPlayerbyUUID(Minecraft.getMinecraft().player.getPersistentID()); if(p.getCapability(PMDataProvider.PDAT, null).getMMode()) { p.getCapability(PMDataProvider.PDAT, null).setLSpell(new SpellBase("test", MagickaType.ARCANE, SpellComponents.Telekinetic, 1)); while(gs.keyBindAttack.isKeyDown()) { if(Minecraft.getMinecraft().world.getWorldTime()%10==0) { p.getCapability(PMDataProvider.PDAT, null).getLSpell().activateSpell(p); Util.logger.info("Left Spell: "+p.getCapability(PMDataProvider.PDAT, null).getLSpell().getRegistryName()); } } if(gs.keyBindAttack.isPressed()) { KeyBinding.setKeyBindState(gs.keyBindAttack.getKeyCode(), false); } if(gs.keyBindUseItem.isPressed()) { KeyBinding.setKeyBindState(gs.keyBindUseItem.getKeyCode(), false); } } }
  10. Thanks guys, works great! I'll keep the other possible methods in mind just in case there are any future incompatibilities.
  11. Hey! I'm trying to implement a new "mode" for the player, where they press a button and the left and right mouse buttons no longer destroy/place blocks, but do other functions. I have everything set up except for a way to cancel the original destruction/placement events. Is there any way of doing this? Thanks.
  12. Hey there! I'm trying to figure out how to load a .obj file to an entity as well as add animations, but I'm a little confused on how I should approach this. Do I need to use a certain method within the ModelBakery class? And how would I apply the animations since .obj files are all vertices and normals? I was looking for tutorials but I'm not having any luck right now. EDIT: of course I find this right after posting, it looks like Forge doesn't have support for entities so I have to make an obj parser myself. I'm guessing this means I can safely watch some LWJGL tutorials and figure it out that way
  13. Hey, so I'm trying to change the GUI of a custom Container based on items inside the Tile Entity, but I can't really find a good way to tell the server how to find the tile entity the player is currently accessing. One approach I had was to use the look vector but that's giving me really weird problems. Is there a better way of finding a tile entity's BlockPos from the client side? Here's the GUI if you want to look at it: I'd rather not use the look vector if it isn't necessary. I have the feeling it's better to use vectors in motion rather than position
  14. OH, Ok. It’s been such a long time since I’ve heard of threads, but I just got it. I have a much better understanding of the two sides as well as the practicality of threads. Thanks a lot!
×
×
  • Create New...

Important Information

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