{"id":119353,"date":"2026-06-07T03:28:36","date_gmt":"2026-06-07T00:28:36","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/"},"modified":"2026-06-07T03:28:36","modified_gmt":"2026-06-07T00:28:36","slug":"papyrus","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/","title":{"rendered":"Papyrus"},"content":{"rendered":"<p>Papyrus<br \/>\n=======<\/p>\n<p>Papyrus provides various named mappings to the Fabric loader MappingResolver. This allows for more developer friendly<br \/>\naccess to mappings at runtime for example for using named classes in reflection instead of intermediary.<br \/>\nPapyrus downloads mappings on the first run on any given version and stores cached mappings in tiny v2 format at<br \/>\n${game_dir}\/cache\/papyrus\/${mapping}_${version}.tiny<\/p>\n<p># Using Papyrus<br \/>\nTo use Papyrus just add the maven repository which hosts Papyrus to your gradle build script:<br \/>\n&#8220;` kotlin<br \/>\n# Kotlin DSL<br \/>\nrepositories {<br \/>\n    maven(&#8220;https:\/\/maven.nelind.dk\/releases&#8221;) {<br \/>\n        name = &#8220;Nelind Maven&#8221;<br \/>\n    }<br \/>\n}<\/p>\n<p># Groovy DSL<br \/>\nrepositories {<br \/>\n    maven {<br \/>\n        name &#8216;Nelind Maven&#8217;<br \/>\n        url &#8216;https:\/\/maven.nelind.dk\/releases&#8217;<br \/>\n    }<br \/>\n}<br \/>\n&#8220;`<br \/>\nand then include Papyrus JIJ with the standard loom &#8220;include&#8221; gradle configuration:<br \/>\n&#8220;` kotlin<br \/>\n# Kotlin DSL<br \/>\nmodRuntimeOnly(include(&#8220;dk.nelind:papyrus:(version)&#8221;)!!)<\/p>\n<p># Groovy DSL<br \/>\nmodRuntimeOnly include(&#8220;dk.nelind:papyrus:(version)&#8221;)<br \/>\n&#8220;`<br \/>\nYou can also choose to not include Papyrus JIJ in that case make sure to manually add Papyrus as a dependency in your<br \/>\n`fabric.mod.json`. If you need to access Papyrus internals you can also add Papyrus with the `modApi` configuration instead of the<br \/>\n`modRuntimeOnly` configuration.<\/p>\n<p>Then in your `fabric.mod.json` you need to tell Papyrus what mappings you need access to and the version thereof:<br \/>\n&#8220;`json<br \/>\n{<br \/>\n  &#8230;<br \/>\n  &#8220;custom&#8221;: {<br \/>\n    &#8220;papyrus&#8221;: {<br \/>\n      &#8220;mappings&#8221;: [<br \/>\n        &#8220;mojmap&#8221;,<br \/>\n        &#8220;yarn:build.1&#8221;<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>Then get and use the `MappingResolver` with any of the added mapping namespaces:<br \/>\n&#8220;`java<br \/>\nMappingResolver mappingResolver = FabricLoader.getInstance().getMappingResolver();<br \/>\nString runtimeClassNameFromYarnName = mappingResolver.mapClassName(&#8220;yarn:build.1&#8221;, yarnClassName);<br \/>\nString runtimeClassNameFromMojmapName = mappingResolver.mapClassname(&#8220;mojmap&#8221;, mojmapClassName);<br \/>\n&#8220;`<\/p>\n<p>### Usage notes:<br \/>\n&#8211; Papyrus injects the added mappings at `preLaunch` so you should only use Papyrus at some point after that.<br \/>\n  If the here and there talks about possible future fabric loader plugins go somewhere where it makes sense for<br \/>\n  Papyrus to become a loader plugin it will. Hopefully making extra mappings available at `preLaunch`<\/p>\n<p>&#8211; Mojmap handles inherited class members differently from Intermediary and Yarn!<br \/>\nIntermediary and Yarn only give mappings for members defined directly in a class in said classes mapping<br \/>\ndefinition whereas Mojmap gives names for all members a class has, inherited or not. In practice this means that if you<br \/>\nask the mapping resolver for a Mojmap method name in a class where the class has inherited the method while the runtime<br \/>\nmappings are either Intermediary or Yarn you&#8217;ll get `null` because the resolver *can* find that name (in Mojmap) but<br \/>\nthere is no defined name for that method in the runtime mapping. ***What does this mean for you?*** If you&#8217;re using<br \/>\nMojmap names as the input to the mapping resolver *you should use the class name of the class a method or field is<br \/>\ndeclared on not the class you want to modify*. Alternatively you can have a null check and programmatically find the<br \/>\nclass&#8217;s super class and ask the mapping resolver for the member name with that class as the owning class.<\/p>\n<p>## Provided mappings<\/p>\n<p>|    Mappings     | Namespace used in mapping resolver |<br \/>\n|:&#8212;&#8212;&#8212;&#8212;&#8212;:|:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-:|<br \/>\n| Mojang Mappings |               mojmap               |<br \/>\n|      Yarn       |                yarn                |<\/p>\n<p>## Note on versioning<br \/>\nSince Papyrus is almost entirely independent of the version of the game itself. The mod version indicates the java<br \/>\nversion said build was built against. For example Papyrus x.y.z+java.17 is built against java 17 and as such supports<br \/>\nany game version that&#8217;s also built against java 17 (that being any version from 1.18 to 1.20.4 inclusively).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A mod that provides various named mappings to the Fabric loader MappingResolver<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"papyrus","_minecraft_project_id":"j2IRvAZ2","_minecraft_author":"nelind","_minecraft_license":"MIT","_minecraft_downloads":2181,"_minecraft_follows":1,"_minecraft_client_side":"optional","_minecraft_server_side":"optional","_minecraft_storage_type":"zip","_minecraft_archive_name":"papyrus.zip","_minecraft_size_bytes":623762,"_minecraft_version_count":4,"_minecraft_updated_at":"2026-05-15T22:48:50.199126Z","_minecraft_date_created":"2024-06-10T02:15:27.403177Z","_minecraft_date_modified":"2024-09-22T23:37:18.502563Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/papyrus","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-07T00:28:36+00:00","_minecraft_import_hash":"fe5c28820055c42d1c68aa3ed7f30fb0","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,873],"mod_loader":[99],"minecraft_version":[51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37],"class_list":["post-119353","mod","type-mod","status-publish","hentry","mod_category-fabric","mod_category-library","mod_loader-fabric","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Papyrus - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Papyrus - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A mod that provides various named mappings to the Fabric loader MappingResolver\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/papyrus\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/papyrus\\\/\",\"name\":\"Papyrus - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-06-07T00:28:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/papyrus\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/papyrus\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/papyrus\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Papyrus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Papyrus - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/","og_locale":"en_US","og_type":"article","og_title":"Papyrus - Minecraft","og_description":"A mod that provides various named mappings to the Fabric loader MappingResolver","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/","name":"Papyrus - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-06-07T00:28:36+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/papyrus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Papyrus"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/119353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=119353"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=119353"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=119353"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=119353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}