The Minecraft Fire Aspect enchantment sets your target on fire when you attack them with your sword.
How to have a sword with Fire Aspect in Minecraft
You can add the Fire Aspect enchantment to any sword using an enchantment table, anvil or in-game command. Then use the enchanted sword to fight and watch them burst into flames!
The maximum level for the Fire Aspect enchantment is level 2. The higher the level, the more powerful the enchantment.
When a creature that normally drops meat is killed while burning, or if a creature is killed with one blow, even if it is in water, it drops cooked meat.