

// Listen to player login event
PlayerEvents.loggedIn( event => {
	
	// Check if player doesn't have "starting_items" stage yet
	if (!event.player.stages.has('starting_items')) {
	  // Add the stage
	  event.player.stages.add('starting_items')
	  // Give some items to player
	  event.player.give('minecraft:stone_sword')
	  event.player.give('minecraft:stone_pickaxe')
	  event.player.give('minecraft:stone_axe')
	  event.player.give(Item.of('patchouli:guide_book', '{"patchouli:book":"patchouli:potato"}'))
	  event.player.give('30x minecraft:apple')
	}

  }) 