Jump to content

Hipposgrumm

Members
  • Posts

    361
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Hipposgrumm

  1. I don't see anything wrong with your recipe, I don't know why it won't work. As for brewing recipes, those are currently hardcoded, so you will need to look up a tutorial on that (this one is good).
  2. You might have to go into the datapacks folder of your world and remove it manually. If it is doing this to newly created worlds, I you need to manually crash the game (F3+C for 10 seconds) and send the full debug.log.
  3. 1.8.9 is no longer supported on here. We only support 1.18.x and 1.19.x.
  4. You can look at the hotbar classes to see how to render a hud element. However, you should not use vanilla methods for registering things. Those are exclusive to vanilla. You can find a better example here, however.
  5. There are multiple problems with your request. This involves server hosting as a general, not forge. This is about 1.16.5, which is no longer supported here. We don't control Aternos. Aternos doesn't allow custom mod uploading (for security reasons). You can ask Aternos to add the mod you want to their service, but there is no guarantee that it will happen, and it won't happen overnight.
  6. Sorry, that part is left over from where I got my code from. FINE! I DON'T KNOW HOW TO MOD! DELETE THIS PLEASE @ChampionAsh5357!
  7. This crash happened outside of the JVM, so it is not a forge problem. We do not support java problems. Try googling the error at the top of the crash report.
  8. I would try copying the vanilla hotbar gui code and modifying it to look how you want it.
  9. 1.16.5 is no longer supported on this forum. We only support 1.18.x and 1.19.x.
  10. Sometimes, you want to create an item that can be called upon and also have a value attached. This tutorial will help you create a custom item property. These items can also be detected with the instanceof expression. It is better to use instanceof for these items instead of tags because if some madlad datapacker decides to add some random item to your list of custom items, it can really screw up your mod and crash the game from an invalid method statement (if it for some reason doesn't bump into a ClassCastException first) because that custom (possibly vanilla) item won't have that specific property. How to Do It: You want to do this with a modded item you register in this mod. Trying to modify an item added by another mod or vanilla minecraft will require events or mixins. First of all, create an Enum for your custom property (you don't have to do this, it just makes it more professional cool and easier to define your values with methods). You must also create a class for your custom item type. Once you have that, you can register it like a normal item, just with (your custom item type) instead of Item. And you're done! You can call upon any value attached to the item by using: ((CustomItemType) itemstack.getItem()).getValue()
  11. I am trying to recreate the armor trims from the 1.20 snapshots (I'm doing it, ME!, don't steal, I want to be the one to do it!) and I am trying to make it so that I can overlay the trim texture (tinted with a color) with the armor item texture. I'm not creating json files for each trim because I want them to be dynamic (modded trims on modded armor, like manasteel trim on emerald armor). Can anyone tell me how to do this? Also, it's worth mentioning that I mentioned this on Discord 3 times with only the third one being answered with saying no-one knows how.
  12. Can you please post the debug.log? This log doesn't include the problematic mod.
  13. You can try using a random value to do it. You can find more about creating random numbers here.
  14. If you have two mixins from two different mods mixing into the same method of the same class, each doing something different and then canceling the method, only one method will ever get run, possibly breaking the other mod entirely.
  15. You can use a mixin to modify Item.Properties, but that's not a good idea in the name of compatibility. Unfortunately, that is all that I know of. Sorry I could not be of more help.
  16. This might not be the best idea but you can set up an event to detect when a player is holding a tool and then set the durability of the held tool to one. But I don't know how that would work. You can also use mixins but they are not super easy to learn and can break other mods.
  17. Can you try running the jar from command prompt?
  18. You probably should handle it with a container. Especially since a pedestal will typically hold things and probably won't have a gui associated with it. However, if you do have a gui associated, you can pull from that, but you will need a container to prevent overlap (like chest and brewing stand).
×
×
  • Create New...

Important Information

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