Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.5] [WIP (again)] Deverion's Forge Modding Tutorials [Updated 16-03-2013] [1.5 Tutorials: 1!]

modding minecraftforge tutorial smp

  • Please log in to reply
845 replies to this topic

#841

kaikaii99

Posted 31 March 2013 - 06:48 AM

Well, When i kill my mob, it doesn't drop anything. [just says remove @Override annotation]
Posted Image

Register or log in to remove.

#842

DeverionX
  • Minecraft: DeverionZ

Posted 31 March 2013 - 07:04 AM

Use this method, note that you still need the dropItemID method:

protected void dropFewItems(boolean par1, int par2)
{
		 this.entityDropItem(new ItemStack(YourItem.itemID, 1, metadata), 0.0F);
}

Posted Image

EDIT: I presonally prefer looking through the source code for figuring things out rather than asking, in this case I knew that wool is dropped with metadata, so I checked EntitySheep Posted Image

#843

kaikaii99

Posted 31 March 2013 - 07:08 AM

Yea I tried to it but its confusing lol :) thanks for your help
Posted Image

#844

ashtonr12

Posted 31 March 2013 - 09:11 PM

can someone walk me through how to;
-create a meta data block
-that grows overtime into stage into one of several meta data parts of this block. (eg base bush into green bush or blue bush or red bush)
-each meta data block part has a different blockdrop and different texture.
-how to make the grown block (green bush, blue bush, red bush) when broken the block goes back to the bare bush.

I tried to explain best i can if you need me to clarify i will try any help its greatly received.

#845

PauloCrafts
  • Location: Minecraft World

Posted 01 April 2013 - 08:34 AM

YEAH

#846

DeverionX
  • Minecraft: DeverionZ

Posted 01 April 2013 - 03:59 PM

View Postashtonr12, on 31 March 2013 - 09:11 PM, said:

can someone walk me through how to;
-create a meta data block
-that grows overtime into stage into one of several meta data parts of this block. (eg base bush into green bush or blue bush or red bush)
-each meta data block part has a different blockdrop and different texture.
-how to make the grown block (green bush, blue bush, red bush) when broken the block goes back to the bare bush.

I tried to explain best i can if you need me to clarify i will try any help its greatly received.

1) That's already one of the tutorials...
2) Look at wheat, and there's a thing called Random to help you out
3) -.-
4) Look through the base block code to find the method you need

I'm not here to write your mod for you, just to teach the basics


View PostPauloCrafts, on 01 April 2013 - 08:34 AM, said:

YEAH

WOOHOO! Wait, what are we talking about...