Change texture when an item is eaten

Started by Kiwiio_Gaming on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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.
 

Active 48 minutes ago
Joined Aug 2016
Points:
3235

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2786
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.

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

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

And is there a way to add durability to food?

Active 5 years ago
Joined Aug 2019
Points:
667

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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 ><

Active 2 years ago
Joined May 2020
Points:
753

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 108
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

 

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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

Active 2 years ago
Joined May 2020
Points:
753

User statistics:

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

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

Active 4 years ago
Joined May 2017
Points:
730

User statistics:

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

save with if

 

Active 2 years ago
Joined May 2020
Points:
753

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 108
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

Active 2 years ago
Joined May 2020
Points:
753

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 108
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

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

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

Can I get some REAL and DETAILED advice?procedure

Active 2 years ago
Joined Dec 2017
Points:
1043

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 322
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...

Active 1 year ago
Joined May 2020
Points:
646

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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.

Active 5 years ago
Joined Apr 2015
Points:
725

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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