Started by
RedstoneGuy_
on
Topic category: Help with MCreator software
Hi! I would like to know how can I "drink from a cup". Let me explain: I want to drink the hot chocolate, and when I drink it, it turns into a simple cup.
For example, I have a milk bucket. When I drink it, it turns into a simple bucket.
Example number two: I have a water bottle. When I drink it, it turns into a simple bottle.
So, I want to drink a hot chocolate cup and want it to turn in a CUP when drunk. Can I do the same with my item? Please explain to me how can I do it, I will be very thankful. Thank you for your patience (and sorry for my English, I hope it's understandable),
Red.
Ok, so to do it make a procedure that turns the hot chocolate cup into a cup and also replenish your hunger
For this:
You need to make a procedure specific to the event of the food/drink being used.
Make it so that when the Hot Chocolate Cup has been drank, a cup will spawn in your inventory.
(I am assuming that the cup is replenishable via crafting recipe, basically to craft the HCC you would need to craft it instead of right-clicking say a Hot Chocolate fluid to get it.)
Anyways, hope that helped (If not, the comment above mine should also work) :D :) C:
Yeah, I do not understand much of procedures. What I need to know is if I can replace the cup in the same slot as the hot chocolate cup is.
To do that you literally go to the item, look into the "when ate" and make a statement where the hot chocolate is removed from the invintory, then it adds a cup to the invintory... That should help..
P.S. i have not seen a mod yet where when you drink something the empty item is placed in the same slot as the old one
Just set them cup itemstack to 1 and make the procedure then there will be no worries of more cups dissapearing
But I can't check in what slot of the hotbar the hot chocolate is, so I can't replace. 0, 1, 2, 3... I don't know
Ok so your procedure should look like this
Assign it to On Food Eaten Condition
also replace that bucket with your empty cup
This Will Help:
1. Make a cup item
2. Make the hot chocolate a "Food"
3. Make the eating item result the cup
Its that simple! Just do that!