Jump to content

fhbgds14531

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Developing: AngelicDevices

fhbgds14531's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I have an item that smelts blocks in world on right click, but the changes to the blocks don't get sent to other clients. If, for instance, I right click an iron ore block, it turns into an iron ingot, but other players still see an iron ore block (but the ingot is there) until they reload the chunks. Here is the method that changes the block. It is called when !world.isRemote Any help is greatly appreciated!
  2. Whenever I try to load minecraft, it will never load a certain one. I get this every time: [17:08:03] [Client thread/WARN] [FML/]: Zip file nuscoe-1.7.2-1.2.1.jar failed to read properly, it will be ignored java.lang.NullPointerException at cpw.mods.fml.common.MetadataCollection.parseModMetadataList(MetadataCollection.java:88) ~[MetadataCollection.class:?] at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:71) ~[MetadataCollection.class:?] at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:53) [JarDiscoverer.class:?] at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?] at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?] at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:123) [ModDiscoverer.class:?] at cpw.mods.fml.common.Loader.identifyMods(Loader.java:341) [Loader.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:463) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:495) [azd.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:850) [azd.class:?] at net.minecraft.client.main.Main.main(SourceFile:103) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Any help would be awesome! EDIT: It was a problem with the mcmod.info file
  3. Everything is on my github: https://github.com/fhbgds14531/MerryChristmas The mob is new to 1.6.2 My assets location worked in my other mod, it's not that. All the other textures work.
  4. I'm assuming this is what you meant? Render: package merrychristmas.mod.fhbgds.render; import merrychristmas.mod.fhbgds.client.ModelKevin; import merrychristmas.mod.fhbgds.lib.Reference; 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.entity.EntityLivingBase; import net.minecraft.util.ResourceLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderKevin extends RenderLiving { private static final ResourceLocation textureLoc = new ResourceLocation(Reference.MOD_ID, "textures/entity/kevin.png"); public RenderKevin(ModelBase model, float par2){ super(model, par2); } protected ResourceLocation getTextureLoc(EntityLiving entity){ return textureLoc; } @Override protected ResourceLocation func_110775_a(Entity entity){ return this.getTextureLoc((EntityLiving)entity); } } texture is located at "assets.merrychristmas.textures.entity" Reference.MOD_ID == "merrychristmas" Still nothing.
  5. My custom mob is refusing to load the texture no matter what I try. It's supposed to look like three of the block in my hand stacked. Screenshot: Mob class: package merrychristmas.mod.fhbgds.entity; import java.util.Random; import merrychristmas.mod.fhbgds.lib.ContentLoader; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.EntityCreature; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityOwnable; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIPanic; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityGolem; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.monster.EntitySnowman; import net.minecraft.entity.passive.EntityTameable; import net.minecraft.entity.passive.IAnimals; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class EntityKevin extends EntityMob{ Random random = new Random(); int xPos; int yPos; int zPos; public EntityKevin(World world) { super(world); this.setEntityHealth(getMaxHealth()); this.setSize(0.9F, 3.0F); this.tasks.addTask(2, new EntityAIWander(this, 0.2F)); this.tasks.addTask(2, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); this.tasks.addTask(3, new EntityAILookIdle(this)); this.setCustomNameTag("Kevin"); this.setAlwaysRenderNameTag(true); } @Override public void entityInit(){ super.entityInit(); } @Override public void collideWithEntity(Entity entity){ super.collideWithEntity(entity); } public float getMaxHealth(){ return 20.0f; } @Override public void onEntityUpdate(){ super.onEntityUpdate(); } @Override public boolean isAIEnabled(){ return true; } public void setPos(int x, int y, int z){ this.posX = (double) x + 0.5; this.posY = (double) y - 1.95; this.posZ = (double) z + 0.5; this.rotationPitch = 0; this.rotationYaw = 0; this.boundingBox.setBounds(x, y, z, x + 1, y + 3, z + 1); } @Override protected void fall(float par1) { super.fall(par1); } @Override protected String getLivingSound(){ return "none"; } @Override protected String getHurtSound(){ return "none"; } @Override protected String getDeathSound(){ return "none"; } @Override protected boolean canDespawn(){ return false; } @Override protected int getDropItemId(){ return ContentLoader.dethornedCactus.blockID; } @Override protected void dropFewItems(boolean par1, int par2){ int drop = random.nextInt(4); this.dropItem(this.getDropItemId(), drop); } @Override public String getEntityName(){ return "Kevin"; } } Render Class: package merrychristmas.mod.fhbgds.render; import merrychristmas.mod.fhbgds.client.ModelKevin; import merrychristmas.mod.fhbgds.lib.Reference; 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.entity.EntityLivingBase; import net.minecraft.util.ResourceLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderKevin extends RenderLiving { private static final ResourceLocation field_110833_a = new ResourceLocation(Reference.MOD_ID, "textures/entity/kevin.png"); public RenderKevin(ModelBase model, float par2){ super(model, par2); } protected ResourceLocation func_110832_a(EntityLiving entity){ return field_110833_a; } protected ResourceLocation func_110775_a(Entity entity){ return this.func_110832_a((EntityLiving)entity); } } Model Class: package merrychristmas.mod.fhbgds.client; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelKevin extends ModelBase{ //fields //ModelRenderer body; ModelRenderer Body1; ModelRenderer Body2; ModelRenderer Body3; public ModelKevin() { // textureWidth = 128; // textureHeight = 64; // // body = new ModelRenderer(this, 0, 0); // body.addBox(-7F, -12F, -7F, 14, 48, 14); // body.setRotationPoint(0F, -12F, 0F); // body.setTextureSize(textureWidth, textureHeight); // body.mirror = true; // this.setRotation(body, 0F, 0F, 0F); textureWidth = 64; textureHeight = 32; Body1 = new ModelRenderer(this, 0, 0); Body1.addBox(-7F, 0F, -7F, 14, 16, 14); Body1.setRotationPoint(0F, 8F, 0F); Body1.setTextureSize(textureWidth, textureHeight); Body1.mirror = true; setRotation(Body1, 0F, 45F, 0F); Body2 = new ModelRenderer(this, 0, 0); Body2.addBox(-7F, -16F, -7F, 14, 16, 14); Body2.setRotationPoint(0F, 8F, 0F); Body2.setTextureSize(textureWidth, textureHeight); Body2.mirror = true; setRotation(Body2, 0F, 0F, 0F); Body3 = new ModelRenderer(this, 0, 0); Body3.addBox(-7F, -16F, -7F, 14, 16, 14); Body3.setRotationPoint(0F, -8F, 0F); Body3.setTextureSize(textureWidth, textureHeight); Body3.mirror = true; setRotation(Body3, 0F, 0F, 0F); } @Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); Body1.render(f5); Body2.render(f5); Body3.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } @Override public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); } } Client Proxy: package merrychristmas.mod.fhbgds.client; import merrychristmas.mod.fhbgds.common.ProxyCommon; import merrychristmas.mod.fhbgds.entity.EntityKevin; import merrychristmas.mod.fhbgds.render.RenderKevin; import cpw.mods.fml.client.registry.RenderingRegistry; public class ProxyClient extends ProxyCommon { @Override public void addRenderer(){ RenderingRegistry.registerEntityRenderingHandler(EntityKevin.class, new RenderKevin(new ModelKevin(), 0.5F)); } } Let me know if you need more info, any help is greatly appreciated!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.