If you want to change base classes it's easy. The code IS in the EntitySheep. There's "getDropItem" and "dropFewItems".
The getFewItems is for shearing. I want this to drop when i kill it. I basically deleted (i commented out) the getDropItem, but the sheep still drops wool when i kill it. It is the base class I want to edit, unless there is a way to do this with modloader without editing base classes. I don't think there is though...
Edit: the dropFewItems also makes it drop wool when killed. Now I just need to find out how to make sheep drop my item only when killed and not when sheared.
There's a forge method for this. Unfortunately I don't know how it's called. Google it like "minecraft forge on death" or so.
This is on modloader... forge won't help at all.
I just need to now where the sheep drop code is because I have concluded it is NOT in the EntitySheep class
I am trying to make my sheep drop a custom item but when i add it the sheep doesn't drop it. I have tried a few things. I have even commented out the code that drops the wool and the sheep still drop wool. I don't know what i am doing wrong, or where the actual item drop code is.
I am making new armor in my mod, but I don't know how to make the armor textures when the player is wearing them. I have the files, but I don't know the code. I am using ModLoader.
The Mossy Stone Brick is a variation of the Stone Brick, Unlike Items (which use a damage value) it uses metadata to have have sub-versions of itself. Its value is 98:1 have a look around the forums for tutorials on using metadata in crafting recipes
right now the problem is not using metadata in recipes. the problem is that I am making a half slab out of mossy stone brick. The problem is that using mossy stone brick already creates regular stone brick slabs because of the metadata usage. I need to know how to override that atm.
I am creating a crafting recipe that uses mossy stone bricks. Unfortunately, while the mossy cobblestone is a whole block itself, the mossy stone brick is just the stone brick block with a damage value. this creates a problem because now when i use the mossy stone bricks, it creates a block already crafted with regular stone bricks. How would I fix this without editing any base files? And if I absolutely have to edit base files, then where and how would i edit them?
0
The getFewItems is for shearing. I want this to drop when i kill it. I basically deleted (i commented out) the getDropItem, but the sheep still drops wool when i kill it. It is the base class I want to edit, unless there is a way to do this with modloader without editing base classes. I don't think there is though...
Edit: the dropFewItems also makes it drop wool when killed. Now I just need to find out how to make sheep drop my item only when killed and not when sheared.
0
This is on modloader... forge won't help at all.
I just need to now where the sheep drop code is because I have concluded it is NOT in the EntitySheep class
0
0
0
0
1
0
0
I did that and it came with a bunch of errors...
0
0
The BlockSkull doesnt tell what texture the heads show. The ItemSkull class says the textures through an nbt tag. I do not want to use an nbt tag.
0
The mod class:
The GetImage class:
0
right now the problem is not using metadata in recipes. the problem is that I am making a half slab out of mossy stone brick. The problem is that using mossy stone brick already creates regular stone brick slabs because of the metadata usage. I need to know how to override that atm.
0
0