please make a custom block or a custom mob turorial for 1.4.2. and if possible, the custom block can be put on a wall like a torch.
would help out a lot.
This isn't part of this tutorial but does anyone on here think that the could help me make my own custom EnumCreatureType file so that I can customize the spawn rates of my custom mobs?
The stairs tutorial doesn't work in 1.4, but I have fixed it for myself, my code looks like this (just extended BlockStairs)
package net.minecraft.src;
public class BlockNamehere extends BlockStairs
{
protected BlockNamehere(int par1, Block par2Block, int par3)
{
super(par1, par2Block, par3);
this.setLightOpacity(0);
}
}
Of course, this requires that you have a block that you can use for the par2Block, but I think most of the time that will work fine.
I haven't tested this a ton, so it may not work totally, but it seems to be working for now.
And I set the light opacity to zero, because I have no idea how Mojang gets the lighting to work correctly when it isn't transparent.
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\fam.zijlstra\Desktop\1.4.2 mcp\jars\.\crash-reports\crash-2012-11-01_09.35.01-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 68116021 --------
Generated 1-11-12 9:35
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
- Memory: 1002092704 bytes (955 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_stairs 1.4.2
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(Unknown Source)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:196)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:524)
at net.minecraft.src.mod_stairs.load(mod_stairs.java:12)
at net.minecraft.src.ModLoader.init(ModLoader.java:960)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:91)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:417)
at net.minecraft.client.Minecraft.run(Minecraft.java:737)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 7c466fe2 ----------
I'd like to see it, I've had plans to do something with a mob for quite a bit..
This is the code of the mob I created:
mod_ModNameHere
package net.minecraft.src;
import java.util.Map;
public class mod_Test extends BaseMod
{
public void load()
{
ModLoader.registerEntityID(EntityNameHere.class, "YourMobName", MobsID);
ModLoader.addSpawn("YourMobName", 5, 1, 1, EnumCreatureType.creature); //Where ".creature" can be changed
ModLoader.addLocalization("entity.YourMobName.name", "YourMobName");
EntityList.entityEggs.put(Integer.valueOf(MobsID), new EntityEggInfo(MobsID, HexColorForEggsMainPart, HexColorForEggsDots)); //This will create a egg with the ID 12(can be changed) with their hex color.
}
public void addRenderer(Map var1)
{
var1.put(EntityPigman.class, new RenderLiving(new ModelBiped(),.5f)); //This tells that the mob should use the living renderer and the biped model (The renderer and the model can be changed). If you dont include it, your mob will be invisible.
}
public String getVersion()
{
return "1.4.2";
}
}
EntityNameHere
package net.minecraft.src;
public class EntityNameHere extends EntityMob
{
public EntityNameHere(World par1World)
{
super(par1World);
this.texture = "/yourpath/texture.png"; //specifies the texture
this.moveSpeed = .3f; // The "3" denotes the mobs speed
this.tasks.addTask(0, new EntityAISwimming(this));//The AI tasks starts below (these can be changed)
this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityMob.class, this.moveSpeed, false));
this.tasks.addTask(2, new EntityAIMoveTwardsRestriction(this, this.moveSpeed));
this.tasks.addTask(3, new EntityAIWander(this, this.moveSpeed));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityZombie.class, 16.0F, 0, true)); //This will make the mob to attack the zombies
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntitySkeleton.class, 16.0F, 0, true)); //This will make the mob to attack the skeletons
//AI Tasks ends Here
}
public int func_82193_c(Entity par1Entity) //This is the function ".attackStrength " with his name changed
{
return 20;
}
public int getMaxHealth() //The health the mob will have
{
return 20;
}
protected boolean isAIEnabled() //Enables the AI tasks described above
{
return true;
}
}
I wasnt able to make my mob hold a sword. I used the same code used by ZombiePigman:
protected void func_82164_bB()
{
this.func_70062_b(0, new ItemStack(Item.swordGold));
}
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I get a 404 when trying to download the Java thing (not actual Java, the Java thing that lets you mod Minecraft).
You'll have to be more specific than that, what item that you need to mod minecraft could you specifically not retrieve: MCP Eclipse ModLoader (by Risugami) MinecraftForge (by MCForge Dev Team, Latest Recommended Build)
Hey TechGuy... would you happen to know how to make a functioning dimension and how to make a way there without DAPI? You can reply to me here if you don't want to spam your topic
Hey TechGuy... would you happen to know how to make a functioning dimension and how to make a way there without DAPI? You can reply to me here if you don't want to spam your topic
There is the start of a dimension tutorial with Forge on the third OP...
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
yay hope this will help me, mine dimension is absolut broken since 1.4 and im not able to fix it <.<
I replied to your post in Mod Development. There is also a bit more information in the dimension section too.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
How do i add an ore dictioanry recipe? Like if i wanted to craft a copper block out of ingotCopper that was registered in the ore dictionary.
I have no experience with the ore dictionary. There is a tutorial here explaining it though.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
would help out a lot.
You can just post it here (inside a spoiler better) and he will read it and post it.
Btw be carefull with the caps, a moderator would get angry because of that.
Most people know and I think Techguy knows as well, he just hasn't updated his tutorials.
I'd like to see it, I've had plans to do something with a mob for quite a bit..
Of course, this requires that you have a block that you can use for the par2Block, but I think most of the time that will work fine.
I haven't tested this a ton, so it may not work totally, but it seems to be working for now.
And I set the light opacity to zero, because I have no idea how Mojang gets the lighting to work correctly when it isn't transparent.
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
This error has been saved to C:\Users\fam.zijlstra\Desktop\1.4.2 mcp\jars\.\crash-reports\crash-2012-11-01_09.35.01-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 68116021 --------
Generated 1-11-12 9:35
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
- Memory: 1002092704 bytes (955 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_stairs 1.4.2
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(Unknown Source)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:196)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:524)
at net.minecraft.src.mod_stairs.load(mod_stairs.java:12)
at net.minecraft.src.ModLoader.init(ModLoader.java:960)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:91)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:417)
at net.minecraft.client.Minecraft.run(Minecraft.java:737)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 7c466fe2 ----------
trying to create some stairs.
This is the code of the mob I created:
mod_ModNameHere
EntityNameHere
I wasnt able to make my mob hold a sword. I used the same code used by ZombiePigman:
Someone can help me with this?
yep, had that one too.
Keep it up
Thanks
together they are powerful beyond imagination."
You'll have to be more specific than that, what item that you need to mod minecraft could you specifically not retrieve:
MCP
Eclipse
ModLoader (by Risugami)
MinecraftForge (by MCForge Dev Team, Latest Recommended Build)
There is the start of a dimension tutorial with Forge on the third OP...
together they are powerful beyond imagination."
Yes, though it only is the start of the tutorial. Do you think you could help me out?
I replied to your post in Mod Development. There is also a bit more information in the dimension section too.
together they are powerful beyond imagination."
I have no experience with the ore dictionary. There is a tutorial here explaining it though.
together they are powerful beyond imagination."