So I was thinking of a crafting system where you could create items with a specified number of items however you could use less items and try your luck to get it without using so many materials or you could pump a ton of resources into it and get a really strong item.
Example:
Iron Sword
Requires:
2 Iron
2 Wood
2 Leather
You can put in the exact materials to receive an iron sword, 1 of each and have a chance of receiving an iron sword, or 3 of each and have a chance of receiving an upgraded iron sword, or 5 of each and get a guaranteed perfect iron sword with increases stats, etc.
I don´t know if this plugin 100% supports what you are looking for, but with some tweaking it should work (keep in mind it is for MV).
Since the plugin is called from a event it should be possible to use variables to influence success if the player do not have all ingredients. It definately possible to give the player a grander item if they craft with a surplus number of items, just make a hidden category of items. As said I haven´t actually tried it out yet but this script seems like a good place to start and is very well-documented.
Perhaps you could do this by pure eventing with the use of conditional branches. You just have to have three versions of each weapons depending on their required materials. Use variable rolls (or whatever you call the random variable amount generator in MV. I haven't used the engine for a long time now so I kinda have a blurry memory with the terms.) to determine what the player should receive if the materials given do not exactly meet the recipe of the item.
For example, you use a conditional branch to check if the player had given 1 of each materials. And if it is true, you'll roll a certain variable's amount to determine whether the player should get the iron sword or not. Let's say the player has a 40 out of 100 probability to get the iron sword if they had given 1 of each required materials. Then that means the conditional branch will check whether Variable A is <= or == to 40.
You'd definitely want a plugin for this though if you're aiming for a nice and attractive UI to go with the system.