1. IGN: Aphex124
2. Age: 16
3. How Long Have You Been Active In Our Community: About a year, I think
4. How Long Have You Been Playing On The Prison Server: About a year, I think
5. How Often Do You Play: Everyday, About 5-7 hours
6. Why Should We Pick You: I enforce the rules and report to the the forums, and I do it in a nice manner
7. Other Info About You: Sophomore in High School, play lots of games, made 6 videos on YouTube about TechGe3ks and hoping to grow on YouTube
8. What timezone you live in: Pacific Standard (California)
9.What rank are you currently: A+ $++
beastlytrio.java . Note: Only contains mob related code.
public static int startEntityId = 300; public static int getUniqueId() { do { startEntityId++; } while(EntityList.getStringFromID(startEntityId) != null); return startEntityId++; } public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor) { int id = getUniqueId(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor)); }
I need help fixing my code for a mob I want to add, I have all the code but it wont render a texture. I am experienced with Minecraft Java code but I just can't figure this out! ***HELP!***
Message me if you want to do the editing for this page or something (make it look interesting) and you will be the designer of the mods and these pages... ***Might even get a little pay***
_____________________________________________________________________________________Unzip folder then drag in "mods folder". MUST have MCForge.
yes really i installed your mod and tryed to use tools, the mined only 1 block at a time, just like regular minecraft tools.
is this required some special installation or something exept of dragging unzipped file to mods?
I told you the instructions to install the mod at the bottom! Use common sense!
0
2. Age: 16
3. How Long Have You Been Active In Our Community: About a year, I think
4. How Long Have You Been Playing On The Prison Server: About a year, I think
5. How Often Do You Play: Everyday, About 5-7 hours
6. Why Should We Pick You: I enforce the rules and report to the the forums, and I do it in a nice manner
7. Other Info About You: Sophomore in High School, play lots of games, made 6 videos on YouTube about TechGe3ks and hoping to grow on YouTube
8. What timezone you live in: Pacific Standard (California)
9.What rank are you currently: A+ $++
0
1. IGN: Aphex124
2. Age: 16
3. How Long Have You Been Active In Our Community: A year or more
4. How Long Have You Been Playing On The Prison Server: A year or more
5. How Often Do You Play: Everyday, about 8 hrs. a day
6. Why Should We Pick You: I've been in this community for a while now and know all the rules, and . I think I would be an outstanding guard.
7. Other Info About You: JavaScripter, Like to have fun, etc.
8. What timezone you live in: Pacific Standard Time Zone
9. What rank are you currently: J $++
--Thank You for your time
0
0
0
0
0
If not than WHAT is my answer?
0
0
0
beastlytrio.java . Note: Only contains mob related code.
public static int startEntityId = 300;
public static int getUniqueId() {
do {
startEntityId++;
}
while(EntityList.getStringFromID(startEntityId) != null);
return startEntityId++;
}
public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor) {
int id = getUniqueId();
EntityList.IDtoClassMapping.put(id, entity);
EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
}
EntityRegistry.registerGlobalEntityID(EntityBlazeKing.class, "Blaze King", 1);
EntityRegistry.addSpawn(EntityBlazeKing.class, 20, 1, 50, EnumCreatureType.monster);
EntityRegistry.findGlobalUniqueEntityId();
registerEntityEgg(EntityBlazeKing.class, 0xfffffff, 0x0033FF);
ClientProxy.java
package aphex124.beastlytrio.common;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.client.registry.RenderingRegistry;
import aphex124.beastlytrio.mob.entity.EntityBlazeKing;
import aphex124.beastlytrio.mob.model.BlazeKing;
import aphex124.beastlytrio.mob.render.BlazeKingRender;
public class ClientProxy extends CommonProxy{
public void registerRenderInformation() {
RenderingRegistry.registerEntityRenderingHandler(EntityBlazeKing.class, new BlazeKingRender(new BlazeKing(), 0.3F));
}
}
CommonProxy.java
package aphex124.beastlytrio.common;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
public class CommonProxy{
public void registerRenderInformation() {
}
}
EntityBlazeKing.java
package aphex124.beastlytrio.mob.entity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import aphex124.beastlytrio.common.beastlytrio;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
public class EntityBlazeKing extends EntityMob{
public EntityBlazeKing(World par1World) {
super(par1World);
this.setHealth(80F);
}
@SideOnly(Side.CLIENT)
public void handHealthUpdate(byte par1) {
if(par1 == 16) {
this.worldObj.playSound(this.posX + 0.5D, this.posZ + 0.5D, newPosX, "mob.zombie.remedy", 1.0F + this.rand.nextFloat(), this.rand.nextFloat() *0.7F + 0.3F, false);
} else
super.handleHealthUpdate(par1);
}
public void applyEntityAttributes() {
super.applyEntityAttributes();
//MaxHealth
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(60.0D);
//FollowRange
this.getEntityAttribute(SharedMonsterAttributes.followRange).setAttribute(32.0D);
//KnockbackResistance
this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setAttribute(0.75D);
//MovementSpeed
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(1.0D);
//AttackDamage
this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setAttribute(24.0D);
}
public int getAttackStrength(Entity par1Entity) {
return 10;
}
public boolean getCanSpawnHere() {
return this.worldObj.difficultySetting >1 && this.isValidLightLevel() && super.getCanSpawnHere();
}
protected String getLivingSound() {
return "mob.blaze.idle";
}
protected String getDeathSound() {
return "mob.blaze.death";
}
protected String getHurtSound() {
return "mob.blaze.hurt";
}
public void onLivingUpdate()
{
if (this.worldObj.isDaytime() && !this.worldObj.isRemote && !this.isChild())
{
float f = this.getBrightness(1.0F);
if (f > 0.5F && this.rand.nextFloat() * 30.0F < (f - 0.4F) * 2.0F && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))
{
boolean flag = true;
ItemStack itemstack = this.getCurrentItemOrArmor(4);
if (itemstack != null)
{
if (itemstack.isItemStackDamageable())
{
itemstack.setItemDamage(itemstack.getItemDamageForDisplay() + this.rand.nextInt(2));
if (itemstack.getItemDamageForDisplay() >= itemstack.getMaxDamage())
{
this.renderBrokenItemStack(itemstack);
this.setCurrentItemOrArmor(4, (ItemStack)null);
}
}
flag = false;
}
{
}
}
}
super.onLivingUpdate();
}
public EnumCreatureAttribute getCreatureAttribute()
{
return EnumCreatureAttribute.UNDEFINED;
}
protected void dropRareDrop(int par1)
{
switch (this.rand.nextInt(3))
{
case 0:
this.dropItem(Item.ingotIron.itemID, 1);
break;
case 1:
this.dropItem(beastlytrio.BlazeMaterial.itemID, 1);
break;
case 2:
this.dropItem(Item.blazeRod.itemID, 2);
}
}
protected void addRandomArmor()
{
super.addRandomArmor();
if (this.rand.nextFloat() < (this.worldObj.difficultySetting == 3 ? 0.05F : 0.01F))
{
int i = this.rand.nextInt(3);
if (i == 0)
{
this.setCurrentItemOrArmor(0, new ItemStack(Item.swordIron));
}
else
{
this.setCurrentItemOrArmor(0, new ItemStack(Item.swordStone));
}
}
}
}
BlazeKing.java *[Model]*
// Date: 12/7/2013 10:54:03 PM
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package aphex124.beastlytrio.mob.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class BlazeKing extends ModelBase
{
//fields
ModelRenderer head;
ModelRenderer body;
ModelRenderer rightarm;
ModelRenderer leftarm;
ModelRenderer rightleg;
ModelRenderer leftleg;
public BlazeKing()
{
textureWidth = 64;
textureHeight = 64;
head = new ModelRenderer(this, 0, 0);
head.addBox(-4F, -8F, -4F, 8, 8, 8);
head.setRotationPoint(0F, 0F, 0F);
head.setTextureSize(64, 64);
head.mirror = true;
setRotation(head, 0F, 0F, 0F);
body = new ModelRenderer(this, 16, 16);
body.addBox(-4F, 0F, -2F, 8, 12, 4);
body.setRotationPoint(0F, 0F, 0F);
body.setTextureSize(64, 64);
body.mirror = true;
setRotation(body, 0F, 0F, 0F);
rightarm = new ModelRenderer(this, 40, 16);
rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
rightarm.setRotationPoint(-5F, 2F, 0F);
rightarm.setTextureSize(64, 64);
rightarm.mirror = true;
setRotation(rightarm, 0F, 0F, 0F);
leftarm = new ModelRenderer(this, 40, 16);
leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
leftarm.setRotationPoint(5F, 2F, 0F);
leftarm.setTextureSize(64, 64);
leftarm.mirror = true;
setRotation(leftarm, 0F, 0F, 0F);
rightleg = new ModelRenderer(this, 0, 16);
rightleg.addBox(-2F, 0F, -2F, 4, 12, 4);
rightleg.setRotationPoint(-2F, 12F, 0F);
rightleg.setTextureSize(64, 64);
rightleg.mirror = true;
setRotation(rightleg, 0F, 0F, 0F);
leftleg = new ModelRenderer(this, 0, 16);
leftleg.addBox(-2F, 0F, -2F, 4, 12, 4);
leftleg.setRotationPoint(2F, 12F, 0F);
leftleg.setTextureSize(64, 64);
leftleg.mirror = true;
setRotation(leftleg, 0F, 0F, 0F);
}
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
head.render(par7);
body.render(par7);
rightarm.render(par7);
leftarm.render(par7);
rightleg.render(par7);
leftleg.render(par7);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
{
}
}
BlazeKingRender.java
package aphex124.beastlytrio.mob.render;
import aphex124.beastlytrio.mob.entity.EntityBlazeKing;
import aphex124.beastlytrio.mob.model.BlazeKing;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.ResourceLocation;
public class BlazeKingRender extends RenderLiving{
private static final ResourceLocation field_110837_a = new ResourceLocation("beastlytrio:textures/mobs/blazeking");
protected BlazeKing model;
public BlazeKingRender(ModelBase par1ModelBase, float par2) {
super(par1ModelBase, par2);
model = ((BlazeKing)mainModel);
}
public void BlazeKingRender(EntityBlazeKing entity, double par2, double par4, double par6, float par8, float par9) {
super.doRenderLiving(entity, par2, par4, par6, par8, par9);
}
public void doRenderLiving(EntityLiving par1Entity, double par2, double par4, double par6, float par8, float par9) {
BlazeKingRender((EntityBlazeKing)par1Entity, par2, par4, par6, par8, par9);
}
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
BlazeKingRender((EntityBlazeKing)par1Entity, par2, par4, par6, par8, par9);
}
@Override
protected ResourceLocation getEntityTexture(Entity entity) {
return field_110837_a;
}
}
0
Personal message me if you want to help.
0
_____________________________________________________________________________________
0
0
0
Thank you for common sense =)
I told you the instructions to install the mod at the bottom! Use common sense!