Started by
Loic_MaitreDuFeu
on
Topic category: User side tutorials
Hello! Today another Tutorial about MCreator, Today this is not a Tutorial about File Management or Templates or Texture Editing BUT about...
Making an Item that uses Durability in crafting Recipes!
It is easy but really time taking and Mod Elements taking...
First of all Let's say 2 Items Examples... Fusion Gem and Ice and Fire Crystal
You want that Fusion Gem can be used in crafts Multiple times but limited times such as having a Durability of Let's say 10/10
You need the Fusion Gem to craft the Ice and Fire Crystal
So how to make Fusion have 10/10 Durability when used in Crafts?
Steps:
Step 1) You need to create Fusion Gem Mod Element 10 times due to 10/10 durability
(Used names such as {FusionGem1, FusionGem2, FusionGem3, till FusionGem10)
Step 2) Use as Description something like "Durability 10/10", "Durability 9/10", "Durability 8/10" for EACH Items till it reachs 1/10
Step 3) For Ice and Fire Crystal you need to set the event trigger [On Item Creation] and you make the procedure which will give you the Fusion Gem with less durability, Like Add in Player Inventory FusionGem2 with 9/10 Durability
(NOTE: You will also need to Make 10 Times due to [On Item Creation] and you should make different recipes for it so it uses a FusionGem2-3-4-5 to 10
Step 4) You should make 10 recipes of Ice and Fire Crystal each using a different Fusion Gem which is the 1-10
Step 5) Optional: Make Different textures for the 10 Fusion Gem with a decreasing Durability
And you are finished :) Hope you understand, if you didn't, Comment below and I will try to help you out!
Edited by Loic_MaitreDuFeu on Sun, 03/10/2019 - 13:02
That was fast :D It is nice to see you share info with other users!
I do when I can :)
You know, I think I will create a Mod soon which will be a FULL Tutorial Mod, I will put MCR and inside, I will put all possibility and things I showed in tutorials
This is very nice of you :)
Hello i know it is a good toturial but i don`t understand how to make the coding stuff.
First i made some textures for the Items and then i created these mod elements.
I did all of these steps.
But i sad it before i dont understand the coding stuff in step 3
1.Where can i set the event trigger on item creation? I don´t see this option the only things at the event tag with on are
on player tick update and the other is on world tick update.
and what does this mean is this coding too how can i do it?
So i tried to do it on my own and made 4 textures for the FusionGem
and turned on the event trigger by external call or when something is crafted then i put on these player procedures
remove 1 fusionGem add 1fusionGem9/10 Durability and so on till the end where i put in remove 1 fusionGem0/10 Durability.
But you can see the problem the event trigger is called external call or when something is crafted but whatever i craft i get one fusionGem with random Durability it makes sense but can i make a new event trigger?
for example when this item (fusionGem) is crafted then (gif item(fusionGem9/10 Durability)
I dont know what to do i hope you guys can help me;-)
Ps:sry for the bad englisch ima German duuuuude
anyway thanks!
I don't suggest using this tutorial, you would need to make a lot of items....
What tutorial would you recommend for making multi-use crafting items then? Looking to do something similar for a food recipe where I have a "sauce bottle" that will deplete the amount with each use.
you can't unless you want to create a lot of items as explained in the tutorial that will potentially lag the game badly and it will add a bunch of unnecessary item ids.
I see.. well thank you, I hadn't realized that this could potentially cause lag. I've been trying to think of another approach to this, but I have a feeling it'd end up with the same result... I was thinking of maybe trying to find a way for my item to be treated like a water bucket and be left behind in the crafting table instead of sending the item to the players inventory.