{"id":128982,"date":"2026-06-07T17:19:41","date_gmt":"2026-06-07T14:19:41","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/"},"modified":"2026-06-07T17:19:41","modified_gmt":"2026-06-07T14:19:41","slug":"randomjs","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/","title":{"rendered":"RandomJS"},"content":{"rendered":"<p>Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks. (More features coming soon)<\/p>\n<p>## Currently added kinds:<\/p>\n<p>&#8211; Determination of the bottom block<br \/>\n&#8211; Determination of whether the immediate neighboring faces are complete or not<\/p>\n<p>## The full list of methods is below:<\/p>\n<p>&#8211; customSurviveRule( Json ) (use json to customize the survival rule)<br \/>\n&#8211; surviveType( String ) (select a preset rule for surviving blocks, see below for details)<br \/>\n&#8211; catchAllDirection( Boolean ) (enable full face all match mode)<\/p>\n<p>##  Optional json statement:<\/p>\n<p>&#8211; &#8220;setFaceSturdy&#8221; : String[]<br \/>\n  &#8211; (set a list of directions, make the blocks detect if the neighboring faces of the directions in the list are all faces, if any direction meets the condition, all matches need to enable all-face-match mode)<br \/>\n  &#8211; (optional values: &#8220;up&#8221; &#8220;down&#8221; &#8220;east&#8221; &#8220;west&#8221; &#8220;south&#8221; &#8220;north&#8221;)<br \/>\n&#8211; &#8220;setBelowBlock&#8221; : String[]<br \/>\n  &#8211; (set a list of blocks so that blocks must be placed on the blocks in the list)<br \/>\n  &#8211; (optional: full block id, e.g. &#8220;minecraft:stone&#8221;, no way to match blockstate yet because it&#8217;s not done yet)<\/p>\n<p>## Future plans:<\/p>\n<p>&#8211; More survival rules with preset types<br \/>\n&#8211; Custom HUD<br \/>\n&#8211; Custom GUI<br \/>\n##  Usage examples:<\/p>\n<p>&#8220;`<br \/>\nStartupEvents.registry (&#8220;block&#8221;, e=> {<br \/>\n    e.create (&#8220;block_name&#8221;, &#8220;super_block&#8221;)<br \/>\n        .surviveType (&#8220;custom&#8221;)<br \/>\n        .customSurviveRule (<br \/>\n            {<br \/>\n                &#8220;setFaceSturdy&#8221; : [&#8220;up&#8221;, &#8220;down&#8221;],<br \/>\n                &#8220;setBelowBlock&#8221; : [&#8220;minecraft:stone&#8221;, &#8220;minecraft:oak_log&#8221;, &#8220;minecraft:campfire&#8221;]<br \/>\n            })<br \/>\n         .catchAllDirection (false)<br \/>\n})<br \/>\n&#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks.<\/p>\n","protected":false},"featured_media":128983,"template":"","meta":{"_minecraft_slug":"randomjs","_minecraft_project_id":"LQ4RxyeE","_minecraft_author":"skyraah","_minecraft_license":"MIT","_minecraft_downloads":278,"_minecraft_follows":3,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"randomjs.zip","_minecraft_size_bytes":11076,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T19:34:56.815294Z","_minecraft_date_created":"2024-01-01T00:10:41.053940Z","_minecraft_date_modified":"2023-12-27T17:02:32.410118Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/randomjs","_minecraft_icon_attachment_id":128983,"_minecraft_imported_at":"2026-06-07T14:19:42+00:00","_minecraft_import_hash":"4e66902320bb2b5f8bdb8b9372f166d8","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[104],"mod_loader":[106],"minecraft_version":[36,60,93,94],"class_list":["post-128982","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-forge","mod_loader-forge","minecraft_version-1-20-1","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>RandomJS - 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\/randomjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RandomJS - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/\",\"name\":\"RandomJS - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp\",\"datePublished\":\"2026-06-07T14:19:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/randomjs\\\/#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\":\"RandomJS\"}]},{\"@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":"RandomJS - 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\/randomjs\/","og_locale":"en_US","og_type":"article","og_title":"RandomJS - Minecraft","og_description":"Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/","name":"RandomJS - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp","datePublished":"2026-06-07T14:19:41+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/randomjs-icon-3ae0569a578b4c29debfb607b606432dbc005ab6_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/randomjs\/#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":"RandomJS"}]},{"@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\/128982","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\/128983"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=128982"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=128982"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=128982"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=128982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}