it works but i have one problem when i go online to the island i put the id for coffee and it spawns the item but if i put a different id for say a sparkling apple juice it stays as coffee
This can sometimes happen. You must remove the coffee from slot 1 to another slot of the inventory and make the code of the item you want. Then press X+D-Pad right and the item is now in your inventory.