Yanfly Item Durability Lunatic Mode Help

I'm attempting to make it so that when a weapon breaks it will drop a certain item, in my case the item ID is 28. The Lunatic Mode section of the help file looks like it has what I need but I'm unfamiliar with JS so I'm not sure what I'm supposed to do with it. The code is
<Custom Break Effect>
var newItem = $dataitems[1];
$gameParty.gainItem(newItem, 1);
</Custom Break Effect>
How would I go about editing that to give me the item?
Code:
<Custom Break Effect>
var newItem = $dataItems[28];
$gameParty.gainItem(newItem, 1);
</Custom Break Effect>

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-item-durability-lunatic-mode-help.101975/