liachmodded / UHC-Reloaded

A Minecraft mod with the purpose to make UltraHardcore-Mode Forge-compatible in 1.9 and Sponge-compatible

Home Page:https://ore.spongepowered.org/liach/UltraHardcore-Reloaded

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find a proper way to drop gold ingot from ghast

3TUSK opened this issue · comments

commented

WIP. I need to verify the validity of my code.

Actually ASM is dangerous. This will break compatibility. We just need a subclass to

@Override
commented

Override?
I have no idea of its usage... I mean I don't know how to use override to replace that.

This allows a method to replace the method in its super class. I suggest you to have a look at https://github.com/3TUSK/UHC-Reload/blob/master/src/main/java/mod/uhcreloaded/commands/CommandUhcHelp.java
That uses @Override to prevent the methods' output from being replaced by the method in original CommandBase.java file.

commented

The problem is, after override, where should I register it, or what should I do, to apply the new, overrided method so that the original one can be replaced? That is what I cannot figure out currently.

Or can you remove the brewing recipe of the tear and add the recipe to get gold from tears?

commented

Sounds okay, but not exactly catch the rule of UHC.
I will think more about it.

Um.. I want to improve compatibility for mods though.