Started by
Kiwiio_Gaming
on
Topic category: Help with Minecraft modding (Java Edition)
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 your food for each stage, but there is no other "professional" way to do that.
And is there a way to add durability to food?
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.
And how do I do that? I really don't know anything about procedures ><
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
I did that, but it doesn't work? I really don't know anything about it ><
maybe remove the if and do procedure(im noob too btw)
save with if
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
So just make this
When eaten -Add 1 (next stage item)to players inventory
Can I get some REAL and DETAILED advice?
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...
I don't see an "if Has provided entity in inventory do" anywhere in there.
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?