If your using forge you can do this simply with events. First your going to need an event handler class lets call it tutEventHandler. Add this to your load/init method
To fix the error make a class called tutEventHandler. Now we need to tell forge to subscribe to our event. We can do so by adding this method inside our EventHandler class
now every time an entity dies we have full control over what happens next. Now we need to check if the entity is an instance of the entity u want to change the drop of. We can do so with this code
I believe forge also modifies that class so thats probably why your mod isn't working. Your mod modifies base files so making it a modloader mod wont really change anything. The only thing i can think of is to install the forge source in mcp and then edit the file there. Pm me if you need additional help.
Thank you for the response, but I seem to have explained my issue incorrectly. The mobs do in fact have the armor programmed in, and correctly work as if they are equipped. The issue, however, is that none of the armor or weapons are rendered. All the player sees is the bandit model and skin, but as if with nothing equipped.
I'm currently working on a mod to make custom minecarts (handcars, wood minecarts, etc but I'm running into trouble getting the entity to accept custom texture. For the first part of my mod I'm just doing a simple wood cart with modified stats and texture, the new cart just extends Minecraft's cart entity with a few modifications but there seems to be no easily accessible method to change the texture.
Can someone point me in the right direction on how to change the texture?
I think your gonna need a render file. Just copy the normal minecarts render file then change a few things. Are you using forge or modloader?
0
This is actually a very good idea, looking into it...
0
To fix the error make a class called tutEventHandler. Now we need to tell forge to subscribe to our event. We can do so by adding this method inside our EventHandler class now every time an entity dies we have full control over what happens next. Now we need to check if the entity is an instance of the entity u want to change the drop of. We can do so with this code now we simply add a drop in the if statement your whole method should now look like this
1
0
0
0
1
0
The item class that you want to teleport you.
0
1
0
0
Hey oHaiiChun(Creater of portal gun mod) just uploaded a cool video that explains this.
1
and then just do if statements like this
You can use this to get the player variable
The whole file should then look like this
1
You may need a render file.
0
I think your gonna need a render file. Just copy the normal minecarts render file then change a few things. Are you using forge or modloader?