{"id":43613,"date":"2026-06-02T03:32:24","date_gmt":"2026-06-02T00:32:24","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/"},"modified":"2026-06-02T03:32:24","modified_gmt":"2026-06-02T00:32:24","slug":"code-of-copper-x","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/","title":{"rendered":"Code of Copper Extensions"},"content":{"rendered":"<p># Code of Copper Extensions<\/p>\n<p>This pack provides a couple additional functions to Code of Copper, aimed at providing functionality for those who would<br \/>\nprefer to use the language in creative mode, or as an operator.<\/p>\n<p>Whilst made by one of the developers of Code of Copper, this pack is **unofficial**. While some functionality<br \/>\nprovided by this pack may one day make it upstream, much of it will not.<\/p>\n<p>## Requirements<br \/>\n&#8211; **This datapack will only work in versions 1.20.2 and higher**<br \/>\n&#8211; **This datapack will not work without Code of Copper**<\/p>\n<p>## Provided Functions<br \/>\n### Exec<br \/>\nExec will run any command given to it, in a string. It runs as the bot, positioned at the bot.<br \/>\nIt allows multiple strings in the same function.<\/p>\n<p>&#8220;`ruby<br \/>\nexec(&#8220;time set day&#8221;) # Set time to day<br \/>\nexec(&#8220;weather clear&#8221;, &#8220;gamemode adventure @p&#8221;) # Set weather to clear, and @p to adventure mode<br \/>\n&#8220;`<\/p>\n<p>### Tp<br \/>\nTeleports the selected entity to the given coordinates.<br \/>\nCoordinates can be an integer, or a string.<br \/>\nDefaults to &#8220;@s&#8221; if unset. Tilde `~` is relative to the bot.<\/p>\n<p>&#8220;`ruby<br \/>\ntp(0, 64, 0) # Teleport bot (@s) to 0, 64, 0<br \/>\ntp(0, 64, 0, &#8220;@a&#8221;) # Teleport all players (@a) to 0, 64, 0<br \/>\ntp(&#8220;~&#8221;, &#8220;~8&#8221;, &#8220;~&#8221;, &#8220;@p&#8221;) # Teleport nearest player 8 blocks above the bot<br \/>\ntp(&#8220;~&#8221;, 100, &#8220;~&#8221;, &#8220;@p&#8221;) # Teleport nearest player to Y 100, above the bot<br \/>\n&#8220;`<\/p>\n<p>### Setblock<br \/>\nAlternative to `place()`, doesn&#8217;t require blocks in inventory.<br \/>\nCoordinates can be an integer, or a string. Tilde `~` is relative to the bot.<\/p>\n<p>&#8220;`ruby<br \/>\nsetblock(:stone, 0, 64, 0) # Sets the block minecraft:stone at 0, 64, 0<br \/>\nsetblock(:grass_block, &#8220;~&#8221;, &#8220;~8&#8221;, &#8220;~&#8221;) # Sets the block minecraft:grass_block 8 blocks above the bot<br \/>\n&#8220;`<\/p>\n<p>### Score<br \/>\nReturns the score of the selected entity, as an integer. Defaults to &#8220;@p&#8221; if unset.<\/p>\n<p>&#8220;`ruby<br \/>\nscore(&#8220;myscoreboard&#8221;) # Returns the score of @p, fo scoreboard myscoreboard<br \/>\nscore(&#8220;myotherscoreboard&#8221;, &#8220;Moxvallix&#8221;) # Returns the score of Moxvallix, for scoreboard myotherscoreboard<br \/>\n&#8220;`<\/p>\n<p>### Scoreset<br \/>\nSets the score of the selected entity, from a given integer. Defaults to &#8220;@p&#8221; if unset.<br \/>\nReturns the score set.<\/p>\n<p>&#8220;`ruby<br \/>\nscoreset(&#8220;myscoreboard&#8221;, 8) # Sets @p to a score of 8 on scoreboard myscoreboard<br \/>\nscoreset(&#8220;myotherscoreboard&#8221;, 123, &#8220;Gears_YT&#8221;) # Sets Gears_YT to a score of 123 on scoreboard myotherscoreboard<br \/>\n&#8220;`<\/p>\n<p>### Rule<br \/>\nReturns the value of the given gamerule as an integer.<br \/>\nIf a value is given as a second argument, it sets the gamerule as such.<br \/>\nAccepts either a string, integer or boolean as second value.<\/p>\n<p>&#8220;`ruby<br \/>\nrule(&#8220;keepInventory&#8221;) # Returns the value of gamerule keepInventory (0 if false, 1 if true)<br \/>\nrule(&#8220;doFireTick&#8221;, false) # Sets the gamerule doFireTick to false, returns 0<br \/>\nrule(&#8220;randomTickSpeed&#8221;, 5) # Sets the gamerule randomTickSpeed to 5, returns 5<br \/>\n&#8220;`<\/p>\n<p>### Run<br \/>\nRuns a function given as a resource, and returns the value the function returns.<\/p>\n<p>&#8220;`ruby<br \/>\nrun(:foo) # Runs function minecraft:foo, returning what the function returns<br \/>\nrun(code:bar) # Runs function code:bar, returning what the function returns<br \/>\n&#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Operator focused extensions for GolemScript (Code of Copper).<\/p>\n","protected":false},"featured_media":43614,"template":"","meta":{"_minecraft_slug":"code-of-copper-x","_minecraft_project_id":"V3TqcUku","_minecraft_author":"moxvallix","_minecraft_license":"GPL-3.0-or-later","_minecraft_downloads":84,"_minecraft_follows":1,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"code-of-copper-x.zip","_minecraft_size_bytes":41702,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-15T22:40:45.783483Z","_minecraft_date_created":"2023-12-26T05:58:19.608315Z","_minecraft_date_modified":"2023-12-24T05:29:53.720570Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/code-of-copper-x","_minecraft_icon_attachment_id":43614,"_minecraft_imported_at":"2026-06-02T00:32:25+00:00","_minecraft_import_hash":"b5cb82d18c1ac2f8ed58b9c6ec49106c","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,873],"mod_loader":[86],"minecraft_version":[60,93,94],"class_list":["post-43613","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_category-library","mod_loader-datapack","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Code of Copper Extensions - 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\/code-of-copper-x\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Code of Copper Extensions - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Operator focused extensions for GolemScript (Code of Copper).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/\",\"name\":\"Code of Copper Extensions - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp\",\"datePublished\":\"2026-06-02T00:32:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/code-of-copper-x\\\/#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\":\"Code of Copper Extensions\"}]},{\"@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":"Code of Copper Extensions - 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\/code-of-copper-x\/","og_locale":"en_US","og_type":"article","og_title":"Code of Copper Extensions - Minecraft","og_description":"Operator focused extensions for GolemScript (Code of Copper).","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/","name":"Code of Copper Extensions - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp","datePublished":"2026-06-02T00:32:24+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/code-of-copper-x-icon-6f16817b4dc9046fd05bb704f450f58c79f5b8d8_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/code-of-copper-x\/#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":"Code of Copper Extensions"}]},{"@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\/43613","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:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/43614"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=43613"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=43613"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=43613"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=43613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}