Everything posted by Animefan8888
-
IFuelHandler deprecated??
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.
-
IFuelHandler deprecated??
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.
-
IFuelHandler deprecated??
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.
-
[1.12.2] Model overrides applying globally instead of per stack?
Is the apply method even being called?
-
Camera Effect?
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.
-
Camera Effect?
It should take a look at GuiIngameForge line 139. It simply just renders the portal affect over the screen.
-
IFuelHandler deprecated??
Or he could do new Random().nextInt(max-min) + min + 1;
-
[1.12.2] Model overrides applying globally instead of per stack?
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.
-
[1.12.2] Model overrides applying globally instead of per stack?
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.
-
[1.12.2] Model overrides applying globally instead of per stack?
You need to have a ModelRegistryEvent to register your models. Also take a look at Code Styles #1 and #3.
-
[1.7] How to get a servers ip?
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
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
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/?
-
Recipes do not override OreDictionary ones
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.
-
[1.12.2] I really need help for that.
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.
-
[1.12.2] Two questions about modding
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.
-
Camera Effect?
You want to draw on the screen directly/an overlay. Use RenderGameOverlayEvent.Post
-
[1.12.2] I can't enchant my item??
Could you post all of your code please, preferably on github.
-
Negative damage doesn't heal entities
There is a damage validation of sorts it simply doesnt allow damage less than 0. You should call setHealth or heal whichever exists.
-
[Solved] [1.12.2] How to handle exceptions in constructors
My bad sent this as I received your message.
-
[Solved] [1.12.2] How to handle exceptions in constructors
Force them to use a Block or Ite instance then you can limit that by making methods that add them, but only take a Block or an Item. Hence why I said And make the constructor of the OreDictManager be protected so only classes extending it or in the same package can access instances of it.
-
[Solved] [1.12.2] How to handle exceptions in constructors
I dont see why this is a problem actually, are you the only one using this code? If so then you should know that the only two types it can accept are Blocks and Items. Ultimately you could make two classes that extend your OreDictManager that explicitly uses Item and Block respectively and possibly make your OreDictManager abstract unless there won't be a difference between the two functionally.
-
Help with json texture errors for 1.12.2
- Help with json texture errors for 1.12.2
Post the log.- Animate Custom Block Models
You should use the Animation System, I have a tutorial about this on this forum it is here. It explains how to use it, hopefully decently well. If you have any questions ask. - Help with json texture errors for 1.12.2
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.