Minecraft is a surprisingly complex game. On the surface, it just looks like a big Lego simulator — but dig deep enough, and you can build sprawling rail systems, paint pictures, and even program in-game computers. Command blocks are one of those complex features. Powered by redstone, command blocks let you automate the world, control players, set server rules, and more. But unlike other items, you can't find command blocks out in the world, or in the full list of items. Instead, you'll need to spawn it into the game using cheats. Here's how to get a command block in Minecraft, using either Java or Bedrock edition. The method to get a command block is pretty much the same in both Java and Bedrock. 1. Firstly, make sure that your world or Realms server has cheats turned on, and that you're playing in Creative Mode. Turn on both Creative Mode and cheats. Mojang; William Antonelli/Insider2. Open the chat box by pressing T on your keyboard, or the right d-pad button on a controller. 3. In the chat box, type: /give [your username] minecraft:command_blockIn place of "[your username]," insert your Minecraft username. 4. The command block will appear in your inventory. While it's in your hand, you can place it down on any solid surface. You'll be given an infinite amount of command blocks. Mojang; William Antonelli/InsiderOnce you've placed your command block, you can set the block up with codes so it performs automatic tasks. These tasks include killing enemies as soon as they spawn, giving players items, and more. 1. Select the command block that you placed. 2. In the menu that opens, you'll have a few options. Use the first option to choose how often the command block should run: Impulse will run the command once and then stop, Repeat/Current will run the command indefinitely, and Chain will require any connected command block to run before it does. Quick tip: You can connect multiple command blocks together using redstone circuits. 3. The second option, Conditional or Unconditional, determines whether a connected command block needs to run successfully for this block to run. 4. The third option lets you choose whether the command block can run on its own — Always Active — or Needs Redstone to power it. 5. Finally, type your command into the text field. For example, if you want to kill every creeper in the area, you'll type: /kill @e[type=minecraft:creeper]You can find a list of common codes here. 6. When you're ready for the command block to start running, click Done. {"appState":{"pageLoadApiCallsStatus":true},"articleState":{"article":{"headers":{"creationTime":"2016-03-26T08:29:09+00:00","modifiedTime":"2022-01-14T20:34:06+00:00","timestamp":"2022-06-22T19:37:07+00:00"},"data":{"breadcrumbs":[{"name":"Home, Auto, & Hobbies","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33809"},"slug":"home-auto-hobbies","categoryId":33809},{"name":"Games","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33884"},"slug":"games","categoryId":33884},{"name":"Online Games","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33904"},"slug":"online-games","categoryId":33904},{"name":"Minecraft","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33906"},"slug":"minecraft","categoryId":33906}],"title":"How to Obtain, Program, and Activate a Command Block in Minecraft","strippedTitle":"how to obtain, program, and activate a command block in minecraft","slug":"how-to-obtain-program-and-activate-a-command-block-in-minecraft","canonicalUrl":"","seo":{"metaDescription":"Command blocks in Minecraft have world-bending abilities. Here's how to program and activate a command block.","noIndex":0,"noFollow":0},"content":"Command blocks are useful elements in Minecraft because they have world-bending abilities. You first need to obtain a command block, and then you must program and activate it to be useful to you in the game.\r\n<h2 id=\"tab1\" >Obtaining a command block</h2>\r\nCommand blocks, because of their world-bending abilities, cannot be found in Survival mode. In fact, they don’t even appear on the Block menu in Creative mode. To obtain a command block, you must follow these steps:\r\n\r\n<img src=\"https://sg.cdnki.com/how-to-use-command-block-in-minecraft---aHR0cHM6Ly93d3cuZHVtbWllcy5jb20vd3AtY29udGVudC91cGxvYWRzLzQ0OTI3MS5pbWFnZTAuanBn.webp\" alt=\"image0.jpg\" width=\"66\" height=\"66\" />\r\n<ol class=\"level-one\">\r\n \t<li>\r\n<p class=\"first-para\">Create a world that enables cheats.</p>\r\n<p class=\"child-para\">If you start your world in Creative mode, cheats are enabled by default. You can tell whether cheats are enabled by finding your world on the Select World page — the third row of text should contain the word <i>Cheats.</i></p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Clear out a space in the inventory.</p>\r\n<p class=\"child-para\">Preferably, at least one of the nine bottom inventory slots should be clear.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Open the chat menu.</p>\r\n<p class=\"child-para\">You do this by pressing the T key by default.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Type<span class=\"code\">/give <your username> command_block</span>.</p>\r\n<p class=\"child-para\">If you opened the Chat menu with the Open Command key (which is / by default) rather than the T key, the slash at the beginning is entered automatically.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Press Enter.</p>\r\n<p class=\"child-para\">The command block should appear in the inventory. If the bottom row of the inventory was already full, open the full inventory (press E by default) to find the command block.</p>\r\n</li>\r\n</ol>\r\nCongratulations — you now have your first command block!\r\n<h2 id=\"tab2\" >Programming and activating a command block</h2>\r\nYou can place the command block like you can place any normal block. By right-clicking on the block (or using a nondefault Use Item button), you open the Set Console Command for Block interface. You can enter a command in the Console Command box. You can access this interface only in Creative mode — if you’re playing on a server, you must have operator status as well.\r\n\r\n<img src=\"https://sg.cdnki.com/how-to-use-command-block-in-minecraft---aHR0cHM6Ly93d3cuZHVtbWllcy5jb20vd3AtY29udGVudC91cGxvYWRzLzQ0OTI3Mi5pbWFnZTEuanBn.webp\" alt=\"image1.jpg\" width=\"481\" height=\"400\" />\r\n\r\nMinecraft has many commands that you can enter in the chat interface, which can do various things, from teleporting the player to manipulating blocks. By entering one of these commands into a command block rather than the chat interface, you can execute the command automatically and remotely by powering the block.\r\n<p class=\"Remember\">A <i>command block</i> is a solid, nontransparent block, so when it’s powered a certain way, it activates everything around it. This can be useful for powering multiple command blocks easily, but it can also mess up the work of inexperienced designers.</p>\r\nThe simplest way to use a command block is to place a button, lever, or pressure plate on or near the block — this allows you to activate the command block whenever you want. Some players like to take many command blocks and hook them up to <a href=\"https://www.dummies.com/programming/programming-games/minecraft/10-minecraft-redstone-tricks-for-survival-mode/\" target=\"_blank\" rel=\"noopener\">redstone</a> circuits.","description":"Command blocks are useful elements in Minecraft because they have world-bending abilities. You first need to obtain a command block, and then you must program and activate it to be useful to you in the game.\r\n<h2 id=\"tab1\" >Obtaining a command block</h2>\r\nCommand blocks, because of their world-bending abilities, cannot be found in Survival mode. In fact, they don’t even appear on the Block menu in Creative mode. To obtain a command block, you must follow these steps:\r\n\r\n<img src=\"https://www.dummies.com/wp-content/uploads/449271.image0.jpg\" alt=\"image0.jpg\" width=\"66\" height=\"66\" />\r\n<ol class=\"level-one\">\r\n \t<li>\r\n<p class=\"first-para\">Create a world that enables cheats.</p>\r\n<p class=\"child-para\">If you start your world in Creative mode, cheats are enabled by default. You can tell whether cheats are enabled by finding your world on the Select World page — the third row of text should contain the word <i>Cheats.</i></p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Clear out a space in the inventory.</p>\r\n<p class=\"child-para\">Preferably, at least one of the nine bottom inventory slots should be clear.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Open the chat menu.</p>\r\n<p class=\"child-para\">You do this by pressing the T key by default.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Type<span class=\"code\">/give <your username> command_block</span>.</p>\r\n<p class=\"child-para\">If you opened the Chat menu with the Open Command key (which is / by default) rather than the T key, the slash at the beginning is entered automatically.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Press Enter.</p>\r\n<p class=\"child-para\">The command block should appear in the inventory. If the bottom row of the inventory was already full, open the full inventory (press E by default) to find the command block.</p>\r\n</li>\r\n</ol>\r\nCongratulations — you now have your first command block!\r\n<h2 id=\"tab2\" >Programming and activating a command block</h2>\r\nYou can place the command block like you can place any normal block. By right-clicking on the block (or using a nondefault Use Item button), you open the Set Console Command for Block interface. You can enter a command in the Console Command box. You can access this interface only in Creative mode — if you’re playing on a server, you must have operator status as well.\r\n\r\n<img src=\"https://www.dummies.com/wp-content/uploads/449272.image1.jpg\" alt=\"image1.jpg\" width=\"481\" height=\"400\" />\r\n\r\nMinecraft has many commands that you can enter in the chat interface, which can do various things, from teleporting the player to manipulating blocks. By entering one of these commands into a command block rather than the chat interface, you can execute the command automatically and remotely by powering the block.\r\n<p class=\"Remember\">A <i>command block</i> is a solid, nontransparent block, so when it’s powered a certain way, it activates everything around it. This can be useful for powering multiple command blocks easily, but it can also mess up the work of inexperienced designers.</p>\r\nThe simplest way to use a command block is to place a button, lever, or pressure plate on or near the block — this allows you to activate the command block whenever you want. Some players like to take many command blocks and hook them up to <a href=\"https://www.dummies.com/programming/programming-games/minecraft/10-minecraft-redstone-tricks-for-survival-mode/\" target=\"_blank\" rel=\"noopener\">redstone</a> circuits.","blurb":"","authors":[{"authorId":9275,"name":"Jacob Cordeiro","slug":"jacob-cordeiro","description":" <p><b>Jacob Cordeiro</b> has been playing Minecraft since the Alpha pre-release. He attends Stanford Online High School and is the author of <i>Minecraft For Dummies,</i> Portable Edition.</p>","_links":{"self":"https://dummies-api.dummies.com/v2/authors/9275"}}],"primaryCategoryTaxonomy":{"categoryId":33906,"title":"Minecraft","slug":"minecraft","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33906"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":null,"inThisArticle":[{"label":"Obtaining a command block","target":"#tab1"},{"label":"Programming and activating a command block","target":"#tab2"}],"relatedArticles":{"fromBook":[],"fromCategory":[{"articleId":210067,"title":"Creating a Customized Skin in Minecraft","slug":"creating-a-customized-skin-in-minecraft","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/210067"}},{"articleId":210066,"title":"How to Earn Experience Points & Level Up in Minecraft","slug":"how-to-earn-experience-points-and-level-up","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/210066"}},{"articleId":210065,"title":"How to Build a House in Minecraft","slug":"how-to-build-a-house-in-minecraft","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/210065"}},{"articleId":210062,"title":"Using the Minecraft Inventory and Crafting Grid","slug":"using-the-minecraft-inventory-and-crafting-grid","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/210062"}},{"articleId":210063,"title":"How to Make a Nether Portal in Minecraft","slug":"how-to-make-a-nether-portal-in-minecraft","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/210063"}}]},"hasRelatedBookFromSearch":true,"relatedBook":{"bookId":281779,"slug":"minecraft-modding-for-kids-for-dummies","isbn":"9781119050049","categoryList":["home-auto-hobbies","games","online-games","minecraft"],"amazon":{"default":"https://www.amazon.com/gp/product/1119050049/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119050049/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119050049-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119050049/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119050049/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/minecraft-modding-for-kids-for-dummies-cover-9781119050049-203x255.jpg","width":203,"height":255},"title":"Minecraft Modding For Kids For Dummies","testBankPinActivationLink":"https://testbanks.wiley.com","bookOutOfPrint":false,"authorsInfo":"\n <p><p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K-12 learning initiatives. <b><b data-author-id=\"9091\">Sarah Guthals</b>, PhD,</b> co-founded an ed-tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. Stephen Foster, PhD, is the CEO of ThoughtSTEM, a company that teaches computer science to kids across America. Lindsey Handley, PhD, is the COO of ThoughtSTEM and has hundreds of hours of experience as a classroom instructor for Minecraft-based science and computer science classes.</p>","authors":[{"authorId":9091,"name":"Sarah Guthals","slug":"sarah-guthals","description":" <p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K-12 learning initiatives. <b>Sarah Guthals, PhD,</b> co-founded an ed-tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. ","_links":{"self":"https://dummies-api.dummies.com/v2/authors/9091"}},{"authorId":9092,"name":"Stephen R. Foster","slug":"stephen-foster","description":"Stephen Foster, PhD, is the CEO of ThoughtSTEM, a company that teaches computer science to kids across America. ","_links":{"self":"https://dummies-api.dummies.com/v2/authors/9092"}},{"authorId":9093,"name":"Lindsey D. Handley","slug":"lindsey-handley","description":"Lindsey Handley, PhD, is the COO of ThoughtSTEM and has hundreds of hours of experience as a classroom instructor for Minecraft-based science and computer science classes.","_links":{"self":"https://dummies-api.dummies.com/v2/authors/9093"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/281779"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{"key":"cat","values":["home-auto-hobbies","games","online-games","minecraft"]},{"key":"isbn","values":[null]}]\" id=\"du-slot-62b36f63e3df8\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{"key":"cat","values":["home-auto-hobbies","games","online-games","minecraft"]},{"key":"isbn","values":[null]}]\" id=\"du-slot-62b36f63e4599\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":null,"sponsorEbookTitle":null,"sponsorEbookLink":null,"sponsorEbookImage":null},"primaryLearningPath":"Explore","lifeExpectancy":"One year","lifeExpectancySetFrom":"2021-09-27T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":147564},"articleLoadedStatus":"success"},"listState":{"list":{},"objectTitle":"","status":"initial","pageType":null,"objectId":null,"page":1,"sortField":"time","sortOrder":1,"categoriesIds":[],"articleTypes":[],"filterData":{},"filterDataLoadedStatus":"initial","pageSize":10},"adsState":{"pageScripts":{"headers":{"timestamp":"2022-07-22T12:59:03+00:00"},"adsId":0,"data":{"scripts":[{"pages":["all"],"location":"header","script":"<!--Optimizely Script-->\r\n<script src=\"https://cdn.optimizely.com/js/10563184655.js\"></script>","enabled":false},{"pages":["all"],"location":"header","script":"<!-- comScore Tag -->\r\n<script>var _comscore = _comscore || [];_comscore.push({ c1: \"2\", c2: \"15097263\" });(function() {var s = document.createElement(\"script\"), el = document.getElementsByTagName(\"script\")[0]; s.async = true;s.src = (document.location.protocol == \"https:\" ? \"https://sb\" : \"http://b\") + \".scorecardresearch.com/beacon.js\";el.parentNode.insertBefore(s, el);})();</script><noscript><img src=\"https://sb.scorecardresearch.com/p?c1=2&c2=15097263&cv=2.0&cj=1\" /></noscript>\r\n<!-- / comScore Tag -->","enabled":true},{"pages":["all"],"location":"footer","script":"<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->\r\n<script type='text/javascript'>\r\n(function(){var g=function(e,h,f,g){\r\nthis.get=function(a){for(var a=a+\"=\",c=document.cookie.split(\";\"),b=0,e=c.length;b<e;b++){for(var d=c[b];\" \"==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};\r\nthis.set=function(a,c){var b=\"\",b=new Date;b.setTime(b.getTime()+6048E5);b=\"; expires=\"+b.toGMTString();document.cookie=a+\"=\"+c+b+\"; path=/; \"};\r\nthis.check=function(){var a=this.get(f);if(a)a=a.split(\":\");else if(100!=e)\"v\"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(\":\"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case \"v\":return!1;case \"r\":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(\":\")),!c}return!0};\r\nthis.go=function(){if(this.check()){var a=document.createElement(\"script\");a.type=\"text/javascript\";a.src=g;document.body&&document.body.appendChild(a)}};\r\nthis.start=function(){var t=this;\"complete\"!==document.readyState?window.addEventListener?window.addEventListener(\"load\",function(){t.go()},!1):window.attachEvent&&window.attachEvent(\"onload\",function(){t.go()}):t.go()};};\r\ntry{(new g(100,\"r\",\"QSI_S_ZN_5o5yqpvMVjgDOuN\",\"https://zn5o5yqpvmvjgdoun-wiley.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_5o5yqpvMVjgDOuN\")).start()}catch(i){}})();\r\n</script><div id='ZN_5o5yqpvMVjgDOuN'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div>\r\n<!--END WEBSITE FEEDBACK SNIPPET-->","enabled":false},{"pages":["all"],"location":"header","script":"<!-- Hotjar Tracking Code for http://www.dummies.com -->\r\n<script>\r\n (function(h,o,t,j,a,r){\r\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:257151,hjsv:6};\r\n a=o.getElementsByTagName('head')[0];\r\n r=o.createElement('script');r.async=1;\r\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\r\n a.appendChild(r);\r\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\r\n</script>","enabled":false},{"pages":["article"],"location":"header","script":"<!-- //Connect Container: dummies --> <script src=\"//get.s-onetag.com/bffe21a1-6bb8-4928-9449-7beadb468dae/tag.min.js\" async defer></script>","enabled":true},{"pages":["homepage"],"location":"header","script":"<meta name=\"facebook-domain-verification\" content=\"irk8y0irxf718trg3uwwuexg6xpva0\" />","enabled":true},{"pages":["homepage","article","category","search"],"location":"footer","script":"<!-- Facebook Pixel Code -->\r\n<noscript>\r\n<img height=\"1\" width=\"1\" src=\"https://www.facebook.com/tr?id=256338321977984&ev=PageView&noscript=1\"/>\r\n</noscript>\r\n<!-- End Facebook Pixel Code -->","enabled":true}]}},"pageScriptsLoadedStatus":"success"},"navigationState":{"navigationCollections":[{"collectionId":287568,"title":"BYOB (Be Your Own Boss)","hasSubCategories":false,"url":"/collection/for-the-entry-level-entrepreneur-287568"},{"collectionId":293237,"title":"Be a Rad Dad","hasSubCategories":false,"url":"/collection/be-the-best-dad-293237"},{"collectionId":294090,"title":"Contemplating the Cosmos","hasSubCategories":false,"url":"/collection/theres-something-about-space-294090"},{"collectionId":287563,"title":"For Those Seeking Peace of Mind","hasSubCategories":false,"url":"/collection/for-those-seeking-peace-of-mind-287563"},{"collectionId":287570,"title":"For the Aspiring Aficionado","hasSubCategories":false,"url":"/collection/for-the-bougielicious-287570"},{"collectionId":291903,"title":"For the Budding Cannabis Enthusiast","hasSubCategories":false,"url":"/collection/for-the-budding-cannabis-enthusiast-291903"},{"collectionId":291934,"title":"For the Exam-Season Crammer","hasSubCategories":false,"url":"/collection/for-the-exam-season-crammer-291934"},{"collectionId":287569,"title":"For the Hopeless Romantic","hasSubCategories":false,"url":"/collection/for-the-hopeless-romantic-287569"},{"collectionId":287567,"title":"For the Unabashed Hippie","hasSubCategories":false,"url":"/collection/for-the-unabashed-hippie-287567"},{"collectionId":292186,"title":"Just DIY It","hasSubCategories":false,"url":"/collection/just-diy-it-292186"}],"navigationCollectionsLoadedStatus":"success","navigationCategories":{"books":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/books/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/books/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/books/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/books/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/books/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/books/level-0-category-0"}},"articles":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/articles/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/articles/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/articles/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/articles/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/articles/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/articles/level-0-category-0"}}},"navigationCategoriesLoadedStatus":"success"},"searchState":{"searchList":[],"searchStatus":"initial","relatedArticlesList":[],"relatedArticlesStatus":"initial"},"routeState":{"name":"Article4","path":"/article/home-auto-hobbies/games/online-games/minecraft/how-to-obtain-program-and-activate-a-command-block-in-minecraft-147564/","hash":"","query":{},"params":{"category1":"home-auto-hobbies","category2":"games","category3":"online-games","category4":"minecraft","article":"how-to-obtain-program-and-activate-a-command-block-in-minecraft-147564"},"fullPath":"/article/home-auto-hobbies/games/online-games/minecraft/how-to-obtain-program-and-activate-a-command-block-in-minecraft-147564/","meta":{"routeType":"article","breadcrumbInfo":{"suffix":"Articles","baseRoute":"/category/articles"},"prerenderWithAsyncData":true},"from":{"name":null,"path":"/","hash":"","query":{},"params":{},"fullPath":"/","meta":{}}},"dropsState":{"submitEmailResponse":false,"status":"initial"},"sfmcState":{"newsletterSignupStatus":"initial"}}
Programming and activating a command blockYou can place the command block like you can place any normal block. By right-clicking on the block (or using a nondefault Use Item button), you open the Set Console Command for Block interface. You can enter a command in the Console Command box. You can access this interface only in Creative mode — if you’re playing on a server, you must have operator status as well.Minecraft has many commands that you can enter in the chat interface, which can do various things, from teleporting the player to manipulating blocks. By entering one of these commands into a command block rather than the chat interface, you can execute the command automatically and remotely by powering the block. A command block is a solid, nontransparent block, so when it’s powered a certain way, it activates everything around it. This can be useful for powering multiple command blocks easily, but it can also mess up the work of inexperienced designers. The simplest way to use a command block is to place a button, lever, or pressure plate on or near the block — this allows you to activate the command block whenever you want. Some players like to take many command blocks and hook them up to redstone circuits. |