How would I make a block that's like a hopper

Started by TheObserver on Wed, 08/12/2020 - 20:57

Topic category: Help with MCreator software

Last seen on 20:08, 22. Nov 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would I make a block that's like a hopper
Wed, 08/12/2020 - 20:57

I wanted to make a block that after 10 seconds, breaks the block above it (as long as it can be broken in survival mode) and puts the item in a free slot. I can't seem to figure out how to make it collect the block it breaks above it.

Last seen on 16:26, 14. Nov 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
On every tick, check if your…
Fri, 08/14/2020 - 11:31

On every tick, check if your hopper block's inventory isn't full.

Then, check if there's an item entity on top of the block. Get the item from the item entity (a block in the item procedures tab), and add it to your block's inventory in a free slot (This could be done with a for() loop, if you know how to do them). Despawn the item entity.

Last seen on 23:33, 14. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
And how would you know if…
Sat, 10/24/2020 - 14:04

And how would you know if the customized block has a full inventory?