How do I make blocks as gun ammo?

Started by Fincone on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 years ago
Joined Jan 2016
Points:
718

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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.

Active 8 years ago
Joined Jan 2016
Points:
718

User statistics:

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

bump

Active 5 years ago
Joined Apr 2015
Points:
785

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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

Active 8 years ago
Joined Jan 2016
Points:
718

User statistics:

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

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

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

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

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

Active 8 years ago
Joined Jan 2016
Points:
718

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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!