Rohzek Posted May 20, 2018 Posted May 20, 2018 (edited) I know this isn't Forge related, but I figured I'd ask anyway, in case someone knows: I'm attempting to add limited Thaumcraft support to my mod, in the form of adding aspects to items, and am stuck on a small snag; Is there a way to overwrite/remove aspects from items that already have them, using the Thaumcraft API? Specifically my items/ores, which are tagged with (Thaumcraft supported) ore dictionary entries, are grabbed by Thaumcraft's automatic adding of ore dictionary items and have aspects applied to them, that I wish to tweak (small things such as adding 'Ignis' to nether ores) or change completely (in some cases, to better fit the item's purpose). Adding aspects to items a la the ThaumcraftApi#registerObjectTag (and #registerComplexObjectTag) method(s) works great for the unaffected items, but does not seem to override or even concat the aspects on the items that are already tagged, regardless of when it's called (Pre-Init, Init, or Post-Init). A quick search through the API (both on Github, and in Eclipse) hasn't really turned up anything obvious. Am I missing something/is there an easy way around this? Edited May 20, 2018 by Rohzek Quote Developing the Spiral Power Mod . こんにちは!お元気ですか?
Rohzek Posted May 20, 2018 Author Posted May 20, 2018 (edited) On 5/20/2018 at 10:07 AM, loordgek said: https://github.com/Azanor/thaumcraft-api Expand Yes, I know that. And, as I said in the OP On 5/20/2018 at 2:48 AM, Rohzek said: Adding aspects to items a la the ThaumcraftApi#registerObjectTag (and #registerComplexObjectTag) method(s) works great for the unaffected items Expand I'm using https://github.com/Azanor/thaumcraft-api/blob/master/ThaumcraftApi.java#L291 to add aspects to the other ores. Kind of implies I know of the API already. Infact I even said: On 5/20/2018 at 2:48 AM, Rohzek said: A quick search through the API (both on Github, and in Eclipse) hasn't really turned up anything obvious. Am I missing something/is there an easy way around this? Expand What I'm not finding in it, is a method to remove/change/overwrite an item that's getting stuck with aspects through other sour- Just re-read the OP, I've already said all of this. Edited May 20, 2018 by Rohzek Quote Developing the Spiral Power Mod . こんにちは!お元気ですか?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.