Don't forget to update your shovel script as well, since it's supposed to transform the wagon to item id 10037, and not create item id 8749 on top of it.
local config = {
[7131] = {directionOffset = Position(1, 0, 0), endPosition = Position(32717, 31492, 11)},
[10037] = {directionOffset...