How to make using a block use an item?

3 posts / 0 new
Last post
Offline
Last seen: 4 months 3 weeks ago
Joined: 07/07/2014 - 00:22
Gems: 0
How to make using a block use an item?

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.



Offline
Last seen: 1 year 5 months ago
Joined: 12/15/2015 - 21:05
Gems: 0
that is pretty easy.

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

TheRockettek's picture
Offline
Last seen: 4 months 2 weeks ago
Joined: 01/16/2016 - 17:13
Gems: 0
For example when i was making

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