local config = {
[2050] = {changeTo = 2051},
[2051] = {changeTo = 2050}
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local itemTransform = config[item:getId()]
item:remove()
player:addItem(itemTransform.changeTo, 1)
return true
end