Jump to content

BuddingDev

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by BuddingDev

  1. Entity Code: http://pastebin.com/fJNpbG9C Snippet: EntityMeteorZombie zombie = new EntityMeteorZombie(world, this.posX, this.posY, this.posZ); zombie.setCurrentItemOrArmor(1, new ItemStack(Items.iron_helmet)); zombie.setPosition(this.posX, this.posY, this.posZ); //zombie.setLocationAndAngles(this.posX, this.posY, this.posZ, MathHelper.wrapAngleTo180_float(rand.nextFloat() * 360.0F), 0.0F); //zombie.rotationYawHead = zombie.rotationYaw; //zombie.renderYawOffset = zombie.rotationYaw; if (!world.isRemote) { this.worldObj.spawnEntityInWorld(zombie); zombie.playLivingSound(); } // Spawn Meteor zombies //this.worldObj.spawnEntityInWorld(new EntityMeteorZombie(World, i+randX, j+1, k+randZ)); I dont seem to be able to spawn them. have I done anything wrong?
  2. Well, my bad. I surely did not have enough experience to start modding, but anyway... If anyone is going to do this in future, import java.util.List, or you are screwed. (Off topic: Eclipse warned me the "type safety" stuff when trying to add tooltip lines. Is that normal? I saw some tutorial for minecraft 1.6 tooltip, and it does not have such warning.)
  3. @Override on: [Eclipse: Hey you need to get addInformation() to implement or override "Supertype" (I guess it is Item type) methods. That is not good.] EDIT: Still no tooltips. @Override off: No item tooltips.
  4. They say I should add public void addInformation(ItemStack, EntityPlayer, List, Boolean){List.add("Stuff");} for item tooltip in the item class. But then the expected tooltip did not show up in the game... Can anyone help? It may help others as well.
  5. Thanks for the code help. I can now spam the world with fireballs!!! And also, how to make the explosion spawn fire nearby? Do I need to spawn them manually?
  6. (If my code suggests that I am not newbie, ignore that, for I just copied the code and found that it worked...) Well, let me explain this entity and what I plan to do with it first: Remember when people start spamming the web that Herobrine has a power tool that spawn lightning everywhere? I was inspired by this and created a power tool. But this time instead of lightning it spawns custom-made fireballs that fall from the sky and BOOM. My power tool will spawn those Meteors above where it was pointed. And somehow, it created a good-looking vanilla fireball and a white cube at the same time... (the white cube exploded because it touched the vanilla one. But anyway...) Power Tool (Meteor spawner): http://pastebin.com/K7NeXyw0 Meteor: http://pastebin.com/C0VJqjSM Main.java (in case someone needs this): ... @EventHandler public void preInit(FMLPreInitializationEvent e) { EntityRegistry.registerGlobalEntityID(Meteor.class, "meteor", EntityRegistry.findGlobalUniqueEntityId()); } ... And I cannot figure out what method to render it...
  7. There are so many ways to render an entity. (Render files, new RenderStuff() And some of them are outdated. I still did not find a way to properly render it. It is confusing for a newbie like me EDIT: I want the falling fireball to look like vanilla ones, but I never figure out how to inherit and use the stuff properly.
  8. As stated, my custom-made fireball (inherited from EntityFireball of Ghast-style fire balls) is behaving strange. They all explode when they hit something, which is OK. Half of the spawned entity displays the fireball texture (which is OK) but the rest of them displays the classical white entity cube! Is there something I missed while doing the render? Or something I cannot comprehend?
×
×
  • Create New...

Important Information

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