Jump to content

ChampionAsh5357

Members
  • Posts

    3284
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by ChampionAsh5357

  1. He's not insulting you. He literally told you what you need to do. If you don't understand it, then you should reevaluate your knowledge of programming languages and libraries before continuing. If only there was a way to do this in an IDE... A method?!?!? That's can be accessed statically?!?!? Yes. There is no level of java needed to answer this question. You just have to view a source like you would with any other library you might depend on. Please take the time to learn your IDE and the language you are programming with.
  2. If you want us to provide support for either latest or LTS and you originally posted a topic for a legacy version, you need to show some kind of evidence that you ported to one of these versions. Those are the rules of the forums. Even tells you which versions are supported in the blue info bar up top. Probably, but you would have to look for it yourself. Apologies I can't be of any more assistance.
  3. Update to 1.15.2 and show proof. Otherwise, we cannot give you support.
  4. If you create the blocks and features, then you would need a mod. However, all of that would still be handled by the datapack itself. If you wanted those ores and features to spawn in a vanilla biome, then you would use BiomeLoadingEvent after you update to the latest minor.
  5. 1.12.2 is not supported on this forum. Please update to at least LTS 1.15.2 to receive support.
  6. I looked at the source in the version I was using and it wasn't? It was replaced with a wrapperTooltip.
  7. If you're in the player container, you shouldn't need to set anything directly to the inventory. Set it only to the container slot stacks, those will update the inventory. Second, if the item is getting duplicated, you probably aren't removing the stack on click. That should be handled cliently where when you click, you send the bundle and the slot it clicks. You remove the bundle from the slot clicked in the screen, but you don't add the other stack in its place if it's not empty. Similarly on the server, you grab the stack in the slot where you clicked, put it into the bundle, and put your stack in the slot replacing the cobblestone. Please make sure that you copied the stack you're adding or else you will dupe the bundle most likely.
  8. Ah, well, that's a tiny bit problematic as a model does not need an IReorderingProcessor. As for how it's rendered, that's handled through FontRenderer#func_238416_a_ and the size of the background is determined by line 153 of Screen#renderToolTip. Those are passed into a reordering processor incase the game is in a different language which reorders the characters into their correct format. So, the easiest thing you could do is handle a string which specifies a registry name and replace on render. Either way, you're going to need to split the tooltip rendering to reference the IReorderingProcessor after you have received a list of the text components.
  9. I really wouldn't look at the advancements as a reference to a skill tree type thing. The system works completely different from that of skills. Well yes, you can only have an advancement that's loaded into the game. But, you're also missing how advancements determine whether to unlock in this case. That's handled and stored somewhere completely different. It grabs them from the files they are reading. Simple as that.
  10. Handling this on the wrong side. You would send the information to the server which would modify the values and affect the creative screen respectively. Most likely as the handling would need to be custom.
  11. A tooltip is quite literally a box with things drawn on top of it. So yes, it's completely possible, you'll just probably need to write a whole bunch of handling for it within RenderTooltipEvent if I'm not mistaken.
  12. First, update to the latest minor. Second, this just sounds like a datapack that replaces the overworld dimension. There is no real need to have anything declared in code here. If they want your datapack, they add it. If not, they don't have it.
  13. It's now an attribute called REACH_DISTANCE. You should apply attribute modifier using Item#getAttributeModifiers.
  14. First, Problematic Code 11. Second, no need to register the configured feature. Third, you need to defer execution of the configs Fourth, one try will fail about 99.9% of the time. Fifth, you don't need to register the configured feature. Sixth, try to avoid using someone else's source as a direct reference as it most likely has problems of its own. Instead, indirectly view the code and try to understand what it's attempting to do and apply the underlying logic in the correct method.
  15. Yes, you would then be able to deserialize the instances correctly and on world load. If you really don't feel like it, you can also just add a reload listener to the server datapack and just refresh the data whenever that is loaded. Or, if you expect it to never change will ingame, I believe FMLServerStartedEvent is perfect for that.
  16. So, just as a notice, it recognizes that the resource class path exists; however, it doesn't recognize the actual mod itself. I can see that from this line: So it most likely doesn't recognize your mod as a dependency for some reason. Either because it's not compiled onto the build path or something else not recognizing it as an actual jar. That's my final bit of insight.
  17. ITag<Item> itemTag = ItemTags.getCollection().get(entry); Here is the issue I see. You will need to create recipes that deserialize on datapack load. Otherwise, this will return null or nothing since it hasn't been populated yet.
  18. If I'm not mistaken, JEI does initialize recipes after the world loads up so it should be fine for tags. You just shouldn't have any direct references to tags in your code. They can be deserialized by the recipe itself.
  19. I'm sorry then, that's all I can think of at the current moment. Would you mind posting the debug.log as well and I'll see if I can come up with anything else.
  20. Well once you change your build.gradle, you need to tell your client, server, and data start that the information has changed. That's done by refreshing the gradle dependencies, regenning the runs, and then clicking on either runClient, runServer, or runData. Else, it won't recognize anything that has changed. Hmmm, this should work imo with my knowledge in gradle. My only other thought is that the api is not a mod itself. And if that's the case you need to include the one with the mod annotation.
  21. Well that depends on how you are calling the tags. Recipes are not affected by block tags, only item tags. My guess is that you're calling the tags collections before they are initialized in the world.
  22. Maybe, I might also just be giving you incorrect information as well as gradle tends to be spaghetti when it comes to anything. I'm assuming that you already did the refresh, regen, and then run I mentioned above? I am working off the assumption that the api is part of the current folder structure.
  23. Ah, well then you probably need to create a configuration block (e.g. configurations{...}) and having the compile from one classifier to extend from another (e.g. <classifier>Compile.extendsFrom compile).
×
×
  • Create New...

Important Information

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