Trying to make a client script that, when the player first loads into a world, gives them an item (akashic tome with the guidebooks from each mod pre-installed). Using the template on the kubejs wiki, I put together this script:
ClientEvents.loggedIn(event => {
// Check if player doesn't have "starting_items" stage yet
if (!event.player.stages.has('starting_tome')) {
// Add the stage
event.player.stages.add('starting_tome')
// Give akashic tome to player
event.player.give(Item.of('akashictome:tome', '{"akashictome:data":{immersiveengineering:{Count:1b,id:"immersiveengineering:manual"}}}'))
}
})```
But when I try this code out, I don't get the item or the starting_tome gamestage, and kubejs shows no error messages. What's wrong with this code?

