{"id":5140,"date":"2017-12-26T06:53:13","date_gmt":"2017-12-25T21:53:13","guid":{"rendered":"http:\/\/stuffy.dip.jp\/wordpress\/?p=5140"},"modified":"2017-12-26T06:53:13","modified_gmt":"2017-12-25T21:53:13","slug":"stairs-with-falling-prevention-fence-2","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/wordpress\/?p=5140","title":{"rendered":"\u30de\u30a4\u30af\u30e9\u30fb\u8ee2\u843d\u9632\u6b62\u67f5\u4ed8\u304d\u968e\u6bb5 Ver.2"},"content":{"rendered":"<p>\u524d\u56de\u304b\u3089\u306e\u6539\u826f\u70b9\u306f\u8e0a\u308a\u5834\u3092\u8a2d\u3051\u3066\u3001\u9ad8\u3055\u3092\u95a2\u6570\u5316\u3057\u305f\u6240\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/12\/2017-12-24-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5141\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/12\/2017-12-24-1.png\" alt=\"\" width=\"856\" height=\"512\" \/><\/a><\/p>\n<p>\u8e0a\u308a\u5834\u4ed8\u8fd1\u306e\u30b3\u30fc\u30c9\u304c\u3054\u3061\u3083\u3054\u3061\u3083\u3057\u3066\u3066\u6c5a\u3044\u3067\u3059\u3002<\/p>\n<pre><span style=\"font-size: 9pt;\">from mcpi.minecraft import Minecraft\nfrom mcpi.block import *\ndef loop3(height):\n    mc = Minecraft.create()\n    pos = mc.player.getTilePos()\n\n    for i in range(height):\n# +x \u65b9\u5411\u306e\u968e\u6bb5\u3068\u8ee2\u843d\u9632\u6b62\u67f5\n        mc.setBlock(pos.x+i+1,pos.y+i,pos.z,DIAMOND_BLOCK)\n        mc.setBlock(pos.x+i+1,pos.y+i+1,pos.z-1,DIAMOND_BLOCK)\n    for i in range(1,height):\n        mc.setBlock(pos.x+i+1,pos.y+i+1,pos.z+1,DIAMOND_BLOCK)\n# -x \u65b9\u5411\u306e\u968e\u6bb5\u3068\u8ee2\u843d\u9632\u6b62\u67f5\n        mc.setBlock(pos.x-i+height,pos.y+i+height-1,pos.z+1,DIAMOND_BLOCK)\n        mc.setBlock(pos.x-i+height,pos.y+i+height,pos.z+2,DIAMOND_BLOCK)\n# -x \u65b9\u5411\u306e\u5185\u5074\u306e\u8ee2\u843d\u9632\u6b62\u67f5\n    for i in range(height-2):\n        mc.setBlock(pos.x-i+height-2,pos.y+i+height+2,pos.z,DIAMOND_BLOCK)\n# \u30eb\u30fc\u30d7\u3067\u3067\u304d\u305f\u4e0d\u8981\u306a\u30d6\u30ed\u30c3\u30af\u524a\u9664        \n    mc.setBlock(pos.x+height,pos.y+height,pos.z+1,AIR)    \n# z \u8e0a\u308a\u5834\u306e\u8ee2\u843d\u9632\u6b62\u67f5\n    mc.setBlock(pos.x+height+1,pos.y+height,pos.z-1,DIAMOND_BLOCK)\n    mc.setBlock(pos.x+height+1,pos.y+height,pos.z+2,DIAMOND_BLOCK)\n# \u8e0a\u308a\u5834\u306e\u5e8a\u3068z \u65b9\u5411\u306e\u8ee2\u843d\u9632\u6b62\u67f5\n    for i in range(4):\n        mc.setBlock(pos.x+height+2,pos.y+height,pos.z+i-1,DIAMOND_BLOCK)\n        mc.setBlock(pos.x+height+1,pos.y+height-1,pos.z+i-1,DIAMOND_BLOCK)\n# \uff12\u968e\u306e\u8e0a\u308a\u5834\u3068z \u65b9\u5411\u306e\u8ee2\u843d\u9632\u6b62\u67f5\n    for i in range(4):\n        mc.setBlock(pos.x-2,pos.y+height*2,pos.z+i-1,DIAMOND_BLOCK)\n        mc.setBlock(pos.x-1,pos.y+height*2-1,pos.z+i-1,DIAMOND_BLOCK)\n        mc.setBlock(pos.x,pos.y+height*2-1,pos.z+i-1,DIAMOND_BLOCK)\n# \uff12\u968e\u306e\u8e0a\u308a\u5834\u3068\u8ee2\u843d\u9632\u6b62\u67f5\n    mc.setBlock(pos.x-1,pos.y+height*2,pos.z-1,DIAMOND_BLOCK)\n    mc.setBlock(pos.x,pos.y+height*2,pos.z-1,DIAMOND_BLOCK)\n    mc.setBlock(pos.x-1,pos.y+height*2,pos.z+2,DIAMOND_BLOCK)\n    mc.setBlock(pos.x,pos.y+height*2,pos.z+2,DIAMOND_BLOCK)\n    mc.setBlock(pos.x+1,pos.y+height*2,pos.z+2,DIAMOND_BLOCK)\n\n# \u95a2\u6570\u5316\u3057\u305f\u5f15\u6570\u4ed8\u304d\u306e\u968e\u6bb5\u3092\u4f5c\u6210\nloop3(10)\n\n<\/span><\/pre>\n<p>\u9700\u8981\u304c\u3042\u308b\u304b\u3068\u8a00\u308f\u308c\u308c\u3070\u3001\u7591\u554f\uff1f<\/p>\n<p>\u8a02\u6b63\uff09\u95a2\u6570\u5b9a\u7fa9\u306e\u4f4d\u7f6e\u3092\u6b63\u3057\u3044\u5834\u6240\u306b\u79fb\u3057\u307e\u3057\u305f\u3002    \t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u304b\u3089\u306e\u6539\u826f\u70b9\u306f\u8e0a\u308a\u5834\u3092\u8a2d\u3051\u3066\u3001\u9ad8\u3055\u3092\u95a2\u6570\u5316\u3057\u305f\u6240\u3067\u3059\u3002 \u8e0a\u308a\u5834\u4ed8\u8fd1\u306e\u30b3\u30fc\u30c9\u304c\u3054\u3061\u3083\u3054\u3061\u3083\u3057\u3066\u3066\u6c5a\u3044\u3067\u3059\u3002 from mcpi.minecraft import Minecraft from mcpi.block im &hellip; <a href=\"https:\/\/www.stuffy.site\/wordpress\/?p=5140\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30de\u30a4\u30af\u30e9\u30fb\u8ee2\u843d\u9632\u6b62\u67f5\u4ed8\u304d\u968e\u6bb5 Ver.2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,98,5],"tags":[],"class_list":["post-5140","post","type-post","status-publish","format-standard","hentry","category-minecraft","category-python","category-software"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5140"}],"version-history":[{"count":0,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}