Posted October 29, 201410 yr Hello there fellow modders, i am trying to make my ENTITY ( MOB ) drop Block instead of items. Does anyone know the code line for it. Currently my line for items is this: protected void dropFewItems(boolean par1, int par2) { int j; int k; // if (this.getSkeletonType() == 1) { j = this.rand.nextInt(3 + par2) - 1; for (k = 0; k < j; ++k) { this.dropItem(mod.randomitem, 1); } } }
October 29, 201410 yr Get the Item from a block with Item.getItemFromBlock. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 29, 201410 yr Author Get the Item from a block with Item.getItemFromBlock. uhm how do i do that can you compelte the code ? i have no idea what to do, you can use any block
October 29, 201410 yr Get the Item from a block with Item.getItemFromBlock. uhm how do i do that can you compelte the code ? i have no idea what to do, you can use any block this.dropItem(Item.getItemFromBlock(mod.block, 1)); This should do it ^^
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.