Posted March 25, 20187 yr When the ring was removed, the methods "is<god>Ring(stack)" for each ring obviously stopped returning true for an Aesir Ring ItemStack. How can I change that back? With the Odin ring I'm fine, and I haven't tried the Loki ring yet, but the Terra Shatterer code relies on "getThorRing(player)" which relies on "isThorRing(stack)". Do I need to learn how to use ASM, and use that to change the Botania files? Or is there another way? Edited March 25, 20187 yr by yotmam12
March 25, 20187 yr Author He can't without re-adding the item altogether, and you know how stubborn Vazkii can be...
March 25, 20187 yr I'm not familiar that mod's source code. But it depends on how the value of that method is used. This ring is supposed to provide regeneration, right? So you can just replicate the effect by making a tick event handler and checking if the player is wearing the ring and then regenerate. It also gives some immunity effects, right? Then maybe you can figure out which events could be handled to create a similar effect. Basically, just look at wherever the method is called and then see if there is an event which could be used to provide an equivalent effect. You might not be able to get it exactly like the original, but you could probably get pretty close. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
March 25, 20187 yr Author That's the Odin ring, you're right that it was very easy to recreate. The hard part is the Thor ring, which increases the range of the Terra Shatterer- the increase takes place in ItemTerraPick::breakOtherBlock, not in the code for the Thor Ring class. You can look at the code on github, Botania is open source.
November 18, 20186 yr You could make a new item that extends the terra shatterer and override it in the registry About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
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.