Jump to content

ChampionAsh5357

Members
  • Posts

    3284
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by ChampionAsh5357

  1. At a regular crafting table container. It should show you everything you need to know.
  2. Check if the stack has an enchantment on it and set the information in Item#addInformation or RenderTooltipEvent if it isn't your item.
  3. You need to set the RenderType via RenderTypeLookup to cutout in the synchronous queue provided by the client setup event.
  4. Send a packet to the server or the better answer would be handle the logic on the server completely. Only thing you need to send is nothing.
  5. https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/
  6. You can locate the class in the source or open it directly by clicking on the class name using whatever method your IDE specifies.
  7. Read the javadoc on the event. You're gonna need to send a packet.
  8. There's a BiMap you need to add your structure to within Structure along with registering it as a feature and structure.
  9. I recommend taking a step back and learning about multithreading. Forge does a simple explanation when they review sides, but you should still look up the oracle docs and read through it.
  10. That's still a dependency, but it's a soft dependency. What you're saying is that 'can I read a variable without a hard dependency'. Yes, you still need to compile your mod with the code and support some information on it; however, it is possible. You will need to add the information in the mods.toml and specify that it isn't mandatory. From there, you will need extra care to make sure that the mod is present through the use of the ModList or OptionalMod.
  11. You can take a look inside PlacementSettings and see for yourself.
  12. I don't remember how it's formatted, but I know it's documented online. As for examples, you will need to do a dump report to get the vanilla data gen output if you want to view those. Same classes as they were in 1.16.1 iirc. Only difference is now that it can be attached via json other than the hardcoding nonsense vanilla does. Find this line "mappings channel: 'snapshot', version: <mappingsVersion>" and replace it with the latest mappings. Those can be found on #modder-support-116 on the Forge discord.
  13. Make a json for it. If you want to add to preexisting biomes and dimensions use BiomeLoadingEvent and BiomeManager iirc. Hasn't really changed. Abstracts classes more for reordering characters in different languages and add a MatrixStack parameter everywhere. There is definitely a blit in the mappings. AbstractGui holds them all. This is not something to complain about. There are only so many people who create mappings and then have to have someone else verify until we have a more complete version of MMS.
  14. 1.15.2 has an optional license information. 1.16.3 requires that the license information be present in the toml. You can simply add license="<your license here>" into your mods.toml near the top and that should fix it. You can view some licenses here.
  15. You answered your own question. As for making it present in an existing dimension, I believe that's still done through BiomeManager. You would probably need to add it when server is about to start as the json will not be populated in the dynamic registries until then.
  16. Well if you're using the Template class, you can specify the placement settings to include how to rotate the structure when placing. If you're doing the calculation manually, you will need to use some sort of rotational matrix on the entire structure and on each block individually. Most likely, you will do both of those steps at the same time so that it is efficient.
  17. The NativeImage is written to the file location after the event is called. You can specify the new location for the file if you would like. However, you want to read any information directly from the NativeImage instead of where it will be posted.
  18. The forge docs gives an overview of the provided features. A good bit of the source is javadoced. However, you should have the ability to infer based on observation to solve whatever problem you have. They are rarely good anyways. Most of the time it's copy-paste from someone else's. Ask a question to the forums if you're having some problem trying to understand a particular piece of code. Just note, you are assumed to know how to write java. We're here to help you understand ways how to fix your code. We will not write it, but we will give you the tools necessary to succeed.
  19. That has me worried. Where? The type takes a supplier while the create method takes a new instance.
  20. Properties::create and Properties::from?
  21. I read what you said and not what the code written was. Use the static constructors like create of from instead of using the new instance ones.
  22. Makes sense, you aren't rotating the vector on the XZ-plane. You're expecting that only moving one coordinate instead of both will have the correct effect. If you wanted to do that, you would need to construct a rotation matrix and rotate around the Y-axis. Determine the number of degrees you want to rotate by and boom, you have your corrected vectors.
  23. There are no libraries that come with forge mdks. You grab them using the gradle file. So, so just redo your mdk setup as if you were making a new one. The commands or IDE buttons should come with the territory.
  24. Don't hardcode a parameter, just call the superclass directly. This is a waste of an object and resources. They are definitely not private. They are static final fields accessible to any who calls it. You might want to try setting up your workspace again.
  25. It's called on both threads. You should make the code execute on a specific side.
×
×
  • Create New...

Important Information

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