Jump to content

Novârch

Members
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Novârch

  1. What HUD? If you're looking for how vanilla renders it's HUD, you can find the vanilla source code in your project's libraries.
  2. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  3. There's a comment right above the constructor saying what you should use instead, use the supplier constructor or use as Ugdhar said.
  4. The pitch DOES change, the issue is that it snaps back to 0 every tick.
  5. A few things I notice at first glance, I usually register my packets in my main constructor, don't know if that's relevant. Why do you have a static boolean for if the key is pressed, your keybind most likely won't work in multiplayer if you use it. The int parameter in your key class is completely useless, you should remove it. I think ctx.get.setPacketHandled(true) should always be called, whether or not your requirement was met, call it at the end of the handle method.
  6. I've created a custom entity that I want to remotely control, I've accomplished this by sending packets from InputEvent and ClientTickEvent to move and setting it as the renderViewEntity, the issue is that when I set the entity's pitch from ClientTickEvent ingame it always tries to snap back to 0, the packet in question can be found here and the event I call it from here. Edit: SOLVED by calling setRotation from inside the entities tick method, have no idea why this changed anything.
  7. It seems you tried to use KeyBind on the Server, keybinds are client side, also why are you registering your packet on a key press? You should register it somewhere else, I've always done it in my main constructor.
  8. Thanks for the reply, seems like almost what I'm looking for, but the effect looks like it's permanent as I'm binding it to the player, is there a way I can make it toggleable?
  9. I want to make the game look black and white temporarily, like with the old Super Secret Settings, how would I do this?
  10. Please learn basic Java before modding, also read the documentation, it explains basic concepts such as networking and events.
  11. WorldTickEvent, get the ServerWorld and check all entities using getEntities, then check if an entity is instanceof your entity.
  12. In all of your item and blockstate jsons you put "help" in the part that should contain your modid instead of your actual modid ("helpmeplease"). And the directory it's in has a capital letter and isn't your modid.
  13. Could you post your mod as a git repo? It would be much easier to inspect every json then, btw the modid in the build.gradle doesn't matter, it's just what your output jar will be called.
  14. Please learn basic Java, all the problems listed here a basic Java syntax errors, you will not receive help here if you don't know Java.
  15. Stop using that pile of trash immediately, if you want to learn to code stick to Java and ONLY Java. I can't describe how bad the code that abomination generates is.
  16. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  17. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  18. It doesn't matter where you put the class, packages are just for sorting.
  19. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  20. NBT tags for what, items, entities? Be more specific.
  21. How could that be relevant to your issue? Think about it, every mod is made by someone. Please provide logs for more context.
  22. I'm already using it, wouldn't have if it wasn't for the helpful code comment above it.
×
×
  • Create New...

Important Information

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