Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/04/17 in all areas

  1. And... congratulations! You are the third person in a row who forgot about applying correct translations before rendering! With correct translations applied I get the following from your code: Also if you want your block to be transparent you need to setup GL's blend too, not only alpha
    1 point
  2. You are comparing objects by reference (==) instead of by contents (ItemStack::areItemStacksEqual).
    1 point
  3. Yes, you are right, I misunderstood the question a little bit
    1 point
  4. DrawBlockHighlightEvent would be more appropriate.
    1 point
  5. You will need to use one of forge's render events, like RenderWorldLastEvent. You can get the block the player is looking at with the World::rayTraceBlocks method. I believe it's HitResult returns you the BlockPos of the block the player is looking at with EnumFacing of the side the player is looking at. Your rendering position would then be the raytraceresult position offset by that facing. To render a blockstate in the world you can look at RenderFallingBlock class. There might be some issues with transparency but in theory you can just enable blend with appropriate source and destination factors and either use gl's color method or manually override vertex color data in the vertexbuffer you are rendering your block with using VertexBuffer::putColor. Just do not forget to properly offset your rendering, or you will be the third person in a row with the rendered object 'following' the player/not rendering
    1 point
  6. Let me hit you with a little insight, since you didn't seem to understand @Choonster's message in your note to self. The PC version of Minecraft is handled by Mojang.....the other versions are handled by other studios, not totally involved with Mojang. As such, the versions have completely different codebases, making it impossible to support them both without an entire team to help. Until the other versions converge to use the same codebase (which is likely going to be never), Forge will never feasible on anything other than PC. There is also hardware limitations between the Xbox and PC versions, that will also cause major issues. To conclude, never going to happen bro. No one can do anything about it. Also, you used higher vocabulary words in your responses, and yet you put "us youngsters".......I'm 18 and would never phrase my words like that unless I had no idea what I was talking about......but that's just me being nitpicky Cheers, Zombie
    1 point
  7. They may be around here, so keep an eye out! Don't know how to spot a help vampire? Arm yourself... with knowledge!
    1 point
×
×
  • Create New...

Important Information

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