Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

M1ntcraft3r

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About M1ntcraft3r

  • Rank
    Tree Puncher

Recent Profile Visitors

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

  1. Hi all, so I upgraded my mod and it all went pretty well except for most of the function names from external libraries not updating. As an example, in my old mod I was using GlStateManager.pushMatrix(); And it had no issue finding this method. However, now it's unable to find it. After looking int the GlStateManager I found: public static void func_227626_N_() { RenderSystem.assertThread(RenderSystem::isOnRenderThread); GL11.glPushMatrix(); } which is the method/function and I am sure if I changed it it would wo
  2. Ah, OK, that makes some sense.. Any idea how I could go about drawing a sphere in Minecraft?
  3. Hi, I'd like to use SPHERE_MAP from GL11 to draw a sphere with given radius around a block position. I have been using GL_QUADS successfully to draw quads and planes but was hoping the SPHERE_MAP would be able to draw spheres for me. However, I have not had any luck with it... When using the QUADS, I can draw a plane by giving the 4 corners such as: bufferBuilder.pos(center.getX() + 1, center.getY() - diameter / 2, center.getZ()).endVertex(); bufferBuilder.pos(center.getX() + 1, center.getY() - diameter / 2, center.getZ() + 1
  4. Right, so I'd need to add my own buttons, etc.... I though it was going to be more straight-forward... I will have a look, but if you can link a basic example that would be awesome. Sorry but iI'm a total noob TY
  5. Thanks a lot for your input on this btw, its much appreciated Hmmm, now that I don't want to do! So from your experience, if I wanted a basic UI for my mod, literally something that allows me to enable and disable functionality for example, what's the best way to go? Ta
  6. OK, thanks, will do.. But I mean the container, such as a chest, is definitely available and surely I should be able to render it on only the client screen? I mean, I am not opening anything server side. It should just be a chest type inventory showing up on the screen. All the inventory items should be pre-defined by me, and cannot be taken out, they can simply be clicked and my code would detect which slot has been clicked...
  7. But surely I can stored all the data in my mod. The container does not really exist as far as the server knows. Essentially it should just be a client side UI that's populated for data I stored in my mod.. SO to elaborate, the container should not store items... the items that will be shown should just be buttons... Does that make sense?
  8. OK, this did with a full re-edit, here we go! I want to be able to press a key, such as "I" and I want that to be recognised by my code - already done When I press said key, I want a inventory screen to open (client side only) which only I can see and which cannot be edited OR no items can be stored/taken from it. The displayed inventory should be pre populated by my code with items (only visually) and when clicked, I want it to return which slot has been clicked.... Thanks in advance
  9. I think I got it imported... Ended up having to do it manually. Thanks
  10. Hi all, I'm really new to modding and I'm a bit confused with all the external libraries. I just downloaded some Foreg stuff (https://github.com/MinecraftForge/MinecraftForge) cuz I wanted to look at some of the examples. But when I import the project, I have lots of missing libraries ie I'd like to know how I would go about resolving these? Sorry if this is a dumb question and I appretierte your helps Thanks
  11. So Chris, I think I have sort of worked it out... If I draw a single quad, the player hand reamains rendered but if I loop over an array, it disappears. The way I am doing it is: ActiveRenderInfo renderInfo = Minecraft.getInstance().gameRenderer.getActiveRenderInfo(); Vec3d projectedView = renderInfo.getProjectedView(); GlStateManager.rotatef(renderInfo.getPitch(), 1, 0, 0); // Fixes camera rotation. GlStateManager.rotatef(renderInfo.getYaw() + 180, 0, 1, 0); // Fixes camera rotation. GlStateManager.translated(-projectedView.x, -projecte
  12. Thanks Ghost! This actually looks like what I need and also what Chris seemed to have tried in his thread (to some extend). Unfortunately I have not been able to get it to work but it looks like the IRenderTypeBuffer is the new way to go and thats how it should be done, rather than the Tessellator, BufferBuilder and the GlStateManager! If someone has a basic method which plots a few quads at a given location, that would be great. I spend a few hours at the weekend trying to get this to work but unforunately I got nowhere. I also don't want to paste my o
  13. Thanks for checking.. I'll have to search the web again cuz I know someone had a similar issue and if I recall correctly, there was a solution. Hopefully I'll find it. It is odd thought that you're not seeing it. Anyway I'll post an update over the next few days! Thanks again for your help Chris
  14. Interestingly it renders even over the players hand but I think I read something about that cuz its the RenderWorldLastEvent
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.