addEvent have parameters man.
addEvent(function,timetoExecute)
You need make some functions for remove and create the magic wall,
and put this, on the addEvents parameters.
function create()
createItem(blablabal,bla,1)
end
function onUse(~)
addEvent(create, 1000) -- 1000 ms = 1 second
;)