This command will add the resources required to craft the specified item to your inventory.
resourcesfor [item]