- and to finish it up replace the hitEntity method in the item sword class with this
- just put this in the BiomeGenEnd
That's why you have the API, so you don't edit base classes.
As for potion effects, they're not that hard at all, problem is Minecraft only offers you 32 ids =(
you know how to add potions could you help me and editing the hit entity method is necessary for the specific encchantment i was using
Hi, I've been trying to get into Minecraft modding. I know how to code Java, I've done programming work before, but I don't know how to actually start modding; when I downloaded Minecraft, it just gave me Minecraft.exe, it didn't give me any files of code with it as far as I can tell. Where can I find Minecraft's code, and can I open and access it with Eclipse?
Finally got it. This is the code:
But the furnace fuel that corresponded was this:
Why does 145 translate to 401?
Edit: Figured it out. Item IDs are at least 256. 401 - 256 = 145.
Okay so this code
Gem.iconIndex = ModLoader.addOverride("/gui/items.png", "/GreenGem.png");is registering the image correct? So now i just drop the image into minecraft.jar.Yes, that registers the image (I'm like 90% sure). You should paste the image into the src thing on the left, if you're using Eclipse, as such:
As you see, I have folders with my images in them, so for me, the sword I made is in a code like:
ModLoader.addOverride("/gui/items.png", "/bleachmod/zanpakuto.png");Hope that helped.
Bleach Mod
Haha, very funny : P. I'll have you know it's working just fine.
Bleach Mod