--- a/net/minecraft/world/item/component/WrittenBookContent.java
+++ b/net/minecraft/world/item/component/WrittenBookContent.java
@@ -94,7 +_,7 @@
 
     public static boolean resolveForItem(ItemStack stack, CommandSourceStack source, @Nullable Player player) {
         WrittenBookContent writtenBookContent = stack.get(DataComponents.WRITTEN_BOOK_CONTENT);
-        if (writtenBookContent != null && !writtenBookContent.resolved()) {
+        if (io.papermc.paper.configuration.GlobalConfiguration.get().itemValidation.resolveSelectorsInBooks && writtenBookContent != null && !writtenBookContent.resolved()) { // Paper - Disable component selector resolving in books by default
             WrittenBookContent writtenBookContent1 = writtenBookContent.resolve(source, player);
             if (writtenBookContent1 != null) {
                 stack.set(DataComponents.WRITTEN_BOOK_CONTENT, writtenBookContent1);
