How do I make blocks as gun ammo?

Started by Fincone on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make blocks as gun ammo?

I'm making a dirt block and when you shoot, it places a dirt block.

I successfully done the shooting dirt block part but how do I make a dirt block as an ammo? For some reason it only features items and not blocks.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Sun, 02/28/2016 - 15:37

bump

Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump i'm pretty sure if you
Sun, 02/28/2016 - 18:33

bump i'm pretty sure if you search up dirt in the search box you'll get it

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But it only shows items when
Mon, 02/29/2016 - 17:36

But it only shows items when you search, not blocks.

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try something like this: Item
Mon, 02/29/2016 - 18:17

Try something like this: Item.getItemFromBlock(Blocks.dirt)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh well, I am still new to
Wed, 03/02/2016 - 18:30

Oh well, I am still new to this program I guess.

But thanks for the answer @Nuparu00!