{"id":2373,"date":"2017-06-21T01:01:21","date_gmt":"2017-06-20T16:01:21","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=2373"},"modified":"2017-06-21T01:01:21","modified_gmt":"2017-06-20T16:01:21","slug":"minecraft_scratch_success","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2017\/06\/minecraft_scratch_success\/","title":{"rendered":"\u30de\u30a4\u30af\u30e9\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\uff08Scratch\u6210\u529f\u7de8\uff09"},"content":{"rendered":"<p>Scrach2.0\u3068\u30de\u30a4\u30af\u30e9\u304c\u9023\u643a\u3067\u304d\u305f\u306e\u3067\u30011.4\u3067\u3082\u518d\u6311\u6226\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001Python3\u7cfb\u3067\u6311\u6226\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u8272\u3005\u3068\u3084\u3084\u3053\u3057\u3044\u8a71\u306b\u306a\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u3002\u3067\u3082\u4eca\u56de\u306f\u3001\u305d\u306e\u3084\u3084\u3053\u3057\u3044\u554f\u984c\u3092\u89e3\u6c7a\u3057\u305f\u306e\u3067\u3001\u8aac\u660e\u3057\u306a\u304c\u3089\u9032\u3081\u3066\u3044\u3053\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001\u6b21\u306e\u30da\u30fc\u30b8\u304b\u30891.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p><a href=\"https:\/\/scratch.mit.edu\/scratch_1.4\/\">https:\/\/scratch.mit.edu\/scratch_1.4\/<br \/>\n<\/a><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2337\" src=\"\/blog\/wp-content\/uploads\/2017\/06\/mc7.png\" alt=\"\" width=\"955\" height=\"567\" srcset=\"https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/mc7.png 955w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/mc7-300x178.png 300w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/mc7-768x456.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u8d77\u52d5\u3057\u3066\u6b21\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u958b\u3044\u3066\u307f\u308b\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_template.sb\">http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_template.sb<\/a><\/li>\n<li><a href=\"http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_sphere.sb\">http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_sphere.sb<\/a><\/li>\n<li><a href=\"http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_stagescanner.sb\">http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_stagescanner.sb<\/a><\/li>\n<\/ul>\n<p>\u300c\u9060\u9694\u30bb\u30f3\u30b5\u30fc\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070Scratch\u5074\u306e\u6e96\u5099\u306fOK\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3060\u3001Windows\u306e\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u304c\u4f55\u304b\u805e\u3044\u3066\u304f\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u7d9a\u3044\u3066Scratch2MCPI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p><a href=\"http:\/\/scratch2mcpi.github.io\/\">http:\/\/scratch2mcpi.github.io\/<\/a><\/p>\n<p>\u3053\u3053\u3067\u306fcurl\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3002\u304c\u3001Windows\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u624b\u52d5\u3067\u5165\u308c\u3066\u3044\u304f\u3002<\/p>\n<p>\u307e\u305a\u306fscratch2mcpi\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/scratch2mcpi\/scratch2mcpi\/archive\/master.zip\">https:\/\/github.com\/scratch2mcpi\/scratch2mcpi\/archive\/master.zip<\/a><\/p>\n<p>\u89e3\u51cd\u3057\u3066\u3067\u304d\u305fscratch2mcpi-master\u30d5\u30a9\u30eb\u30c0\u3092\u3001scratch2mcpi\u306b\u6539\u540d\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3001\u8272\u3005\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u81ea\u4f53\u306f\u3069\u3053\u306b\u3042\u3063\u3066\u3082OK\u3002\u305d\u3057\u3066\u3001\u30d5\u30a9\u30eb\u30c0\u306b\u306f\u8272\u3005\u5165\u3063\u3066\u3044\u308b\u304c\u3001\u5fc5\u8981\u306a\u306escratch2mcpi.py\u3060\u3051\u306a\u306e\u3067\u3001\u305d\u306e\u4ed6\u306f\u524a\u9664\u3057\u3061\u3083\u3046\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001Python3\u3067\u3082\u52d5\u304f\u3088\u3046\u306b\u3001scratch2mcpi.py\u306b\u4ee5\u4e0b\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u3002<\/p>\n<p>print _&#8221;\uff5e&#8221;\u3000\u2192\u3000print(&#8220;\uff5e&#8221;)<\/p>\n<p>\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u3092scratch2mcpi\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u30b3\u30d4\u30fc\u3002<\/p>\n<p>D:\\Users\\[\u30e6\u30fc\u30b6\u540d]\\AppData\\Roaming\\.minecraft\\mcpipy\\mcpi<\/p>\n<p>\u6b21\u306bMinecraft Graphics Turtle\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u6b21\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/scratch2mcpi\/minecraft-turtle\/archive\/master.zip\">https:\/\/github.com\/scratch2mcpi\/minecraft-turtle\/archive\/master.zip<\/a><\/p>\n<p>\u89e3\u51cd\u3057\u3066\u3067\u304d\u305fminecraft-turtle-master\u30d5\u30a9\u30eb\u30c0\u3092\u3001mcturtle\u306b\u6539\u540d\u3002<\/p>\n<p>mcturtle\u30d5\u30a9\u30eb\u30c0\u3092\u5148\u307b\u3069\u306escratch2mcpi\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u30b3\u30d4\u30fc\u3002<\/p>\n<p>Python3\u306b\u5bfe\u5fdc\u3055\u305b\u308b\u305f\u3081\u306b\u3001minecraftturtle.py\u306eprint\u6587\u3082\u540c\u3058\u304f\u4fee\u6b63\u3002<\/p>\n<p>\u6b21\u306bMinecraft Stuff\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u6b21\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/scratch2mcpi\/minecraft-stuff\/archive\/master.zip\">https:\/\/github.com\/scratch2mcpi\/minecraft-stuff\/archive\/master.zip<\/a><\/p>\n<p>\u89e3\u51cd\u3057\u3066\u3067\u304d\u305fminecraft-stuff-master\u30d5\u30a9\u30eb\u30c0\u3092\u3001mcstuff\u306b\u6539\u540d\u3002<\/p>\n<p>mcstuff\u30d5\u30a9\u30eb\u30c0\u3092\u540c\u3058\u304fscratch2mcpi\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u30b3\u30d4\u30fc\u3002<\/p>\n<p>\u6b21\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/pilliq\/scratchpy\/archive\/master.zip\">https:\/\/github.com\/pilliq\/scratchpy\/archive\/master.zip<\/a><\/p>\n<p>\u89e3\u51cd\u3057\u3066\u3067\u304d\u305fscratchpy-master\/scratch\u30d5\u30a9\u30eb\u30c0\u5185\u306escratch.py\u3092\u3001\u540c\u3058\u304fscratch2mcpi\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u30b3\u30d4\u30fc\u3002<\/p>\n<p>\u3055\u3066\u3001\u3053\u306escratch.py\u306b\u3082\u7d30\u5de5\u304c\u5fc5\u8981\u3002byte\u5217\u3068string\u578b\u306e\u6271\u3044\u304cPython2\u3068Python3\u3067\u7570\u306a\u308b\u305f\u3081\u3001\u8003\u3048\u306a\u304c\u3089\u4fee\u6b63\u3002<\/p>\n<p>\u4f8b\u5916\u306e\u30a8\u30e9\u30fc\u756a\u53f7\u3001\u6587\u5b57\u5217\u306a\u3069\u3082\u4ed5\u69d8\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u3067\u3001\u6700\u7d42\u7684\u306b\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\"\/blog\/wp-content\/uploads\/2017\/06\/scratch.py\">scratch.py<\/a><\/p>\n<p>\u8457\u4f5c\u6a29\u7684\u306b\u826f\u3044\u306e\u304b\uff1f\u30c0\u30e1\u306a\u3089\u9023\u7d61\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u3067\u306f\u3001Scratch1.4\u3068Minecraft\u3092scratch2mcpi.py\u3092\u4f7f\u3063\u3066\u9023\u643a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u3001<\/p>\n<p>&gt;scratch2mcpi.py<br \/>\nTraceback (most recent call last):<br \/>\nFile &#8220;D:\\scratch2mcpi\\scratch2mcpi.py&#8221;, line 8, in &lt;module&gt;<br \/>\nimport mcturtle.minecraftturtle as turtle<br \/>\nFile &#8220;D:\\scratch2mcpi\\mcturtle\\minecraftturtle.py&#8221;, line 5, in &lt;module&gt;<br \/>\nimport minecraft<br \/>\nModuleNotFoundError: No module named &#8216;minecraft&#8217;<\/p>\n<p>\u306f\u3044\u3002\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>mcturtle\u30d1\u30b1\u30fc\u30b8\u5185\u306eminecraftturtle.py\u304b\u3089\u3001\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u5185\u306eminecraft.py\u304c\u8aad\u307f\u8fbc\u3081\u306a\u3044\u3002<\/p>\n<p>\u306a\u305c\u3060\uff1f<\/p>\n<p>\u3059\u3093\u306a\u308a\u8ae6\u3081\u3066\u3001minecraftturtle.py\u306eimport\u90e8\u5206\u3092mcpi\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<p>import mcpi.minecraft as minecraft<br \/>\nimport mcpi.block as block<\/p>\n<p>\u3069\u3046\u3059\u308c\u3070\u30b9\u30de\u30fc\u30c8\u306b\u306a\u308b\u306e\u304b\uff1f\u8ab0\u304b\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3068\u306b\u304b\u304f\u3001\u518d\u5ea6\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u3001<\/p>\n<p>&gt;scratch2mcpi.py<br \/>\n=================<br \/>\nSratch2MCPI 2.0.1<br \/>\n=================<\/p>\n<p>Connected to Scratch<br \/>\nReceived: (&#8216;sensor-update&#8217;, {&#8216;blockTypeId&#8217;: 1, &#8216;mcpiX&#8217;: 10, &#8216;mcpiY&#8217;: 40, &#8216;mcpiZ&#8217;: 10})<\/p>\n<p>\u8d77\u52d5\u3057\u3066\u3044\u305fMinecraft\u3092\u898b\u308b\u3068\u3001\u4f55\u3084\u3089\u30d6\u30ed\u30c3\u30af\u304c\uff11\u3064\u7f6e\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2380\" src=\"\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1.png\" alt=\"\" width=\"1680\" height=\"1050\" srcset=\"https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1.png 1680w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1-300x188.png 300w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1-1024x640.png 1024w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1-768x480.png 768w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi1-1536x960.png 1536w\" sizes=\"auto, (max-width: 1680px) 100vw, 1680px\" \/><\/p>\n<p>\u3067\u306f\u3001Scratch1.4\u3067<a href=\"http:\/\/scratch2mcpi.github.io\/scratch_projects\/mcpi_sphere.sb\">mcpi_sphere.sb<\/a>\u3092\u958b\u3044\u3066\u3001\u7dd1\u65d7\u3092\u30af\u30ea\u30c3\u30af\uff01<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u305a\u3089\u305a\u3089\u3068\u6587\u5b57\u5217\u304c\u6d41\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u898b\u305f\u76ee\u306f\u4f55\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u3002\u3067\u3082\u4f55\u304b\u304c\u8d77\u304d\u3066\u3044\u308b\u306f\u305a\u3002<\/p>\n<p>\u3067\u306f\u3001\u3061\u3087\u3063\u3068\u4e0a\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2381\" src=\"\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi2.png\" alt=\"\" width=\"642\" height=\"512\" srcset=\"https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi2.png 642w, https:\/\/jikoman.sin-cos.com\/blog\/wp-content\/uploads\/2017\/06\/scratch2mcpi2-300x239.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/p>\n<p>\u7403\u304c\u51fa\u6765\u3066\u304d\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u9023\u643a\u304c\u78ba\u8a8d\u51fa\u6765\u305f\u3053\u3068\u3092\u559c\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u3057\u3066\u79c1\u306f\u5bdd\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scrach2.0\u3068\u30de\u30a4\u30af\u30e9\u304c\u9023\u643a\u3067\u304d\u305f\u306e\u3067\u30011.4\u3067\u3082\u518d\u6311\u6226\u3057\u3066\u307f\u308b\u3002 \u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001Python3\u7cfb\u3067\u6311\u6226\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u8272\u3005\u3068\u3084\u3084\u3053\u3057\u3044\u8a71\u306b\u306a\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u3002\u3067\u3082\u4eca\u56de\u306f\u3001\u305d\u306e\u3084\u3084\u3053\u3057\u3044\u554f\u984c\u3092\u89e3\u6c7a\u3057\u305f\u306e\u3067\u3001\u8aac\u660e\u3057\u306a\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[],"class_list":["post-2373","post","type-post","status-publish","format-standard","hentry","category-130"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/2373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=2373"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/2373\/revisions"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=2373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=2373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=2373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}