Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shanedublin

Members
  • Joined

  • Last visited

Everything posted by Shanedublin

  1. If no one can help me with this can some one tell me how I can craft a spawner egg?
  2. They can spawn naturally in the world with out it crashing, I just cant seem to spawn them though a throwable egg. So I'm guessing there is something wrong with my code when I asked it to spawn the chicken through the egg. protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0.0F); } if (!this.worldObj.isRemote && this.rand.nextInt( == 0) { byte b0 = 1; if (this.rand.nextInt(32) == 0) { b0 = 4; } for (int i = 0; i < b0; ++i) { EntityBlingChicken entitychicken = new EntityBlingChicken(this.worldObj); entitychicken.setGrowingAge(-24000); entitychicken.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F); this.worldObj.spawnEntityInWorld(entitychicken); } } for (int j = 0; j < 8; ++j) { this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D); } if (!this.worldObj.isRemote) { this.setDead(); } } This is my code for my throwable egg.
  3. I can also breed my special chickens, and baby ones will spawn no problem, But I cant figure out how to do it through a throwable egg. Before the crash it says "Skipping Entity with id 0" I don't know why it says this.
  4. http://www.minecraftforge.net/wiki/Senitiel%27s_the_Making_of_Space_Marine_Mod I would check out this tutorial, I don't know if it is updated to the most recent forge, but it looks like it talks about rendering projectiles.
  5. I made my own custom Chicken Entity to learn how to make a mob. The mob functions how it is supposed to. I can use a spawner egg to spawn my chicken. I'm guessing if I tried to have these chicken occur naturally in the world that it would crash too. I don't know why I can use a spawner egg, but not spawn them in using other means. The problem is when I try to spawn it using a custom egg class. I am using the exactly same code with the exception that I changed EntityChicken entityChicken = new EntityChicken(this.worldobj) to match my chicken class. When I throw my egg and a chicken spawns I crash And get that error report. Thanks for your help
  6. I know that that class is for blocks, that is why i used it. I have an Item that places blocks when you right click on a surface. I know why it wasn't working. I didn't know where clicks where initially handled thanks for pointing that out.
  7. I figured it out.. when I was checking where to place the block I was increment the (x,y,z) location twice. I end up using a combination of the onItemUse and the canPlaceItemBlockAt method. There is probably some easier way to do it, but it works so I wont touch it for a while. When In doubt print all the vars!
  8. I've looked in that class And I see the onItemUse Method , the description says it's for items and not for blocks. And I see the canPlaceItemBlockOnSide method and that one isn't quite working... It's checking for for a player that is one block lower than the player is. I'll try adding some +1s some where to seed if I can get it to work. Thanks for your help.
  9. I have an Item that places blocks when you right click and it almost works' except that it is placing the blocks like you could place a torch. Ex: when you right click right under you it will place the block, then the block will push you out of the way. I am having a hard time finding the method that is for block placement and not item placement. If anyone could point me in the right direction I'd be grateful.
  10. Desktop\ModMine\forge777\forge\mcp\eclipse\Minecraft\bin\assets\rusdfood\textures\items That is where my textures are and it is working for me.
  11. I'm getting the exactly same error.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.