Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/23/19 in all areas

  1. Developing a mod an mac is just the same as on windows or linux. Just install java 8, your favorite ide, download the forge mdk and open it as a project inside your ide. On how to write a mod, there is plenty of stuff for 1.12 available. For example the forge documentation and multiple online tutorials.
    1 point
  2. A BlockState is not a block. It is a combination of Block + metadata + other values. Are you using an IDE to write your mod? Do you know Java?
    1 point
  3. That would be your problem. All FastTESRs are given the same buffer that is already setup properly. You need to draw at the position, currently you’re drawing near 0, 0, 0 Yes. The vertex format BLOCK requires a lightmap. Lightmap values are from 0-240 with 240 being max brightness. You can use IBlockState#getPackedLightmapCoords to get packed coordinates. You can then use packed >> 16 & 0xFFFF to get the skylight which is stored in the upper bytes and packed & 0xFFFF to get the block light which is stored in the lower bytes. You might want to look at https://github.com/Cadiboo/Example-Mod/blob/5fe80fde8a41cd571593c02897b06b5822e9a738/src/main/java/io/github/cadiboo/examplemod/client/ClientUtil.java#L240 as it is very well commented. Also note the offset (x, y, z) that is added to the quad in the renderFast method.
    1 point
  4. You could save the current value if the player joins the game and at any given time calculate how far he walked since, with the new current value.
    1 point
  5. Please read the logs section of my signature and provide the appropriate log in the appropriate manner.
    0 points
×
×
  • Create New...

Important Information

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