Change texture when an item is eaten

Started by Kiwiio_Gaming on

Topic category: Help with modding (Java Edition)

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change texture when an item is eaten

Hi,

I'm currently creating a food mod and I made an item called "Grape" and I'd like that when I eat it, the item changes textures (5 textures in total).
Any solutions? Thank you.
 

You can create 5 elements of…
Tue, 04/14/2020 - 01:18

You can create 5 elements of your food for each stage, but there is no other "professional" way to do that.

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And is there a way to add…
Tue, 04/14/2020 - 09:47

And is there a way to add durability to food?

Last seen on 17:37, 10. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make 5 foods, each one of…
Thu, 05/07/2020 - 21:43

Make 5 foods, each one of them would be one stage, then make procedure when eaten full grape, remove grape and give player grape second stage. Do the same 5 times.

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And how do I do that? I…
Thu, 05/07/2020 - 21:57

And how do I do that? I really don't know anything about procedures ><

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make 5 food items(1 has a…
Fri, 05/08/2020 - 08:04

Make 5 food items(1 has a creative tab,the others dont) and then in the procedure ''When eaten'' remove the item from players inventory then add 1 (the other stage) to players inventory.

 

Make these to all of the stages and i hope it will work

 

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did that, but it doesn't…
Fri, 05/08/2020 - 13:45

I did that, but it doesn't work? I really don't know anything about it ><My procedure

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe remove the if and do…
Fri, 05/08/2020 - 17:44

maybe remove the if and do procedure(im noob too btw)

Last seen on 19:25, 18. Apr 2021
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
save with if  
Fri, 05/08/2020 - 18:36

save with if

 

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay maybe I have an idea:…
Mon, 05/11/2020 - 09:18

Okay maybe I have an idea:
Maybe dont include the remove code block because when you eat the item it already gets removed

 

Hope that'll help

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So just make this   When…
Mon, 05/11/2020 - 09:19

So just make this

 

When eaten -Add 1 (next stage item)to players inventory

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I get some REAL and…
Tue, 05/12/2020 - 22:26

Can I get some REAL and DETAILED advice?procedure

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
all you need is the Add…
Tue, 05/12/2020 - 22:51

all you need is the Add function.. not the rest of the if do....

 

So you eat the big bunch, and have the on-eaten procedure add the small bunch...

Last seen on 02:06, 4. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So just make this   When…
Wed, 05/13/2020 - 00:08

So just make this

 

When eaten -Add 1 (next stage item)to players inventory

I don't see an "if Has provided entity  in inventory do" anywhere in there.

Last seen on 15:12, 15. May 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did that, but it doesn't…
Fri, 05/15/2020 - 14:15

I did that, but it doesn't give me the next item every time, it's a little random I think. Isn't there a way to make it happen every time?

procedure