Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. Just how you would any other item...ModelLoader.setCustomModelResourceLocation along with the ModelRegistryEvent.
  2. The vanilla shield isn't actually rendered in the normal fashion. It is rendered in TileEntityItemStackRenderer. However you can create your own custom model for it however you want, though it may be a pain to acheive the proper positioning.
  3. @reapersremorse The items damage is actually how much damage the item has taken I believe that when you save and load the world after having the item take 32768 it will either reset to full durability or to having taken 32768 damage. And also if the items damage is ever over 65535 the ItemStack will be considered empty and would then no longer really exist.
  4. That screenshot is of armor and neither of those are the item damage amount.
  5. Packets and network data, as well as saving to disk, and the pure fact that they dont need anything higher than the durability of a diamond pickaxe.
  6. As far as I know they dont use the damage value directly they use NBT data to store a full sized integer and then create a fraction min/max and multiply that by the actual max damage. So say we have a tool that has a durability of 40,000. And it currently has 20,000 left. And the max damage the item can have is 100. So 20,000/40,000 is. 5 or 50%. Then we multiply .5 by 100 and get 50. So our damage value is 50, but our actual durability is 20,000.
  7. My bad, I didn't see that small but of text at the very bottom of his post and didn't read the quote. In which case yes a class called Utils or two classes Utils and Constants would be fine.
  8. In this case Constants makes more sense. Utils implies there would be a functional application of the class ie methods, but this class only contains Constants. Though this is ultimately a personal choice like putting an I in front of an interface. I am unsure of this value, due to minecraft truncating there metadata value to 2 bytes aka a Short.
  9. That is just the texture, the actual distortion is done in EntityRenderer#setupCameraTransform which just does some GL rotations and scales. Though you might be able to do this, though you should do it in GameOverlayEvent.Pre so it doesn't mess with the hotbar, etc. Also you may want to create your own thread because this is getting off topic and might be considered Thread Hijacking.
  10. It should take a look at GuiIngameForge line 139. It simply just renders the portal affect over the screen.
  11. Or he could do new Random().nextInt(max-min) + min + 1;
  12. Yes that is exactly how this works. Its called variable shadowing, you can read a bit on it here. Edit: Wait I read that wrong. No they do not you actually end up with two variables with the same name.
  13. Ahh I see, my bad I've never seen someone have two ModelRegistryEvents and separated them between Blocks and Items. Speaking of which, don't, you only need one. Your problem is that since you are calling the super method in your client proxy the item is being added to the common proxies items and not the client proxies. Don't have two instances, only have one Registry Event per type.
  14. You need to have a ModelRegistryEvent to register your models. Also take a look at Code Styles #1 and #3.
  15. Everything below 1.8.9 is not supported on this forum. Update if you want to receive assistance. This thread will later be locked by a forum moderator.
  16. No, this is not how a Container works. A Container is essentially a server side GUI that just simply holds the information, such as ItemStacks so that the Client can't cheat. You should be using GuiContainer and Container for this.
  17. This means that the it can't find the file at the path provided. Is there a file called fish_bowl.json at assets/fishoverload/models/item/?
  18. Well if I am not mistaken you could remove the recipe add your recipe and then add the old recipe back and that might fix your problem. This would be because it would find your recipe first in the for loop.
  19. Stop making more topics about the same problem. Be patient. @diesieben07 Could you delete this thread for the sake of organization, H_SerhatY as made three threads on the same topic.
  20. The first one should still be the same, however for creating crafting recipes that already have enchantments you should create a custom implementation of IRecipeFactory and handle the json data accordingly.
  21. You want to draw on the screen directly/an overlay. Use RenderGameOverlayEvent.Post
  22. Could you post all of your code please, preferably on github.
  23. There is a damage validation of sorts it simply doesnt allow damage less than 0. You should call setHealth or heal whichever exists.
×
×
  • Create New...

Important Information

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