Jump to content

Ninoviski

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Ninoviski

  1. At the ModelChicken. You will see at the method Render that it has a paramter about it beeing a child
  2. If your render means Model, it is about the EntityModel, you can see the model from the villager or chicken, it will change if it is an child See ya
  3. I dont see any stuff at RenderSabreCat, and at ModelSabreCat (we dont need to say at EntitySabreCat also...) So, what is the problem, what changes by adding at the setRotationAngles? What i think: I think that somewhere at this : this.Head.rotateAngleX = par5 / (180F / (float)Math.PI); OR Animation of EntityLiving stuff, maybe render, dont know... But where, i think that the rotate angles just tell the how much it is going to turn, not from where to where, i really dont know... In my opinion, modeling is pretty hard
  4. So, i will follow the main idea of the creator of the mod, and will use these codes Item Entity
  5. http://schwarzeszeux.tumblr.com/post/14176343101/minecraft-modeling-animation-part-2-of-x
  6. Greate fucking news, All the problem is that when i called the Entity at my Item, it set by default the weapondamage, that is 4 (too high and diferent). Now, i changed it for what i want 1F Before public int WeaponDamage . . . if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntitySpear(par2World, par3EntityPlayer, WeaponDamage)); } Now if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntitySpear(par2World, par3EntityPlayer, 1F)); } The problem is that i didnt know a lot of Java (and still dont hehe) stuff and i called the wrong param... HAHAHAHAHA i am so freaking happy it would be so good if this ended here ha, but no, the sucker makes an horizontal loop for no reason, i will take a loot at the onupdate and roation stuff, if you do know what it is about, please answer this shit. See ya, Thanks ObsequiousNewt SUCH A SIMPLE PROBLEM !!
  7. Yeaaah, that was the one you sent me, so 5 min writing an useless text
  8. There is a problem, my intention is making it a default vel, a defualt range, no by the amount of time i press the right button. The code there is right what you said, the strenght, and thats what i want too, but it changes, you can see, it says if (f == 1.0F) { entityarrow.setIsCritical(true); } Thats like the strenght that is created by the time we pull the Bow, we can see that here /** * called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount */ public void onPlayerStoppedUsing... Now, we can see that when it creates the ItemArrow: EntityArrow entityarrow = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F); That the strenght is there, so, if it is there when we refer to the Arrow, it must be an arrow par talking about it, right? Now, i will try to see in wich constructor is that param, and then change it (i think it might be that one you sent me that other day). Just to make what i said "stronger", when i create my entity ingame, it has all the time the same strenght, so that means the my "f" dont changes, so we have a "f" in my Entity Correct me if i am worng Sorry about that email, i thought it was a MP See ya
  9. There was something about ItemStack, but not with yoffset param.. The third line if(!(movingobjectposition.entityHit instanceof EntityEnderman)){ this.setDead(); this.Stack.setItemDamage(this.Stack.getItemDamage()-whatever); this.entityDropItem(this.Stack,yOffset); } I will think a little bit more, See ya
  10. When you mean vel, you mean changing the Item or the Entity? (Item, right?)
  11. So, it is just like i want, but there is one problem, its has no inertia, when i goes to, i dont know, 5 blocks far away, it falls
  12. Hello boys and girls, i am in troubble at my Model, from my awesome SabreCat https://www.dropbox.com/s/b6mbucalbbu6wfa/SabreCat.png So, as you can see, at the image, it has a 45° head, but at my Model Animation it gets buggy: The head turns too much and get at the same level as the body. My default rotation code: Head.addBox(0F, 0F, 0F, 6, 8, 7); Head.setRotationPoint(0F, 10F, -5F); ****setRotation(Head, 0.7853982F, 0F, 0F);*** My rotationAngles this.Head.rotateAngleX = par5 / (180F / (float)Math.PI); this.Head.rotateAngleY = par4 / (180F / (float)Math.PI);
  13. ---- Minecraft Crash Report ---- // Shall we play a game? Time: 14/06/13 15:28 Description: Ticking entity java.lang.NullPointerException at Ice_Age.EntitySpear.onUpdate(EntitySpear.java:370) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2342) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717) at net.minecraft.world.World.updateEntity(World.java:2304) at net.minecraft.world.World.updateEntities(World.java:2150) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at Ice_Age.EntitySpear.onUpdate(EntitySpear.java:370) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2342) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:717) at net.minecraft.world.World.updateEntity(World.java:2304) -- Entity being ticked -- Details: Entity Type: IceAge.Spear (Ice_Age.EntitySpear) Entity ID: 277 Entity Name: entity.IceAge.Spear.name Entity's Exact location: 624,50, 65,52, 511,64 Entity's Block location: World: (624,65,511), Chunk: (at 0,4,15 in 39,31; contains blocks 624,0,496 to 639,255,511), Region: (1,0; contains chunks 32,0 to 63,31, blocks 512,0,0 to 1023,255,511) Entity's Momentum: -4,70, -0,35, -3,62 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:2150) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:546) -- Affected level -- Details: Level name: New World All players: 1 total; [EntityPlayerMP['Player241'/1, l='New World', x=624,40, y=64,00, z=511,76]] Chunk stats: ServerChunkCache: 541 Drop: 0 Level seed: 1140525424060041215 Level generator: ID 01 - flat, ver 0. Features enabled: true Level generator options: 2;7,59x1,3x3,2,78;12;biome_1,village Level spawn location: World: (670,4,525), Chunk: (at 14,0,13 in 41,32; contains blocks 656,0,512 to 671,255,527), Region: (1,1; contains chunks 32,32 to 63,63, blocks 512,0,512 to 1023,255,1023) Level time: 159635 game time, 33508 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 56891 (now: false), thunder time: 1450 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:652) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) -- System Details -- Details: Minecraft Version: 1.5.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_21, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 792879760 bytes (756 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 285 (15960 bytes; 0 MB) allocated, 25 (1400 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.51 FML v5.2.12.712 Minecraft Forge 7.8.0.712 4 mods loaded, 4 mods active mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{5.2.12.712} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{7.8.0.712} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available IceAge{1.0} [ice Age] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 25 (1400 bytes; 0 MB) allocated, 25 (1400 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player241'/1, l='New World', x=624,40, y=64,00, z=511,76]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' Sorry for the "sec'" :B
  14. The entity crashes, the problem is at the line about the ItemStack stuff...
  15. Ok, i will try to put it in my code, Thx
  16. What do you mean with ItemArrow?
  17. No, i mean the decresing of the arrow "life" by hitting and EntityLiving
  18. Yeah, instead of EntityEnderman, puts EntityLiving
  19. Yeah sorry about the english and Java hehe Thanks, i will try I know that EntityEnderman stuff. See ya
×
×
  • Create New...

Important Information

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