How to make using a block use an item?

Started by Phantom1165 on Sun, 08/30/2015 - 06:17
Last seen on 23:51, 9. Feb 2018
Joined Jul 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to make using a block use an item?
Sun, 08/30/2015 - 06:17

I am not showing how I'm asking.  I am making a mod that I want when using a block you need an item in your inventory or else it doesn't work.

Last seen on 13:55, 18. Dec 2015
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
that is pretty easy.
Wed, 12/16/2015 - 15:33

that is pretty easy.

step one: create the block you want.

step 2: go to the events menu which is the second last screen.

step 3: press add event at the section that says: on block right click.

step 4: scroll down and select consume item from inventory.

step 5 select the option hasplayerininventory [block/item] and it will ask you to select the item.

that's it

Last seen on 14:35, 19. Jun 2017
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
For example when i was making
Wed, 01/20/2016 - 17:50

For example when i was making a block place a .schematic for a farm. When i kept right clicking it, the schem would place however it would not comsume the item so in the properties of the item i put consume item and it would work.

 

Some problems with items consuming an item thats not itself is for example it will consume an item in the inventory when used but would still work even if none are left in the players inventory :P