Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/20/17 in all areas

  1. My harvest swords can be repaired with the ToolMaterial's repair item in anvils and I don't override any repairing-related methods or subscribe to any anvil-related events to achieve this; it just works by default. It looks like ModTools.initRepairs isn't being called from anywhere, since it's private and not called in ModTools. This means that your ToolMaterials' repair items aren't being initialised; which would explain why your tools can't be repaired. What do you mean by "it won't register"? Did you try to use the ItemAxe(ToolMaterial) constructor with a non-Vanilla ToolMaterial only to find that it threw an ArrayIndexOutOfBoundsException? You need to use the ItemAxe(ToolMaterial, float, float) constructor for modded ToolMaterials; the ItemAxe(ToolMaterial) constructor uses the ToolMaterial's ordinal as an index for the ATTACK_DAMAGES and ATTACK_SPEEDS arrays, which only have values for the Vanilla ToolMaterials.
    1 point
  2. Create an instance of an anonymous class that extends StateMapperBase and implements StateMapperBase#getModelResourceLocation to return a dummy ModelResourceLocation (e.g. new ModelResourceLocation("minecraft:air")). You can then use StateMapperBase#getPropertyString to get a property string to use as the variant of a ModelResourceLocation. You can see how I do this in my mod here and here.
    1 point
  3. Really dude, you come to a site for an open source project. That you could easily verify if it is malicious yourself {Yay power of being open source} A project that is used by the majority of the MC modding community. Really dude... Also, that's some implacable logic 'Lets ask the site that I think is malicious if they are actively trying to be malicious' These posts are just funny, But the simple answer is no, we're not. Some of Adf.ly's ads *might* be {if you download and install there crap}, but that's a risk with any ad service. But you should be using a adblocker if you don't know how to only download things from site you trust. It's also why we provide multiple links for every file {direct and adflyed} Anyways, McAfee, and many other sites like that love to lower the ranking of sites, and then charge the web admins to remove those strikes. Not to mention McAfee in itself is a fucking joke, it's sites/software are sloppily written, with exploits and security holes up the wazoo. None of there actual advisor software actually works, hell they can't even poll a file from our servers to verify themselves correctly. {They blame it on the fact that we support BOTH ipv4 and ipv6, which confuses there scripts that were written 8 years ago -.-} So what do I advise? Ditch McAfee get a real AV.
    1 point
×
×
  • Create New...

Important Information

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