How do I make blocks as gun ammo?

Started by Fincone on Sun, 02/28/2016 - 15:31

Topic category: Help with MCreator modding

Last seen on 13:46, 9. Oct 2016
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How do I make blocks as gun ammo?
Sun, 02/28/2016 - 15:31

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.

Last seen on 13:46, 9. Oct 2016
Joined Jan 2016
User points:

Statistics:

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

bump

Last seen on 23:46, 15. Sep 2019
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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

Last seen on 13:46, 9. Oct 2016
Joined Jan 2016
User points:

Statistics:

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

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

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

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

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

Last seen on 13:46, 9. Oct 2016
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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!