NVM redid the code, and it works again, checking to see if it spawned correctly.
Edit:Ok, I can find it with the startclient.bat, but not regular minecraft. Weird.
Edit2:Crap, still cannot see my mob. Gonna cleanup and decompile AGAIN, making sure the texture is in the minecraft.jar when I decompile. It should work soon.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
Are you sure you obfuscated the correct CLASS files correctly for the Minecraft Client?
EDIT:
Btw, don't double/triple/more post in a row. Just edit posts!
Yeah it located mod_Predator.java and EntityPredator.java, and converted them into .class files, which were the files I'm supposed to obfuscate anyway, right?
Edit: ALL RIGHT! They worked in the startclient.bat test, and I'm gonna test them in the actual minecraft.jar, the one in my appdata folder. I'll update you if they work and send you a link to the download if you want to see them in action. Be careful though, they have friends so even though they're weak alone, they'll be a force to be reckoned with in a group.
Edit2: I'm gonna try my mod in a fresh, clean minecraft.jar. I'll tell you if it works.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
Oh and by the way, I found my mob in the regular minecraft just by transferring a copy of the jar I decompiled to the appdata folder. Also, I RAR'd up my .class files and put that in the mods folder and it worked! I'll upload it to mediafire with the texture and post the link. It's just that they're a bit rarer than I'd like. Took me a while to find them, and even had one stop by to check out my treehouse, made mostly of dirt and wood planks. Naturally, I didn't bother him.
Edit:Here is the link to my mob.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
I set it 12, though I don't know the max spawn rate. At what number do they start becoming really common because I'd like them to be a little bit more common than wolves, though not much more.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
anyone know of a way i can make a mob dig?
or know of a tutorial that could teach me how to make it dig?
i have tried decompiling other peoples mods to guide me but unfortantly everyone has done it different and without understanding what each of the functions they created do it makes it very hard..
So yeah if you know of any or can guide me in anyway please PM or reply :smile.gif:
Well, that's 2.5 hearts, and they're pretty fast... Yeah 5 should be enough. Just surviving one predator on its own is hard, so in packs, attack power of 5 would be enough.
Unfortunately I am not skilled enough in learning how to do this. You could try copying the coding of the Player digging, but I have no idea if that would work in a mob. I hope someone out there can help you, though. Good luck.
Yeah i thought about doing that..
Downside is then its not really modloader compatible and also i think the digging\block removal wont be the harder part its the calculating the block and path to follow
By the way LegendTriforce, thanks for helping me. All I need now is some code for an aggressive, night spawning melee mob like the zombie for the alien, but it doesn't burn, like the creeper which is also immune to burning. I'll see if I can get the werewolf multistance code from Dr. Zhark, though he might not let me. If he gives me that piece of code, I'll give credit to him for the help.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
Ok, been busy with the starting code, just need a few bits of code to make it multistance( from Dr. Zhark's werewolf mob), and I should be good.
Here's what I have so far:
How do you make it so that the mob can hold a sword? This is my code (no errors with recompile) I just copied the pigzombie file and removed the anger level stuff, but it still doesn't work (meaning it doesn't hold anything):
How do you make it so that the mob can hold a sword? This is my code (no errors with recompile) I just copied the pigzombie file and removed the anger level stuff, but it still doesn't work (meaning it doesn't hold anything):
It pretty much doesn't work with anything except gold swords. I know they look silly, but that's how it is. Tried getting my Predator to hold an Iron Sword but it didn't take. Plus it has to extend EntityMob. Not to mention it is swordIron, not swordSteel.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
This piece of code, which should be in mod_Alien, controls spawning behaviour. In EnumCreatureType, put "monster" to make the mob spawn in darkness, "creature" to spawn in light, and "waterCreature" to spawn in water (although I have trouble getting this last one to work).
Ok, here's my base code, although I want it to be aggressive like the zombie. I'll be able to get it to spawn in darkness with the code you suggested, with the mod_Alien.java file. Please keep in touch.
Edit: Nvm, I just need to make it use a biped model with a stretched head so it looks somewhat realistic. Maybe I'll make a copy of the ModelBiped file and stretch the head, then use ModelZombie code to reference it. If not I'll create in Sketchup.
Edit2: All right! Made some code in notepad++ copied modelbiped and made it different, saved it as modelbiped2 and made my alien model reference it. Then went further and even made a model for my Predator.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
I'm having some trouble the first step when decompiling. I'm too lazy to type it, so I took a picture:
Can anyone help?
That's normal if you have ModLoader (which you should have) in the .jar that you're decompiling! You can also just right-click and click "select all" then press "enter" to copy everything in cmd!
LegendTriforce, how do I make my mob drop a custom item I made? Here's the code for the mod_ file for the item I made:
package net.minecraft.src;
public class mod_AcidItem extends BaseMod
{
public mod_AcidItem()
{
ModLoader.AddName(acidItem, "acid");
}
public static final Item acidItem;
static
{
acidItem = (new ItemAcid(4001)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/item/alienacid.png")).setItemName("acidAlien");
}
public String Version()
{
return "1";
}
}
How do I tell which item name is the correct one to put in the mob's drop code? I keep getting Cannot find symbol errors when I recompile.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Edit:Ok, I can find it with the startclient.bat, but not regular minecraft. Weird.
Edit2:Crap, still cannot see my mob. Gonna cleanup and decompile AGAIN, making sure the texture is in the minecraft.jar when I decompile. It should work soon.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Yeah it located mod_Predator.java and EntityPredator.java, and converted them into .class files, which were the files I'm supposed to obfuscate anyway, right?
Edit: ALL RIGHT! They worked in the startclient.bat test, and I'm gonna test them in the actual minecraft.jar, the one in my appdata folder. I'll update you if they work and send you a link to the download if you want to see them in action. Be careful though, they have friends so even though they're weak alone, they'll be a force to be reckoned with in a group.
Edit2: I'm gonna try my mod in a fresh, clean minecraft.jar. I'll tell you if it works.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Edit:Here is the link to my mob.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
However, Modloader.java and SpawnListEntry.java are the only places where that is used.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
or know of a tutorial that could teach me how to make it dig?
i have tried decompiling other peoples mods to guide me but unfortantly everyone has done it different and without understanding what each of the functions they created do it makes it very hard..
So yeah if you know of any or can guide me in anyway please PM or reply :smile.gif:
Yeah i thought about doing that..
Downside is then its not really modloader compatible and also i think the digging\block removal wont be the harder part its the calculating the block and path to follow
By the way LegendTriforce, thanks for helping me. All I need now is some code for an aggressive, night spawning melee mob like the zombie for the alien, but it doesn't burn, like the creeper which is also immune to burning. I'll see if I can get the werewolf multistance code from Dr. Zhark, though he might not let me. If he gives me that piece of code, I'll give credit to him for the help.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Here's what I have so far:
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
It pretty much doesn't work with anything except gold swords. I know they look silly, but that's how it is. Tried getting my Predator to hold an Iron Sword but it didn't take. Plus it has to extend EntityMob. Not to mention it is swordIron, not swordSteel.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
How do you make it spawn at night or dark places though? That's key for my mob.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
If you make it extend EntityZombie it automatically will (maybe even EntityMob)!
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
Ok, here's my base code, although I want it to be aggressive like the zombie. I'll be able to get it to spawn in darkness with the code you suggested, with the mod_Alien.java file. Please keep in touch.
Edit: Nvm, I just need to make it use a biped model with a stretched head so it looks somewhat realistic. Maybe I'll make a copy of the ModelBiped file and stretch the head, then use ModelZombie code to reference it. If not I'll create in Sketchup.
Edit2: All right! Made some code in notepad++ copied modelbiped and made it different, saved it as modelbiped2 and made my alien model reference it. Then went further and even made a model for my Predator.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...
Can anyone help?
That's normal if you have ModLoader (which you should have) in the .jar that you're decompiling! You can also just right-click and click "select all" then press "enter" to copy everything in cmd!
Also, check out my YouTube channel: www.YouTube.com/StrongJoshua
How do I tell which item name is the correct one to put in the mob's drop code? I keep getting Cannot find symbol errors when I recompile.
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
https://minecraftnoobtest.com/test.php
Don't click this link, HE is haunting it...