Jump to content

Leaderboard

Popular Content

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

  1. I'm *not* doing anything with its rotation... and it's just not rotating at all... As for the lighting, I *didn't* disable lighting at first, and it was black; that's why I tried disabling lighting, but it's still black. Either way I tried that, it still turns out black. *EDIT* A little bit of debug output shows me that the age of the EntityItem is *not* ticking up. I'm going to look into that more, but I assume that's because it's not spawned in the world? At the same time, I don't *want* it spawned in the world as an entity, I'm only using it for rendering, so... how do I get its age to tick up without spawning it? *EDIT 2* Problem 1 is solved! Turns out that the age is ticked up in the onUpdate() method, and that's only called naturally for entities spawned in a world. So I just manually call onUpdate() now, immediately after setting the entity's world, and it spins perfectly normally! Now I just need to figure out how to get the colors/lighting correct.... any ideas? *EDIT 3* AHA! Solved it! I stumbled upon the solution completely accidentally, really I was going to remove the super.render() call, since I didn't want the nameplate to render, and I figured I should check that method to make sure it's not doing anything else important that I might need to keep. It's not, but in that method, before rendering the nameplate, it calls the setLightmapDisabled method. That method doesn't use GlStateManager.disableLighting() at all -- instead, it disables a lighting map texture. So I removed the super.render() call and tried using setLightmapDisabled in my rendering code instead... and it worked! The item now renders perfectly fine Thank you for your help, Draco!
    1 point
  2. For 1.10, look at how I handled it here: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/util/RecipesUtils.java#L129 Don't worry about what the function is doing but rather on how its doing it.
    1 point
  3. Then you'll need to handle each recipe class individually. For Vanilla's shaped/shapeless recipes, look for a field containing the collection of ItemStack ingredients. For Forge's ore recipes, look for a field containing the collection of Object ingredients. Each Object can be either an ItemStack or a List<ItemStack>. I strongly recommend updating to 1.12.1.
    1 point
  4. No you can't. Way too Time Consuming No Probs at all man Have a nice Day/night/Whatever! ^^ -Dj
    1 point
  5. Yeah, I meant that with Output ^^. Download the Windows Offline (64Bit) from this website and Install Java. Link: https://www.java.com/en/download/manual.jsp Note: If you have 32 Bit, use the Windows Offline without 64 Bit link instead -Dj
    1 point
  6. Can you post the output here? It should tell you your Java Version
    1 point
  7. Yeah, there is a whole system of which entities are "tracked" on each client since the world is so big that it doesn't make sense to have every entity sending info to the client continuously. I have some flying entities where I have to put the range to 8000 because otherwise the disappear if they fly high and also at some distance. And the second parameter is also important as the value of 1 will mean the updates are sent very occasionally, but for fast moving ones you want them sent more frequently.
    1 point
  8. For fast moving entities, I usually put 80, 10 where you put a 5, 1 in your entity registration. I think your "5" means you'll stop tracking once it is 5 blocks away!
    1 point
  9. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/AdvancementUtils.java#L20 Here's an example. It does not point to the same object you're interested in, it just shows how to use ReflectionHelper.
    1 point
  10. Use ReflectionHelper. (Note: The class name is not "avh.f" it's "avh" with a field name of "f", but you don't need Notch names anyway)
    1 point
  11. You need the SRG name as well. You can get it from MCPbot.
    1 point
  12. Do you have Java installed? Here is how to check: 1. Open CMD(if on windows. Open Terminal if on Linux) 2. type: java -version 3. Hit Enter -Dj
    1 point
  13. TileEntity has a REGISTRY field that is like all other registries. You will need to use reflection to access it, however.
    1 point
  14. Right click -> References -> Find in workspace -> learn
    1 point
  15. Use Minecraft's Structure Blocks to save a structure to NBT, which you can then use in code to load the structure. Create a new Template instance with the resource location of your structure.nbt file, and call Template#addBlocksToWorld to spawn the structure. You can do this in your WorldGenerator class.
    1 point
×
×
  • Create New...

Important Information

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