Block saving item

Started by MGMac on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block saving item

So if you know the pillars from mystical agriculture, they let you place items on them and it renders them above it which can then be used to craft something. I am looking for a way to do the same thing but with 1 block, where I would have a recharge station and I can place an item on it which will render in a certain place and get recharged. I know how to do the recharging part but I do not know how to:

A) render the item

B) restrict it to a certain selection on items

C) detect the item

Any help would be appreciated

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A. Advanced code B. by…
Sat, 10/23/2021 - 17:23

A. Advanced code

B. by getting the item in right click and prohibiting the itt click if item in main hand = ITEM

C. with Item in main hand blocks, or if it's a gui, with getting the slot item

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, I'll try these
Sun, 10/24/2021 - 05:25

Thanks, I'll try these