"Item granted after consumption:" function when creating food element.

Started by hunterben964 on

Topic category: Feature requests and ideas for MCreator

Last seen on 18:25, 16. Jun 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Item granted after consumption:" function when creating food element.
Thu, 07/23/2020 - 20:25 (edited)

Some foods I have made in a mod I am making are in buckets/bowls. It is really difficult to add functionality for  these sorts of foods and giving a bucket/bowl/bottle after. I think it would be a great small feature to add to make foods like honey/soup/milk with a small item selection box where you can choose from every item and select 1 to appear in the player's inventory/get thrown out (if the inventory is full).

Please consider adding this in the next snapshot! I kinda need this.

Edited by hunterben964 on Thu, 07/23/2020 - 20:25
Last seen on 02:13, 10. Sep 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just make a procedure for…
Wed, 07/29/2020 - 23:09

Just make a procedure for when the item is consumed that adds the item to the player's inventory. There is a block in player procedures for that.

Last seen on 18:25, 16. Jun 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know. I tried. But it is…
Thu, 07/30/2020 - 17:12

I know. I tried. But it is really buggy and annoying to get it to work when the player has a nearly/completely full inventory.

Last seen on 17:52, 3. Jan 2021
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can check the slots of…
Thu, 07/30/2020 - 17:37

you can check the slots of the inventory to check if there is 1 slot of free, it takes time but it's worth it