Topic category: Help with MCreator software
I am actually working on my mod with MCreator 2020.2 and I'd like to create a crafting table with just 3 slots: 2 input slots and 1 outputslot.
This is my procedure and my enhancement table:
The video that shows the problem:
When you try to enhance your weapon/armor, you'll have a percentage chance of success.
+1 is 50% chance of succes, +2 is 30% and so on...
This procedure is triggered when I click on the button in the enhancement table. The tickrate of the table is 40 (2sec I think).
So, if I success, the item goes +1 and is spawned in my output slot, number 2. Slots 0 and 1 are cleared during the process.
But if I failed, the item does not go +1.
In this case, since it is an IF DO statement, the item STAYS in the input slot number 1, because it has failed to upgrade, so it is not removed from the slot.
What I was expecting:
If I success: the output slot is filled with the new +1 item, if not, the item stays in slot 1, only the ingredient is being consumed. It works BUT.
Sometimes, when I failed, the item is removed from slot 1 and the new +1 item spawn in the output slot... and when I click on it, it despawns and the real item spawns in slot 1, as it is supposed to do.
I tried everyway possible (well, I hope not !) to fix the IF DO statement. But I feel like it is buggy atm?
I mean, if the roll failed, why MCreator sometimes run the statement?
Do you know if I can make a crafting table only using input slots ?
If you have an idea, please let me know!
I ended up with something like this, now it works as intended, but sometimes you can see that the procedure still spawns an item and then remove it to place the resulting item in the input slot. It's very weird. I added a feature: everytime you failed, your item is downgraded. This way, it is simplier to get what I originally planned to do. I will fit to this for now, but I still think that it's a bug.