{"id":49453,"date":"2026-06-02T16:39:02","date_gmt":"2026-06-02T13:39:02","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/"},"modified":"2026-06-02T16:39:02","modified_gmt":"2026-06-02T13:39:02","slug":"create-logic","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/","title":{"rendered":"Create: Logic"},"content":{"rendered":"<p>A create automation with using own programming language, naming &#8220;Metal&#8221;.<br \/>\nPlace a computer, right click, enter code, press save, shift+right click for toggle run.<\/p>\n<p>  Coding:<br \/>\nDeclare 2 Systems (System is just like function), &#8220;INIT&#8221; and &#8220;TICK&#8221; like that:<\/p>\n<p>SYSTEM(INIT): START;<\/p>\n<p>init code here<\/p>\n<p>END_SYSTEM;<\/p>\n<p>SYSTEM(TICK): START;<\/p>\n<p>tick (loop) code here<\/p>\n<p>END_SYSTEM;<\/p>\n<p>  API:<br \/>\nThere is some functions to work with Metal.<\/p>\n<p>built-in functions:<\/p>\n<p>MAKE_VAR(VAR_TYPE,$name,start_value); &#8211; making a global variable (global variable MUST start with &#8216;$&#8217;, ONLY in INIT)<\/p>\n<p>MAKE_ITEM_VAR($name,item_id); &#8211; making a INT variable by minecraft item number id (ONLY in INIT)<\/p>\n<p>SET($name,value); &#8211; set new value for variable<\/p>\n<p>ADD\/SUB\/MUL\/DIV($name,value); &#8211; operations with variables<\/p>\n<p>WAIT(ms); &#8211; delaying script (ONLY in TICK)<\/p>\n<p>CONTINUE(); &#8211; return to the current System begin (ONLY in TICK)<\/p>\n<p>RERUN(); &#8211; return to the main System of current script (ONLY in TICK)<\/p>\n<p>EXIT_STACK(); &#8211; exit entire stack of System calls and returns to the point of stack start<\/p>\n<p>RETURN(); &#8211; exit 1 System of stack of System calls<\/p>\n<p>ABORT(); &#8211; forcibly terminate current script (Doesn&#8217;t turn off computer)<\/p>\n<p>CALL_SYSTEM(name, args&#8230;); &#8211; call System (max stack size is 16), cannot call Systems-EntryPoints (INIT, TICK), args is ONLY in in 0.0.3+ mod version<\/p>\n<p>IF(condition): START; &#8211; Base IF operator (closing &#8211; &#8220;END_IF;&#8221;)<\/p>\n<p>ELSE(): START; &#8211; Base ELSE operator (between IF and END_IF)<\/p>\n<p>BIND_ARGS_TO_SYSTEM(name, args&#8230;); ONLY in INIT, args must be like &#8220;#var:INT&#8221;, setting arguments to system call (CALL_SYSTEM), ONLY in 0.0.3+ mod version<\/p>\n<p>MAKE_LOCAL_VAR(VAR_TYPE,#name,start_value); &#8211; making a local variable (local variable MUST start with &#8216;#&#8217;) ONLY in 0.0.3+ mod version<\/p>\n<p>ACCEPT_INVOKES(); &#8211; allow invoke non-reserved systems by integrations ONLY in INIT, for 0.0.4+ mod version<\/p>\n<p>PRINT(args&#8230;); &#8211; INFO Output (white) ONLY in 0.0.6+ mod version<\/p>\n<p>WARN(args&#8230;); &#8211; WARN Output (yellow) ONLY in 0.0.6+ mod version<\/p>\n<p>ERROR(args&#8230;); &#8211; ERROR Output (red) ONLY in 0.0.6+ mod version<\/p>\n<p>end of built-in functions<\/p>\n<p>Java Functions (registered outside of a Metal):<\/p>\n<p>CONNECT_LINK_SENDER(id,item1,item2); &#8211; making a transmitter connection (for two last arguments recommends use MAKE_ITEM_VAR, id is any value, doesn&#8217;t used before), ONLY in INIT<\/p>\n<p>CONNECT_LINK_RECEIVER(id,item1,item2); &#8211; making a receiver connection (use MAKE_ITEM_VAR variables for two last arguments) ONLY in INIT<\/p>\n<p>SEND_LINK(id,power); &#8211; send power to Create Redstone Link (use with id, used in CONNECT_LINK_SENDER)<\/p>\n<p>RECEIVE_LINK(id); &#8211; receive power from Create Redstone Link (use with id, used in CONNECT_LINK_RECEIVER)<\/p>\n<p>RANDOM(min,max); &#8211; returns random INT between min and max<\/p>\n<p>RAND(); &#8211; returns random DOUBLE between 0.0 &#8211; 1.0<\/p>\n<p>SIN(value); &#8211; returns sin of the value (use radians)<\/p>\n<p>COS(value); &#8211; returns cos of the value (use radians)<\/p>\n<p>TAN(value); &#8211; returns tan of the value (use radians)<\/p>\n<p>SQRT(value); &#8211; returns sqrt of the value<\/p>\n<p>DTR(value); &#8211; degrees to radians<\/p>\n<p>RTD(value); &#8211; radians to degrees<\/p>\n<p>GET_PI(); &#8211; returns PI<\/p>\n<p>MIN(args&#8230;); &#8211; returns MIN of all arguments<\/p>\n<p>MAX(args&#8230;); &#8211; returns MAX of all arguments<\/p>\n<p>CLAMP(value,min,max); &#8211; returns limited value in range<\/p>\n<p>ABS(value); &#8211; returns module of value<\/p>\n<p>POW(value,pow); &#8211; returns exponentiation of the value<\/p>\n<p>GET_OPS(); &#8211; returns completed operations of this script &#8211; 0.0.5+<\/p>\n<p>end of Java Functions;<\/p>\n<p>Tips:<\/p>\n<p>ADD,SUB, etc using ONLY in modification of value<br \/>\nfor example: <\/p>\n<p>ADD($x,1); = x += 1;<\/p>\n<p>In brackets:<\/p>\n<p>IF($x + 1 > $y): START;<\/p>\n<p>code<\/p>\n<p>END_IF;<\/p>\n<p>And, &#8220;: START&#8221; is not necessarily, but recommended, you also can use<\/p>\n<p>SYSTEM(INIT);<br \/>\n&#8230;<\/p>\n<p>IF(condition);<br \/>\n&#8230;<\/p>\n<p>etc.<\/p>\n<p>Current variable types: INT, DOUBLE, POWER, BOOL.<\/p>\n<p>TICK EntryPoint (System) running in the other thread 1000 times per second.<\/p>\n<p>INTEGRATION:<br \/>\nSince 0.0.4 you can call non-reserved systems from Computer Craft mod, its looks like:<br \/>\nMetal:<br \/>\nSYSTEM(INIT): START;<br \/>\nACCEPT_INVOKES();<br \/>\nBIND_ARGS_TO_SYSTEM(SUM,#first:DOUBLE,#second:DOUBLE);<br \/>\nEND_SYSTEM;<br \/>\nSYSTEM(SUM): START;<br \/>\nRETURN(#first + #second);<br \/>\nEND_SYSTEM;<br \/>\nSYSTEM(TICK): START;<\/p>\n<p>END_SYSTEM;<\/p>\n<p>CC Lua:<br \/>\nlocal metal = peripheral.find(&#8220;metal&#8221;);<br \/>\nif metal then<br \/>\nprint(metal.callSystem(&#8220;SUM&#8221;,5,10)); &#8212; output: 15<br \/>\nelse<br \/>\nprint(&#8220;Cannot find Metal Computer&#8221;);<br \/>\nend<\/p>\n<p>Since 0.0.5 you can use<br \/>\nSYSTEM(NAME,args&#8230;): START; instead of BIND_ARGS_TO_SYSTEM<\/p>\n<p>example:<\/p>\n<p>SYSTEM(SET_POWER,#f:POWER,#s:POWER): START;<\/p>\n<p>SEND_LINK(1,#f);<\/p>\n<p>SEND_LINK(2,#s);<\/p>\n<p>END_SYSTEM;<\/p>\n<p>&#8220;**&#8221; instead of &#8220;POW(val,pow);&#8221;<br \/>\n&#8220;%&#8221; operator<\/p>\n<p>Since 0.0.6, in output functions you can use literals, just like that:<\/p>\n<p>PRINT(~Hello World);<\/p>\n<p>>> Hello World<\/p>\n<p>or, with variable:<\/p>\n<p>MAKE_VAR(INT,$test,150);<\/p>\n<p>PRINT(~counter: ,$test);<\/p>\n<p>>> counter: 150<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Safe scripting language for Create automation, instead of redstone.<\/p>\n","protected":false},"featured_media":49454,"template":"","meta":{"_minecraft_slug":"create-logic","_minecraft_project_id":"2hRnqCw1","_minecraft_author":"ggg3698","_minecraft_license":"MIT","_minecraft_downloads":161,"_minecraft_follows":3,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"create-logic.zip","_minecraft_size_bytes":616947,"_minecraft_version_count":9,"_minecraft_updated_at":"2026-05-16T14:40:16.178383Z","_minecraft_date_created":"2026-04-30T20:35:36.310688Z","_minecraft_date_modified":"2026-05-11T09:18:09.370538Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/create-logic","_minecraft_icon_attachment_id":49454,"_minecraft_imported_at":"2026-06-02T13:39:04+00:00","_minecraft_import_hash":"6d7e8954911fde0c47d578f77e4ed649","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[89,158,123],"mod_loader":[160],"minecraft_version":[37],"class_list":["post-49453","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-game-mechanics","mod_category-neoforge","mod_category-technology","mod_loader-neoforge","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>Create: Logic - 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\/create-logic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create: Logic - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Safe scripting language for Create automation, instead of redstone.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/\",\"name\":\"Create: Logic - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp\",\"datePublished\":\"2026-06-02T13:39:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp\",\"width\":96,\"height\":78},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/create-logic\\\/#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\":\"Create: Logic\"}]},{\"@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":"Create: Logic - 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\/create-logic\/","og_locale":"en_US","og_type":"article","og_title":"Create: Logic - Minecraft","og_description":"Safe scripting language for Create automation, instead of redstone.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/","name":"Create: Logic - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp","datePublished":"2026-06-02T13:39:02+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/create-logic-icon-aa478e8cc541ca92d0ed1c6db5f53c62dbd908f9_96.webp","width":96,"height":78},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/create-logic\/#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":"Create: Logic"}]},{"@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\/49453","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\/49454"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=49453"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=49453"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=49453"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=49453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}