-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[Solved][1.12.2]How to get a model for a shield
Animefan8888 replied to _Cruelar_'s topic in Modder Support
Just how you would any other item...ModelLoader.setCustomModelResourceLocation along with the ModelRegistryEvent. -
[Solved][1.12.2]How to get a model for a shield
Animefan8888 replied to _Cruelar_'s topic in Modder Support
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. -
@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.
-
That screenshot is of armor and neither of those are the item damage amount.
-
It's ok, I have done it to.
-
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.
-
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.
-
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.
-
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.
-
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.
-
It should take a look at GuiIngameForge line 139. It simply just renders the portal affect over the screen.
-
Or he could do new Random().nextInt(max-min) + min + 1;
-
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.
-
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.
-
[1.12.2] Item data + Gui screen slots without container
Animefan8888 replied to DoctorLOGiQ's topic in Modder Support
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. -
Help with json texture errors for 1.12.2
Animefan8888 replied to RaptorClaus's topic in Modder Support
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/? -
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.
-
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.
-
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.
-
You want to draw on the screen directly/an overlay. Use RenderGameOverlayEvent.Post
-
Could you post all of your code please, preferably on github.
-
Negative damage doesn't heal entities
Animefan8888 replied to hoodwink_dude's topic in Modder Support
There is a damage validation of sorts it simply doesnt allow damage less than 0. You should call setHealth or heal whichever exists.