How do I make blocks as gun ammo?

Started by Fincone on

Topic category: Help with modding (Java Edition)

Last seen on 13:46, 9. Oct 2016
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.

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

User statistics:

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

bump

Last seen on 19:01, 3. Nov 2019
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

Last seen on 13:46, 9. Oct 2016
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.

Last seen on 17:17, 10. Jan 2024
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)

Last seen on 13:46, 9. Oct 2016
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!