Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. public static final IProxy PROXY = DistExecutor.executeForDist(()->()->new ClientProxy(), ()->()->new ServerProxy());
  2. @Mod(clientSideOnly=true)
  3. You should read https://mcforge.readthedocs.io/en/latest/concepts/sides/. After that you should be able to understand your problem better. Have you checked if there is a Forge event for what you’re trying to do? This will mean you don’t need a proxy, to can just specify the side in the event subscriber annotation.
  4. I can see that, what I was saying is that if you break something, just go back up a method until it works again
  5. The way I would do this is get it to work calling vanilla methods, then copy the stuff from inside the methods and remove the stuff you don’t want until you’re happy.
  6. You could make this higher
  7. - no code - no logs - no examples of the issue We really don’t have much to work with
  8. I think that this is why you should use an IRecipe implementation instead of overriding getContainerItem.
  9. 1 push and 2 pops?
  10. That method formats/translates a translation key. Example: item.dirt.name -> Dirt.
  11. Rendering text hasn’t changed from 1.12.2 to 1.13.2, any code from 1.12.2 should work fine. You should also look at the vanilla classes to see how they do it
  12. (Assuming 1.12.2) Drop it in /libs/, make sure that your build.gradle has useDepATs=true, rerun setupDecompWorkspace, refresh the gradle project
  13. What do you mean ? I18n is an API for internationalising messages.
  14. An API for what
  15. The way I do it is to simply use the toString method on blockstates to turn them into strings, and then use the command block parser to parse them. I use it so that users can copy blockstates from their debug overlay and add them manually. It works pretty well, but if you can use a better system, do. https://github.com/Cadiboo/NoCubes/blob/2d116b923e584ecfaa05823ffbccc2e9aedf537e/src/main/java/io/github/cadiboo/nocubes/config/ModConfig.java#L220
  16. Translation should only be done on the client. If you translate on a server it will 1) only translate to English and 2) send the English text to the client. You can translate a string with TextComponentTranslation or I18n.format
  17. You could copy whatever the navigator from EntityLiving does and apply it to the EntityLivingBase probably
  18. I’ve worked on https://cubicoder.github.io/tutorials/1-12-2/tutorials/ myself, they’re pretty good but only cover setting up the basics.
  19. You could save a the player’s dragon died in a file (as a list of players and dragons) and then periodically check that file and act on it if the player is online
  20. You can use linear interpolation to smoothly move between two points. You will need the original start position, the final destination position and the amount between them the player should be.
  21. I solved this by restarting my computer. I’m guessing this could be caused by one of the old 1.12.2 gradle processes lying around somewhere.
  22. The darkness is caused by your block being a full block. Either make your block able to have light pass through/into it OR average the light from the surrounding blocks OR get the light from the proper place for each vertex. Rendered textures have an issue with 1 pixel around their edge being transparent. You can get around this the way vanilla does for block rendering (subtracting a tiny bit from the part of the texture it renders). You can see me doing this where I fix a number of issues with Vanilla’s fluid rendering at https://github.com/Cadiboo/NoCubes/blob/2d116b923e584ecfaa05823ffbccc2e9aedf537e/src/main/java/io/github/cadiboo/nocubes/client/render/SmoothLightingBlockFluidRenderer.java#L272. I add smooth lighting and fix the transparent lines between fluids.
  23. This is an example of how not to ask for help with an error. You haven’t provided any context at all. We need - your updated code - the actual error I would guess that you’re forgetting to push or pop a matrix somewhere
  24. Post your json files
  25. This indicates a big error in your mod. Make sure to do all stuff with entities on the server. Try stepping through your code with the debugger
×
×
  • Create New...

Important Information

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