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


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Novârch

  1. To check if you're on the server use World#isRemote, if it returns false you're on the server, if it's true you're on the client.
  2. Are you calling the super method that takes the RGB values in your model? A lot of people do this: @Override public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { Model.render(matrixStack, buffer, packedLight, packedOverlay); } Note that the method takes in RGB and alpha, but calls a render method that doesn't take those values in, if that doesn't work you can always replace the vanilla rendering logic with your own, take a look at LivingRenderer if you're interested.
  3. 1.12 is no longer support on this forum, please update to a modern version of Minecraft to receive support.
  4. 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.
  5. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  6. There's a comment right above the constructor saying what you should use instead, use the supplier constructor or use as Ugdhar said.
  7. The pitch DOES change, the issue is that it snaps back to 0 every tick.
  8. 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.
  9. 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.
  10. 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.
  11. 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?
  12. I want to make the game look black and white temporarily, like with the old Super Secret Settings, how would I do this?
  13. Please learn basic Java before modding, also read the documentation, it explains basic concepts such as networking and events.
  14. WorldTickEvent, get the ServerWorld and check all entities using getEntities, then check if an entity is instanceof your entity.
  15. 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.
  16. 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.
  17. 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.
  18. 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.
  19. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  20. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  21. It doesn't matter where you put the class, packages are just for sorting.
  • Create New...

Important Information

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