├── CONTRIBUTING.md ├── LICENCE.md ├── README.md ├── ar-SA ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── cover.png ├── crowdin.yml ├── de-DE ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── en ├── images │ ├── .keep │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── fr-FR ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── hi-IN ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── images ├── blockbeneath.gif ├── helloworld.gif ├── lava.png ├── mcpi-block-test.png ├── mcpi-flowers-grass.png ├── mcpi-flowers-sky.png ├── mcpi-flowers.png ├── mcpi-flying.png ├── mcpi-game.png ├── mcpi-idle.png ├── mcpi-install.png ├── mcpi-inventory.png ├── mcpi-setblock.png ├── mcpi-setblock2.png ├── mcpi-setblocks.png ├── mcpi-start.png ├── mcpi-tnt-blocks.png ├── mcpi-tnt-explode.png ├── mcpi-tnt.png ├── menu.png ├── minecraft-pi-banner.png └── minecraft-pi-shortcut.png ├── kn-IN ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── learn.md ├── meta.yml ├── mr-IN ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── nl-NL ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── solutions │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── overview.md ├── sk-SK ├── images │ ├── banner.png │ ├── blockbeneath.gif │ ├── helloworld.gif │ ├── lava.png │ ├── mcpi-block-test.png │ ├── mcpi-flowers-grass.png │ ├── mcpi-flowers-sky.png │ ├── mcpi-flowers.png │ ├── mcpi-flying.png │ ├── mcpi-game.png │ ├── mcpi-idle.png │ ├── mcpi-install.png │ ├── mcpi-inventory.png │ ├── mcpi-setblock.png │ ├── mcpi-setblock2.png │ ├── mcpi-setblocks.png │ ├── mcpi-start.png │ ├── mcpi-tnt-blocks.png │ ├── mcpi-tnt-explode.png │ ├── mcpi-tnt.png │ ├── menu.png │ ├── minecraft-pi-banner.png │ └── minecraft-pi-shortcut.png ├── meta.yml ├── resources │ └── .keep ├── step_1.md ├── step_2.md ├── step_3.md ├── step_4.md ├── step_5.md ├── step_6.md ├── step_7.md ├── step_8.md └── step_9.md ├── software.md └── worksheet.md /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | All contributions are assumed to be licensed under the same licence as the source, i.e. [CC BY-SA](http://creativecommons.org/licenses/by-sa/4.0/). This licence must remain in all derivatives of this work. 4 | 5 | ## Issues 6 | 7 | If you find a mistake, bug or other problem, please [open an issue](https://github.com/raspberrypilearning/minecraft-pi/issues) in this repository. 8 | 9 | ## Pull Requests 10 | 11 | If you fix a mistake, bug or problem or have something to contribute, please create a pull request for each modification. Please consider grouping modifications sensibly, i.e. don't bundle typo fixes in the same pull request as code changes, instead file them separately. 12 | 13 | Please note that sometimes things are done for pedagogical reasons so changes which make sense from a software engineering perspective (reducing duplication or making use of more advanced programming language features) may not be suitable to maintain the intended educational value. 14 | 15 | ## Derivatives 16 | 17 | The licence must remain in all derivatives of this work. 18 | 19 | ## Licence 20 | 21 | Unless otherwise specified, everything in this repository is covered by the following licence: 22 | 23 | [![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) 24 | 25 | ***Minecraft Pi*** by the [Raspberry Pi Foundation](http://www.raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International Licence](http://creativecommons.org/licenses/by-sa/4.0/). 26 | 27 | Based on a work at https://github.com/raspberrypilearning/getting-started-with-minecraft-pi 28 | -------------------------------------------------------------------------------- /LICENCE.md: -------------------------------------------------------------------------------- 1 | # Licence 2 | 3 | Unless otherwise specified, everything in this repository is covered by the following licence: 4 | 5 | [![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) 6 | 7 | ***Minecraft Pi*** by the [Raspberry Pi Foundation](http://www.raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International Licence](http://creativecommons.org/licenses/by-sa/4.0/). 8 | 9 | Based on a work at https://github.com/raspberrypilearning/getting-started-with-minecraft-pi 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Programming the Minecraft World 2 | 3 | ![](cover.png) 4 | 5 | Minecraft is a popular sandbox open world building game. A free version of Minecraft is available for the Raspberry Pi; it also comes with a programming interface. This means you can write commands and scripts in Python code to build things in the game automatically. It's a great way to learn Python! 6 | 7 | ![Minecraft Pi banner](images/minecraft-pi-banner.png) 8 | 9 | ## Requirements 10 | 11 | ### Hardware 12 | 13 | This resource requires no additional hardware besides a Raspberry Pi with a Raspbian SD card. 14 | 15 | ### Software 16 | 17 | Minecraft has been installed by default in Raspbian since September 2014. 18 | 19 | If you do not have it installed, or you need to test it works, see the [software installation](software.md) page. 20 | 21 | ## The worksheet 22 | 23 | - [The worksheet](worksheet.md) 24 | 25 | ## Licence 26 | 27 | Unless otherwise specified, everything in this repository is covered by the following licence: 28 | 29 | [![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) 30 | 31 | ***Minecraft Pi*** by the [Raspberry Pi Foundation](http://www.raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International Licence](http://creativecommons.org/licenses/by-sa/4.0/). 32 | 33 | Based on a work at https://github.com/raspberrypilearning/getting-started-with-minecraft-pi 34 | -------------------------------------------------------------------------------- /ar-SA/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/banner.png -------------------------------------------------------------------------------- /ar-SA/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/blockbeneath.gif -------------------------------------------------------------------------------- /ar-SA/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/helloworld.gif -------------------------------------------------------------------------------- /ar-SA/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/lava.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-block-test.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-flowers.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-flying.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-game.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-idle.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-install.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-inventory.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-setblock.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-start.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /ar-SA/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/mcpi-tnt.png -------------------------------------------------------------------------------- /ar-SA/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/menu.png -------------------------------------------------------------------------------- /ar-SA/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /ar-SA/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /ar-SA/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: الشروع في البداية مع ماينكرافت باي 3 | hero_image: images/banner.png 4 | description: تذوق لأول مرة برمجة عالم الماينكرافت 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: المقدمة 21 | - title: ما ستحتاج إليه 22 | completion: engaged 23 | - title: الشروع في البداية مع ماينكرافت باي 24 | - title: شغّل ماينكرافت 25 | - title: استخدم الواجهة البرمجية لبايثون 26 | - title: إسقاط الكتل بينما تمشي 27 | - title: اللّعب بكتل المتفجرات (التِّي أَنْ تِي) 28 | completion: internal 29 | - title: المرح مع الحمم المتدفقة 30 | - title: ما التالي؟ 31 | -------------------------------------------------------------------------------- /ar-SA/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/resources/.keep -------------------------------------------------------------------------------- /ar-SA/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/ar-SA/solutions/.keep -------------------------------------------------------------------------------- /ar-SA/step_1.md: -------------------------------------------------------------------------------- 1 | ## ما ستصنعه 2 | 3 | في هذا المورد ستستكشف العالم الإفتراضي لماينكرافت باي, الإصدار الخاصّ بماينكرافت المصنوع لرازبيري باي Raspberry Pi. 4 | 5 | ستتعلّم كيفيّة التحكم باللاعب المصنوع يدويا من الكتل و استعمال واجهة البايثون Python لتوجيه العالم حولك. 6 | 7 | ## ما ستتعلمه 8 | 9 | باتباعك لهذا المورد مع رازبيري باي Raspberry Pi الخاص بك ستتعلم: 10 | 11 | - كيف تصل إلى ماينكرافت باي و تخلق عالماً جديداً 12 | - كيف تستعمل بيئة بايثون Python البرمجية (ال IDLE) لتتصل بماينكرافت باي 13 | - كيف تستعمل الواجهة البرمجية لتطبيق بايثون الماينكرافتي (ال API) لنشر نص على علبة الدردشة, إيجاد إحداثيات اللاعب, نقل و إنشاء البُنيات 14 | - كيف تستخدم المتغيرات لتخزين وثائق التعريف ( ال IDs) لمختلف أنواع الكتل 15 | - تجريب وصع مختلف أنواع الكتل مع سمات خاصة 16 | 17 | هذا المورد يغطي عناصراً من السلاسل التالية من [ المنهج الرقمي لـرازبيري باي Raspberry Pi ](https://www.raspberrypi.org/curriculum/): 18 | 19 | - [استخدام البِنايات البرمجية القاعدية لخلق برامج بسيطة](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /ar-SA/step_2.md: -------------------------------------------------------------------------------- 1 | ## ما ستحتاج إليه 2 | 3 | ### البرمجيات 4 | 5 | #### تثبيت البرمجيات 6 | 7 | تم تثبيت ماينكرافت من المصنع على منظومة رازبيان Raspbian منذ سبتمبر 2014. 8 | 9 | ![أيقونة المكتب ماينكرافت باي Minecraft Pi](images/minecraft-pi-shortcut.png) 10 | 11 | إذا كنت تستخدم إصداراً أقدم من رازبيان Raspbian, افتح نافذة البوابة و اكتب الأوامر التالية (يجب أن تكون متصلاً بالأنترنت): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | أول ما ينتهي ذلك, ماينكرافت باي و مكتبة البايثون Python يجب أن تكونا مثبتتين. 19 | 20 | #### إختبار ماينكرافت 21 | 22 | لتشغيل ماينكرافت اضغط مرتين على أيقونة المكتب أو أدخل`ماينكرافت` من البوابة. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | عندما يتم تحميل ماينكرافت, اضغط على **إبدأ اللعبة**, ثم **خلق جديد**. ستلاحظ أن النافذة المحتوية منحازة قليلاً. هذا يعني لسحب النافذة بالجوار عليك بإمساك شريط العنوان خلف نافذة الماينكرافت. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | أنت الآن في لعبة في الماينكرافت! 31 | 32 | #### اختبر بايثون Python 33 | 34 | بما أن ماينكرافت شغالة, و العالم مخلوق, خذ تركيزك خارج اللعبة بالضغط على زر تبويب `Tab`, الذي سيحرر الفأرة. افتح بيئة التطوير المدمج و التعليم (ال IDLE) بايثون 3 Python على المكتب و حرّك النافذتين لتصبحا جنباً لجنب. 35 | 36 | يمكنك إما كتابة الأوامر مباشرةً على نافذة البايثون Python أو خلق ملف لتتمكن من حفظ شفرتك و تشغيلها مجدداً وقتاً لاحقاً. 37 | 38 | إذا أردت خلق ملف اذهب إلى `ملف> نافذة جديدة` و `ملف> حفظ`. ربما تريد حفظ هذا في الملف الرئيسي أو ملف مشروع جديد. 39 | 40 | إبدأ باستيراد مكتبة الماينكرافت, خلق اتصال مع اللعبة و اختبارها بعرض الرسالة " مرحباً يا عالم" على الشاشة: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("مرحباً يا عالم") 48 | ``` 49 | 50 | إذا كنت تدخل الأوامر مباشرةً على نافذة البايثون Python, اضغط على أدخل `Enter` بعد كل سطر. إذا كان ملفاً, احفظه بالضغط على `Ctrl + S` و شغله بالضغط على `F5`. عند اشتغال شفرتك, يفترض أن ترى رسالتك على الشاشة في اللعبة. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | إذا رأيت " مرحباً يا عالم" على نافذة الماينكرافت, فجيد يمكنك الإنتقال إلى الخطوة التالية. -------------------------------------------------------------------------------- /ar-SA/step_3.md: -------------------------------------------------------------------------------- 1 | ## الشروع في البداية مع ماينكرافت باي 2 | 3 | ماينكرافت هي صندوق رملٍ شعبيٍ و لعبة بناءٍ بعالمٍ مفتوحٍ. هناك نسخةٌ مجانيةٌ من ماينكرافت متاحةٌ على رازبيري باي, كما تأتي مع واجهةٍ برمجيةٍ. هذا يعني إمكانك كتابة الأوامر و النصوص بشفرة البايثون Python لبناء أشياءٍ في اللعبة آلياً. إنها لطريقة عظيمة لتعلم بايثون Python! 4 | 5 | ![راية ماينكرافت باي](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /ar-SA/step_4.md: -------------------------------------------------------------------------------- 1 | ## شغّل ماينكرافت 2 | 3 | لتشغيل ماينكرافت باي, افتحه من قائمة المكتب أو `ماينكرافت باي` في البوابة. 4 | 5 | ![](images/menu.png) 6 | 7 | عندما يتم تحميل ماينكرافت باي, اضغط على **ابدأ اللعبة**, متبوعة بـ**اخلق جديد**. ستلاحظ أن النافذة الحاوية مزاحةٌ شعرةً. ما يعني لسحب النافذة حولك عليك إمساك شريط العنوان خلف نافذة الماينكرافت. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | أنت الآن في جولةٍ من ماينكرافت! انطلق سر بالجوار, حطم أشياءً, و ابنِ أشياءً! 12 | 13 | استخدم الفأرة للنظر حواليك و استخدم الأقفال التالية على لوحة المفاتيح: 14 | 15 | | القفل | الحركة | 16 | |:-----------------:|:--------------------:| 17 | | W | الأمام | 18 | | A | اليسار | 19 | | S | الخلف | 20 | | D | اليمين | 21 | | E | الجرد | 22 | | الفراغ | القفز | 23 | | ضغطتان على الفراغ | التحليق/السقوط | 24 | | Esc | التوقف/ قائمة اللعبة | 25 | | تبويب | تحرير مؤشر الفأرة | 26 | 27 | يمكنك تعيين غرضٍ من سلة السحب السريع بعجلة الفأرة السحّابة (أو استخدم الأرقام على لوحة مفاتيحك), أو اضغط `E` و عيّن شيءً ما من الجرد. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | يمكنك أيضاً بضغظتين على قفل الفراغ الطويل أن تحلق في الهواء. ستتوقف عن التحليق عندما تطلق قفل الفراغ, و إذا ضغطته ضغطتين مرة أخرى ستسقط أرضاً. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | بالسيف في يدك, يمكنك الضغط على الكتل أمامك لإزالتها ( أو لتحفر). بكتلة في يدك, يمكنك استخدام ضغطة يمينٍ لوضع هذه الكتلة أمامك, أو ضغطة يسارٍ لإزالة كتلةٍ. -------------------------------------------------------------------------------- /ar-SA/step_5.md: -------------------------------------------------------------------------------- 1 | ## استخدم الواجهة البرمجية لبايثون 2 | 3 | بماينكرافت مشغلة, و العام مخلوق, خذ تركيزك خارج اللعبة بالضغط على زر `تبويب`, الذي سيحرر فأرتك. افتح بايثون 3 Python من قائمة التطبيقات و حرك النوافذ لتكون جنبا لجنب. 4 | 5 | يمكنك إما إدخال الأوامر مباشرة في نافذة البايثون Python أو خلق ملف بحيث يمكنك حفظ كودك و تنفيذه مجدداً لاحقاً. 6 | 7 | إذا أردت خلق ملف. اذهب إلى`ملف> نافذة جديدة` و`ملف> حفظ`. من المحتمل ستريد حفظ هذا في مجلدك الأم أو في مجلد مشروع جديد. 8 | 9 | ابدأ باستيراد مكتبة الماينكرافت, خالقا اتصالا باللعبة و مجراباً له بعرض الرسالة التالية "مرحباً عالم" على الشاشة: 10 | 11 | ```python 12 | من mcpi.minecraft استورد ماينكرافت 13 | 14 | mc = Minecraft.create() 15 | 16 | mc.postToChat("مرحبا عالم") 17 | ``` 18 | 19 | إذا كنت تدخل الأوامر مباشرةً على نافذة البايثون Python, اضغط على زر `أدخل` بعد كل سطر. إذا كان ملفاً, احفظ بالضغط على `Ctrl + S` و نفذ بالضغط على `F5`. عندما يشتغل كودك, يفترض أن ترى رسالتك على الشاشة في اللعبة. 20 | 21 | ![](images/helloworld.gif) 22 | 23 | ### جد موقعك 24 | 25 | لتجد موقعك, أدخل: 26 | 27 | ```python 28 | pos = mc.player.getPos() 29 | ``` 30 | 31 | `pos` الآن يحتوي موقعك, أدخل إلى كل جزء من تشكيلة الإحداثيات مع `pos.x`,`pos.y` و `pos.z`. 32 | 33 | بدلاً, هناك طريقة للحصول على الإحداثيات في متغيرات منفصلة و هي باستعمال تقنيات تفريغ بايثون Python: 34 | 35 | ```python 36 | x, y, z = mc.player.getPos() 37 | ``` 38 | 39 | الآن `x`,`y`, و `z` تحتوي على كل جزء من إحداثيات موقعك. `x` و`z` تمثل اتجاهات المشي (الأمام/الخلف و اليسار/اليمين) و `y` تمثل الأعلى/ الأسفل. 40 | 41 | انتبه أن `getPos()` ترجع إحداثيات اللاعب في ذلك الوقت, و إذا تحركت مكانك يتوجب عليك استدعاء الدالة مجددا أو استعمل الموقع المخزن. 42 | 43 | ### الإنتقال البعدي 44 | 45 | مثل إيجادك لإحداثياتك الحالية تستطيع تخصيص موقع معين لتنتقل بعديا إليه. 46 | 47 | ```python 48 | x, y, z = mc.player.getPos() 49 | mc.player.setPos(x, y+100, z) 50 | ``` 51 | 52 | هذا سينقل لاعبك إلى 100 فراغ في الهواء. هذا سيعني إنتقالك بعديا إلى وسط السماء و سقوطك حالها أرضا إلى حيثما كنت. 53 | 54 | جرب الإنتقال البعدي إلى مكان آخر ما! 55 | 56 | ### شكل كتلة 57 | 58 | يمكنك وضع كتلة واحدة في تشكيلة إحداثيات معطاة ب `mc.setBlock()`: 59 | 60 | ```python 61 | x, y, z = mc.player.getPos() 62 | mc.setBlock(x+1, y, z, 1) 63 | ``` 64 | 65 | الآن, يفترض أن تظهر كتلة حجر بجانب موقفك. إن لم تكن حالا أمامك فربما بجانبك أو خلفك. ارجع لنافذة الماينكرافت و استعمل الفأرة لتدور حولك حتى ترى كلتة رمادية أمامك مباشرة. 66 | 67 | ![](images/mcpi-setblock.png) 68 | 69 | العمدات الممرة إلى `مجموعة كتلة` هي `x`,`y`,`z` و `id`. ال `(x, y, z)` تشير إلى موقعك في العالم (خصصنا كتلة بعيدا من أين يقف اللاعب ب `x + 1`) و ال `id` تشير إلى طبيعة الكتلة المراد وضعها. `1` هي حجر. 70 | 71 | كتل أخرى يمكنك تجربتها: 72 | 73 | الهواء: 0 74 | العشب: 2 75 | التراب: 3 76 | 77 | 78 | الآن, مع الكتلة في نظرك, حاول تغييرها لشيء آخر ما: 79 | 80 | ```python 81 | mc.setBlock(x+1, y, z, 2) 82 | ``` 83 | 84 | يفترض رؤيتك لكتلة حجر رمادي تتغير أمام عينيك! 85 | 86 | ![](images/mcpi-setblock2.png) 87 | 88 | #### ثوابت الكتلة 89 | 90 | يمكنك استعمال كتل ثابتة كامنة لتشكل كتلك, إذا تعرف أسماءها. ستحتاج `استيراد` سطر أول آخر, رغماً. 91 | 92 | ```python 93 | من mcpi استورد كتلة 94 | ``` 95 | 96 | الآن يمكنك كتابة التالي لوضع كتلة: 97 | 98 | ```python 99 | mc.setBlock(x+3, y, z, block.STONE.id) 100 | ``` 101 | 102 | وثائق تعريف الكتل جد سهلة التخمين, فقط استعمل ALL CAPS, لكن هناك توجد أمثلة قليلة لتعودك طريقة تسميتها. 103 | 104 | WOOD_PLANKS 105 | WATER_STATIONARY 106 | GOLD_ORE 107 | GOLD_BLOCK 108 | DIAMOND_BLOCK 109 | NETHER_REACTOR_CORE 110 | 111 | 112 | ### الكتلة كمتغير 113 | 114 | إذا تعرف وثيقة تعريف كتلة, يمكن تكون صالحة لوضعها كمتغير. يمكنك استعمال الاسم أو رقم وثيقة التعريف الصحيح. 115 | 116 | ```python 117 | dirt = 3 118 | mc.setBlock(x, y, z, dirt) 119 | ``` 120 | 121 | أو 122 | 123 | ```python 124 | dirt = block.DIRT.id 125 | mc.setBlock(x, y, z, dirt) 126 | ``` 127 | 128 | ### كتل خاصة 129 | 130 | هناك بعض الكتل التي تملك خصائص فائقة,كالصوف الذي له إعداد فائق, يمكنك تحديد اللون. لوضع هذا استعمل الخيار الرابع في `setBlock`: 131 | 132 | ```python 133 | wool = 35 134 | mc.setBlock(x, y, z, wool, 1) 135 | ``` 136 | 137 | هنا الخيار الرابع`1` يضع لون الصوف في البرتقالي. بدون الخيار الرابع يوضع بالأصل (`0`) أي أبيض. بعض الألوان الأخرى: 138 | 139 | 2: الآجوري 140 | 3: السماوي 141 | 4: الأصفر 142 | 143 | 144 | جرب أرقاماً أخرى و شاهد الكتلة تتغير! 145 | 146 | الكتل الأخرى التي تمتلك إعدادات فائقة هي الخشب (`17`): البلوط, التنّوب, التامول, إلخ, العشب الطويل (`31`): شجيرة, العشب, السرخس, المشعل (`50`): تأشير شرق, غرب, شمال, جنوب, و أكثر. أنظر [مرجع واجة التطبيق البرمجية](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) لكامل التفاصيل. 147 | 148 | ### ضع عدة كتل 149 | 150 | كوضع كتلة واحدة ب`setBlock` يمكنك ملء حجم من الفضاء على مرة ب`setBlocks`: 151 | 152 | ```python 153 | stone = 1 154 | x, y, z = mc.player.getPos() 155 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, stone) 156 | ``` 157 | 158 | هذا سيملأ في 10x 10 x 10 مكعب من الحجر الصلب. 159 | 160 | ![](images/mcpi-setblocks.png) 161 | 162 | يمكنك خلق أحجام أكبر بدالة ال`setBlocks` لكن ربما تأخذ أطول لتتولد! -------------------------------------------------------------------------------- /ar-SA/step_6.md: -------------------------------------------------------------------------------- 1 | ## إسقاط الكتل عند المشي 2 | 3 | الآن تعرف كيف تسقط الكتل ، فلنستخدم موقعنا المتحرك لإسقاط الكتل عند مشيك. 4 | 5 | الكود التالي سيسقط زهرة خلفك أينما مشيت: 6 | 7 | ```python 8 | من mcpi.minecraft استورد Minecraft 9 | من time استورد sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower= 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | الآن تقدم للأمام لبرهة و استدر لرؤية زهور تركتها خلفك. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | نظرا لاستعمالنا لحلقة `while True` هذا سيعمل للأبد. لإيقافه، في نافذة بايثون Python اضغط على `Ctrl + C`. 26 | 27 | جرب الطيران في الهواء وشاهد زهورا تتركها في السماء: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | ماذا لو أردنا إسقاط الزهور فقط عند مشي اللاعب على العشب؟ يمكننا استخدام `getBlock` لمعرفة نوع الكتلة: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | يخبرك هذا بموقع الكتلة التي تقف *فيها* (سيكون هذا `0` - كتلة هوائية). نريد أن نعرف نوع الكتلة التي نقف *عليها*. لهذا نطرح 1 من قيمة `y` ونستخدم `getBlock ()` لتحديد نوع الكتلة الواقفين عليها: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | يخبرنا هذا بمعرف الكتلة الواقف عليها اللاعب. 48 | 49 | اختبر هذا بتشغيل حلقة لطباعة معرف الكتلة لكل ما تقف عليه حاليًا: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | يمكننا استخدام عبارة `if` لاختيار ما إذا كنا نزرع زهرة أم لا: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | ربما يمكننا بعد ذلك تحويل البلاط الذي نقف عليه إلى عشب إذا لم يكن عشبًا أصلاً: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | الآن يمكننا المشي للأمام وإذا مشينا على عشب ، سنترك زهرة خلفنا. إذا لم تكن الكتلة التالية عشباً ، ستتحول لعشب. عندما نستدير ونعود ، نترك الآن زهرة خلفنا. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /ar-SA/step_7.md: -------------------------------------------------------------------------------- 1 | ## اللّعب بكتل المتفجرات (التي ان تي) 2 | 3 | كتلة أخرى مثيرة للاهتمام هي التيانتي! لوضع كتلة تيانتي عادية استخدم: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | مع ذلك, كتلة التيانتي هذه حقاً مملة. حاول تطبيق `data` ك `1`: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | الآن استخدم سيفك و انقر بالأيسر على كتلة التيانتي: ستفعل و ستنفجر في غضون ثوان! 20 | 21 | حاول الآن صنع مكعب كبير من كتل التيانتي! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | الآن سترى مكعبًا كبيرًا مليئًا بكتل التيانتي. انطلق ونشط إحدى الكتل و اهرب بعيداً لمشاهدة العرض! سيكون عرض الرسومات بطيئًا جداً للعدد الكبير من الأشياء المتغيرة في آن. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /ar-SA/step_8.md: -------------------------------------------------------------------------------- 1 | ## المرح مع الحمم المتدفقة 2 | 3 | كتلة ممتع جداً اللّعب بها هي الحمم المتدفقة. 4 | 5 | ```python 6 | من mcpi.minecraft استورد Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | جد الكتلة التي وضعتها للتو ، و يفترض أن ترى الحمم تتدفق من الكتلة إلى الأرض. 18 | 19 | الجميل في الحمم هو أنها عندما تبرد تتحول إلى صخرة. انتقل لمكان آخر في عالمك وجرب هذا: 20 | 21 | ```python 22 | من mcpi.minecraft استورد Minecraft 23 | من time استورد sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | يمكنك تعديل خيار `sleep` للسماح بتدفق أكثر أو أقل من الحمم. 42 | 43 | ![الحمم](images/lava.png) -------------------------------------------------------------------------------- /ar-SA/step_9.md: -------------------------------------------------------------------------------- 1 | ## ما التالي؟ 2 | 3 | يمكنك القيام بالكثير الآن أنت تعرف طريقك حول عالم مينيكرافت Minecraft وكيفية استخدام واجهة بايثون Python. 4 | 5 | ### لعبة شبكية 6 | 7 | إذا قام عدة أشخاص بتوصيل العديد من رازبيري باي Raspberry Pis بشبكة محلية، يمكنهم الإنضمام إلى نفس عالم ماينكرافت Minecraft واللعب معًا. يمكن للاعبين رؤية بعضهم البعض في عالم ماينكرافت Minecraft. 8 | 9 | ### واجهة برمجة التطبيق API 10 | 11 | لمزيد من التوثيقات الأوسع حول الدوال و لائحة كاملة لمعرفات الكتل انظر مرجع واجهة برمجة التطبيق API على [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). 12 | 13 | *** 14 | تمت ترجمة هذا المشروع بواسطة متطوعين: 15 | 16 | بدر الدين 17 | علي حسين صالح 18 | 19 | بفضل المتطوعين ، يمكننا إعطاء الناس في جميع أنحاء العالم فرصة للتعلم بلغتهم الخاصة. يمكنك مساعدتنا في الوصول إلى المزيد من الأشخاص من خلال التطوع للترجمة - مزيد من المعلومات على [rpf.io/translate](https://rpf.io/translate). 20 | -------------------------------------------------------------------------------- /cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/cover.png -------------------------------------------------------------------------------- /crowdin.yml: -------------------------------------------------------------------------------- 1 | files: 2 | - source: /en/**/*.* 3 | translation: /%locale%/**/%original_file_name% 4 | -------------------------------------------------------------------------------- /de-DE/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/banner.png -------------------------------------------------------------------------------- /de-DE/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/blockbeneath.gif -------------------------------------------------------------------------------- /de-DE/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/helloworld.gif -------------------------------------------------------------------------------- /de-DE/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/lava.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-block-test.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-flowers.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-flying.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-game.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-idle.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-install.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-inventory.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-setblock.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-start.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /de-DE/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/mcpi-tnt.png -------------------------------------------------------------------------------- /de-DE/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/menu.png -------------------------------------------------------------------------------- /de-DE/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /de-DE/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /de-DE/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Erste Schritte mit Minecraft Pi 3 | hero_image: images/banner.png 4 | description: Hol dir deinen ersten Vorgeschmack auf die Programmierung der Welt von 5 | Minecraft 6 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 7 | theme: yellow 8 | duration: 2 9 | listed: true 10 | ingredient: false 11 | copyedit: true 12 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 13 | interests: games 14 | technologies: python 15 | site_areas: projects 16 | hardware: '' 17 | software: python 18 | version: 3 19 | last_tested: 2017-01-01 20 | steps: 21 | - title: Einleitung 22 | - title: Was du brauchen wirst 23 | completion: engaged 24 | - title: Erste Schritte mit Minecraft Pi 25 | - title: Minecraft starten 26 | - title: Benutze die Programmierschnittstelle von Python 27 | - title: Blöcke beim Gehen fallen lassen 28 | - title: Mit TNT-Blöcken spielen 29 | completion: internal 30 | - title: Spaß mit fließender Lava 31 | - title: Was kommt als Nächstes? 32 | -------------------------------------------------------------------------------- /de-DE/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/resources/.keep -------------------------------------------------------------------------------- /de-DE/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/de-DE/solutions/.keep -------------------------------------------------------------------------------- /de-DE/step_1.md: -------------------------------------------------------------------------------- 1 | ## Was du machen wirst 2 | 3 | In dieser Ressource erkundest du die virtuelle Welt von Minecraft Pi, der Sonderedition von Minecraft für Raspberry Pi. 4 | 5 | Du lernst, wie du den Spieler steuerst, manuell mit Blöcken baust und mithilfe der Python-Oberfläche die Welt um dich herum manipulierst. 6 | 7 | ## Was du lernen wirst 8 | 9 | Wenn du dieser Ressource mit deinem Raspberry Pi folgst, lernst du: 10 | 11 | - Wie man auf Minecraft Pi zugreift und eine neue Welt erstellt 12 | - Wie man die Python-Programmierumgebung IDLE zum Herstellen einer Verbindung mit Minecraft Pi nutzen kann 13 | - Das Minecraft Python-API, zu verwenden um Text im Chat-Fenster zu veröffentlichen, die Koordinaten des Spielers zu finden, zu teleportieren und Strukturen aufzubauen 14 | - Das Verwenden von Variablen zum Speichern von IDs für verschiedene Arten von Blöcken 15 | - Mit dem Platzieren verschiedener Arten von Blöcken mit speziellen Attributen, zu experimentieren 16 | 17 | Diese Ressource umfasst Elemente aus den folgenden Abschnitten des [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/): 18 | 19 | - [Verwendung elementarer Programmiersprachelemente zur Erstellung einfacher Programme](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /de-DE/step_2.md: -------------------------------------------------------------------------------- 1 | ## Was du brauchen wirst 2 | 3 | ### Software 4 | 5 | #### Softwareinstallation 6 | 7 | Minecraft ist seit September 2014 standardmäßig in Raspbian installiert. 8 | 9 | ![Minecraft Pi Desktop-Symbol](images/minecraft-pi-shortcut.png) 10 | 11 | Wenn du eine ältere Version von Raspbian verwendest, öffne ein Terminalfenster und gebe die folgenden Befehle ein (du musst hierfür online sein): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | Sobald dies abgeschlossen ist, sollten Minecraft Pi und die Python-Bibliothek installiert sein. 19 | 20 | #### Minecraft testen 21 | 22 | Um Minecraft auszuführen, doppelklicke auf das Desktop-Symbol oder gib `minecraft-pi` in das Terminal ein. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | Wenn Minecraft Pi geladen wurde, klicke auf **Start Game**, danach auf **Create new**. Du wirst feststellen, dass das enthaltene Fenster leicht versetzt ist. Dies bedeutet, dass du zum Ziehen des Fensters die Titelleiste hinter dem Minecraft-Fenster greifen musst. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | Du bist jetzt in einem Minecraft-Spiel! 31 | 32 | #### Python testen 33 | 34 | Wenn Minecraft läuft und die Welt erstellt ist, lenke deinen Fokus vom Spiel weg, indem du die Taste `Tab` drückst, wodurch der Mauszeiger frei wird. Öffne Python 3 (IDLE) auf dem Desktop und verschiebe die Fenster so, dass sie nebeneinander liegen. 35 | 36 | Du kannst entweder Befehle direkt in das Python-Fenster eingeben oder eine Datei erstellen, um deinen Code zu speichern und ein anderes Mal erneut auszuführen. 37 | 38 | Wenn du eine Datei erstellen möchtest, gehe zu `Datei > Neues Fenster` und `Datei > Speichern`. Du möchtest das wahrscheinlich in deinem Home-Ordner oder einem neuen Projektordner speichern. 39 | 40 | Importiere zunächst die Minecraft-Bibliothek, stelle eine Verbindung zum Spiel her und teste sie, indem du die Meldung "Hallo Welt" auf den Bildschirm schreibst: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hallo Welt") 48 | ``` 49 | 50 | Wenn du Befehle direkt in das Python-Fenster eingibst, drücke einfach nach jeder Zeile `Enter`. Wenn es sich um eine Datei handelt, speichere sie mit `Strg + S` und führe sie mit `F5` aus. Wenn dein Code ausgeführt wird, sollte deine Nachricht im Spiel auf dem Bildschirm angezeigt werden. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | Wenn du im Minecraft-Fenster "Hallo Welt" siehst, kannst du mit dem nächsten Schritt fortfahren. 55 | -------------------------------------------------------------------------------- /de-DE/step_3.md: -------------------------------------------------------------------------------- 1 | ## Erste Schritte mit Minecraft Pi 2 | 3 | Minecraft ist ein beliebtes Open-World-Sandkasten-Bauspiel. Für den Raspberry Pi ist eine kostenlose Version von Minecraft verfügbar. Es kommt auch mit einer Programmierschnittstelle. Dies bedeutet, dass du Befehle und Skripte in Python-Code schreiben kannst, um Dinge im Spiel automatisch zu bauen. Es ist eine großartige Möglichkeit, Python zu lernen! 4 | 5 | ![Minecraft Pi Banner](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /de-DE/step_4.md: -------------------------------------------------------------------------------- 1 | ## Minecraft starten 2 | 3 | Um Minecraft Pi auszuführen, öffne es über das Desktop-Menü oder gib `minecraft-pi` in das Terminal ein. 4 | 5 | ![](images/menu.png) 6 | 7 | Wenn Minecraft Pi geladen wurde, klicke auf **Start Game** (englisch für "Spiel starten"), und dann auf **Create new** (also "neue Erstellen"). Du wirst feststellen, dass das umgebende Fenster leicht versetzt ist. Das bedeutet, dass du zum Ziehen des Fensters die Titelleiste hinter dem Minecraft-Fenster greifen musst. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | Du bist jetzt in einem Minecraft-Spiel! Lauf herum, hacke Dinge und baue Dinge! 12 | 13 | Schaue dich mit der Maus um und verwende die folgenden Tasten auf der Tastatur: 14 | 15 | | Taste | Aktion | 16 | |:------------------:|:--------------------:| 17 | | W | Vorwärts | 18 | | A | Links | 19 | | S | Rückwärts | 20 | | D | Rechts | 21 | | E | Inventar | 22 | | Leertaste | Springen | 23 | | Doppelte Leertaste | Fliegen / Fallen | 24 | | Esc | Pause / Spielmenü | 25 | | Tab | Mauszeiger freigeben | 26 | 27 | Du kannst einen Gegenstand mit dem Mausrad aus der Schnellzugriffs-Leiste auswählen (oder die Zahlen auf deiner Tastatur verwenden) oder `E` drücken und etwas aus dem Inventar auswählen. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | Du kannst auch zweimal auf die Leertaste tippen, um in die Luft zu fliegen. Du hörst auf zu fliegen, wenn du die Leertaste loslässt und wenn du erneut zweimal darauf tippst, fällst du auf den Boden zurück. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | Mit dem Schwert in der Hand kannst du auf Blöcke vor dir klicken, um sie zu entfernen (oder zu graben). Mit einem Block in der Hand kannst du diesen Block mit der rechten Maustaste vor dir platzieren oder mit der linken Maustaste einen Block entfernen. -------------------------------------------------------------------------------- /de-DE/step_6.md: -------------------------------------------------------------------------------- 1 | ## Blöcke beim Gehen fallen lassen 2 | 3 | Jetzt weißt du, wie man Blöcke fallen lässt. Lass uns unsere sich ändernde Position verwenden, um Blöcke fallen zu lassen, wenn du gehst. 4 | 5 | Der folgende Code lässt eine Blume hinter dir fallen, wo immer du gehst: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | blume = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, blume) 18 | sleep(0.1) 19 | ``` 20 | 21 | Gehe jetzt eine Weile vorwärts und drehe dich um, um die Blumen zu sehen, die du zurückgelassen hast. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | Da wir eine `while True` (also "solange Wahr") Schleife verwendet haben, wird dies für immer weitergehen. Um es zu stoppen, drücke im Python-Fenster `Strg + C`. 26 | 27 | Versuche durch die Luft zu fliegen und sieh die Blumen, die du am Himmel hinterlässt: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | Was wäre, wenn wir nur Blumen fallen lassen wollten, wenn der Spieler auf Gras läuft? Wir können `getBlock` verwenden, um herauszufinden von welchem Typ ein Block ist: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # Spielerposition (x, y, z) 35 | dieser_block = mc.getBlock(x, y, z) # Block-ID 36 | print(dieser_block) 37 | ``` 38 | 39 | Das sagt dir die Stelle des Blocks *in* dem du gerade stehst (das wird `0` sein - ein Luftblock). Wir wollen wissen, *auf* welche Art von Block wir stehen. Dazu subtrahieren wir 1 vom Wert `y` und verwenden `getBlock()`, um zu bestimmen, auf welchem Blocktyp wir stehen: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # Spielerposition (x, y, z) 43 | block_drunter = mc.getBlock(x, y-1, z) # Block-ID 44 | print(block_drunter) 45 | ``` 46 | 47 | Dies sagt uns die ID des Blocks, auf dem der Spieler steht. 48 | 49 | Teste dies, indem du eine Schleife laufen lässt, um die Block-ID von allem zu drucken, auf dem du gerade stehst: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_drunter = mc.getBlock(x, y-1, z) 55 | print(block_drunter) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | Wir können eine `if` (also "falls") Anweisung verwenden, um zu entscheiden, ob wir eine Blume pflanzen oder nicht: 61 | 62 | ```python 63 | gras = 2 64 | blume = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # Spielerposition (x, y, z) 68 | block_drunter = mc.getBlock(x, y-1, z) # Block ID 69 | 70 | if block_drunter == gras: 71 | mc.setBlock(x, y, z, blume) 72 | sleep(0.1) 73 | ``` 74 | 75 | Vielleicht könnten wir als nächstes das Feld, auf der wir stehen, in Gras verwandeln, wenn es nicht schon Gras ist: 76 | 77 | ```python 78 | if block_drunter == gras: 79 | mc.setBlock(x, y, z, blume) 80 | else: 81 | mc.setBlock(x, y-1, z, gras) 82 | ``` 83 | 84 | Jetzt können wir vorwärts gehen und wenn wir auf Gras gehen, lassen wir eine Blume zurück. Wenn der nächste Block kein Gras ist, verwandelt er sich in Gras. Wenn wir uns umdrehen und zurückgehen, lassen wir jetzt eine Blume hinter uns. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /de-DE/step_7.md: -------------------------------------------------------------------------------- 1 | ## Mit TNT-Blöcken spielen 2 | 3 | Ein weiterer interessanter Block ist TNT! Um einen normalen TNT-Block zu platzieren, verwende: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | Dieser TNT-Block ist jedoch ziemlich langweilig. Versuche, `Daten` als `1` hinzuzufügen: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | Verwende jetzt dein Schwert und klicke mit der linken Maustaste auf den TNT-Block: Er wird aktiviert und explodiert in Sekundenschnelle! 20 | 21 | Versuche nun, einen großen Würfel aus TNT-Blöcken zu erstellen! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | Jetzt siehst du einen großen Würfel voller TNT-Blöcke. Geh hin und aktiviere einen der Blöcke und renne dann weg, um die Show zu sehen! Das Rendern der Grafiken wird sehr langsam sein, da sich so viele Dinge gleichzeitig ändern. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /de-DE/step_8.md: -------------------------------------------------------------------------------- 1 | ## Spaß mit fließender Lava 2 | 3 | Ein Block, mit dem es viel Spaß macht zu spielen, ist fließende Lava. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | Suche den Block, den du gerade platziert hast und du solltest sehen, wie Lava vom Block zum Boden fließt. 18 | 19 | Das Coole an Lava ist, dass sie beim Abkühlen zu Fels wird. Bewege dich an einen anderen Ort in deiner Welt und versuche Folgendes: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | wasser = 8 31 | luft = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, wasser) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, luft) 38 | 39 | ``` 40 | 41 | Du kannst die `sleep`-Parameter anpassen, damit mehr oder weniger Lava fließen kann. 42 | 43 | ![Lava](images/lava.png) -------------------------------------------------------------------------------- /de-DE/step_9.md: -------------------------------------------------------------------------------- 1 | ## Was kommt als Nächstes? 2 | 3 | Du kannst jetzt viel tun, da du dich jetzt in der Minecraft-Welt auskennst und weisst wie du die Python-Oberfläche verwendest. 4 | 5 | ### Vernetztes Spiel 6 | 7 | Wenn mehrere Personen Raspberry Pis mit einem lokalen Netzwerk verbinden, können sie derselben Minecraft-Welt beitreten und zusammen spielen. Spieler können sich in der Minecraft-Welt sehen. 8 | 9 | ### API-Referenz 10 | 11 | Eine ausführlichere Dokumentation der Funktionen und eine vollständige Liste der Block-IDs findest du in einer API-Referenz unter [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). 12 | 13 | 14 | *** 15 | Dieses Projekt wurde von freiwilligen Helfern übersetzt: 16 | 17 | Aaron Dewes 18 | 19 | Tassilo Scherrer 20 | 21 | Dank freiwilliger Helfer können wir Menschen auf der ganzen Welt die Möglichkeit geben, in ihrer eigenen Sprache zu lernen. Du kannst uns helfen, mehr Menschen zu erreichen, indem Du dich freiwillig zum Übersetzen meldest - weitere Informationen unter [rpf.io/translate](https://rpf.io/translate). -------------------------------------------------------------------------------- /en/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/.keep -------------------------------------------------------------------------------- /en/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/banner.png -------------------------------------------------------------------------------- /en/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/blockbeneath.gif -------------------------------------------------------------------------------- /en/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/helloworld.gif -------------------------------------------------------------------------------- /en/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/lava.png -------------------------------------------------------------------------------- /en/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-block-test.png -------------------------------------------------------------------------------- /en/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /en/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /en/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-flowers.png -------------------------------------------------------------------------------- /en/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-flying.png -------------------------------------------------------------------------------- /en/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-game.png -------------------------------------------------------------------------------- /en/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-idle.png -------------------------------------------------------------------------------- /en/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-install.png -------------------------------------------------------------------------------- /en/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-inventory.png -------------------------------------------------------------------------------- /en/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-setblock.png -------------------------------------------------------------------------------- /en/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /en/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /en/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-start.png -------------------------------------------------------------------------------- /en/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /en/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /en/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/mcpi-tnt.png -------------------------------------------------------------------------------- /en/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/menu.png -------------------------------------------------------------------------------- /en/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /en/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /en/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Getting Started with Minecraft Pi 3 | hero_image: images/banner.png 4 | description: Get your first taste of programming the world of Minecraft 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: false 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: Introduction 21 | - title: What you will need 22 | completion: engaged 23 | - title: Getting Started with Minecraft Pi 24 | - title: Run Minecraft 25 | - title: Use the Python programming interface 26 | - title: Dropping blocks as you walk 27 | - title: Playing with TNT blocks 28 | completion: internal 29 | - title: Fun with flowing lava. 30 | - title: What next? 31 | -------------------------------------------------------------------------------- /en/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/resources/.keep -------------------------------------------------------------------------------- /en/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/en/solutions/.keep -------------------------------------------------------------------------------- /en/step_1.md: -------------------------------------------------------------------------------- 1 | ## What you will make 2 | In this resource you will explore the virtual world of Minecraft Pi, the special edition of Minecraft made for Raspberry Pi. 3 | 4 | You will learn how to control the player, manually build with blocks and use the Python interface to manipulate the world around you. 5 | 6 | ## What you will learn 7 | By following this resource with your Raspberry Pi you will learn: 8 | 9 | - How to access Minecraft Pi and create a new world 10 | - How to use the Python programming environment IDLE to connect to Minecraft Pi 11 | - How to use the Minecraft Python API to post text to the chat window, find the player's coordinates, teleport and build structures 12 | - How to use variables to store IDs for different types of blocks 13 | - Experimenting with placing different types of blocks with special attributes 14 | 15 | This resource covers elements from the following strands of the [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/): 16 | 17 | - [Use basic programming constructs to create simple programs](https://www.raspberrypi.org/curriculum/programming/creator) 18 | 19 | -------------------------------------------------------------------------------- /en/step_2.md: -------------------------------------------------------------------------------- 1 | ## What you will need 2 | 3 | 4 | 5 | ### Software 6 | 7 | #### Software installation 8 | 9 | Minecraft has been installed by default in Raspbian since September 2014. 10 | 11 | ![Minecraft Pi desktop icon](images/minecraft-pi-shortcut.png) 12 | 13 | If you're using an older version of Raspbian, open a terminal window and type the following commands (you must be online): 14 | 15 | ```bash 16 | sudo apt-get update 17 | sudo apt-get install minecraft-pi 18 | ``` 19 | 20 | Once that finishes, Minecraft Pi and the Python library should be installed. 21 | 22 | #### Test Minecraft 23 | 24 | To run Minecraft double click the desktop icon or enter `minecraft-pi` in the terminal. 25 | 26 | ![](images/mcpi-start.png) 27 | 28 | When Minecraft Pi has loaded, click on **Start Game**, followed by **Create new**. You'll notice that the containing window is offset slightly. This means to drag the window around you have to grab the title bar behind the Minecraft window. 29 | 30 | ![](images/mcpi-game.png) 31 | 32 | You are now in a game of Minecraft! 33 | 34 | #### Test Python 35 | 36 | With Minecraft running, and the world created, bring your focus away from the game by pressing the `Tab` key, which will free your mouse. Open Python 3 (IDLE) on the Desktop and move the windows so they're side-by-side. 37 | 38 | You can either type commands directly in to the Python window or create a file so you can save your code and run it again another time. 39 | 40 | If you want create a file go to `File > New window` and `File > Save`. You'll probably want to save this in your home folder or a new project folder. 41 | 42 | Start by importing the Minecraft library, creating a connection to the game and testing it by posting the message "Hello world" to the screen: 43 | 44 | ```python 45 | from mcpi import minecraft 46 | 47 | mc = minecraft.Minecraft.create() 48 | 49 | mc.postToChat("Hello world") 50 | ``` 51 | 52 | If you're entering commands directly in to the Python window, just hit `Enter` after each line. If it's a file, save with `Ctrl + S` and run with `F5`. When your code runs, you should see your message on screen in the game. 53 | 54 | ![](images/mcpi-idle.png) 55 | 56 | If you see "Hello world" in the Minecraft window, you're good to proceed to the next step. 57 | -------------------------------------------------------------------------------- /en/step_3.md: -------------------------------------------------------------------------------- 1 | ## Getting Started with Minecraft Pi 2 | 3 | Minecraft is a popular sandbox open-world building game. A free version of Minecraft is available for the Raspberry Pi; it also comes with a programming interface. This means you can write commands and scripts in Python code to build things in the game automatically. It's a great way to learn Python! 4 | 5 | ![Minecraft Pi banner](images/minecraft-pi-banner.png) 6 | 7 | -------------------------------------------------------------------------------- /en/step_4.md: -------------------------------------------------------------------------------- 1 | ## Run Minecraft 2 | 3 | To run Minecraft Pi, open it from the desktop menu or type `minecraft-pi` in the terminal. 4 | 5 | ![](images/menu.png) 6 | 7 | When Minecraft Pi has loaded, click on **Start Game**, followed by **Create new**. You'll notice that the containing window is offset slightly. This means to drag the window around you have to grab the title bar behind the Minecraft window. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | You are now in a game of Minecraft! Go walk around, hack things, and build things! 12 | 13 | Use the mouse to look around and use the following keys on the keyboard: 14 | 15 | | Key | Action | 16 | | :---: | :-----: | 17 | | W | Forward | 18 | | A | Left | 19 | | S | Backward | 20 | | D | Right | 21 | | E | Inventory | 22 | | Space | Jump | 23 | | Double Space | Fly / Fall | 24 | | Esc | Pause / Game menu | 25 | | Tab | Release mouse cursor | 26 | 27 | You can select an item from the quick draw panel with the mouse's scroll wheel (or use the numbers on your keyboard), or press `E` and select something from the inventory. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | You can also double tap the space bar to fly into the air. You'll stop flying when you release the space bar, and if you double tap it again you'll fall back to the ground. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | With the sword in your hand, you can click on blocks in front of you to remove them (or to dig). With a block in your hand, you can use right click to place that block in front of you, or left click to remove a block. 36 | 37 | -------------------------------------------------------------------------------- /en/step_5.md: -------------------------------------------------------------------------------- 1 | ## Use the Python programming interface 2 | 3 | With Minecraft running, and the world created, bring your focus away from the game by pressing the `Tab` key, which will free your mouse. Open Python 3 from the application menu and move the windows so they're side-by-side. 4 | 5 | You can either type commands directly into the Python window or create a file so you can save your code and run it again another time. 6 | 7 | If you want create a file, go to `File > New window` and `File > Save`. You'll probably want to save this in your home folder or a new project folder. 8 | 9 | Start by importing the Minecraft library, creating a connection to the game and testing it by posting the message "Hello world" to the screen: 10 | 11 | ```python 12 | from mcpi.minecraft import Minecraft 13 | 14 | mc = Minecraft.create() 15 | 16 | mc.postToChat("Hello world") 17 | ``` 18 | 19 | If you're entering commands directly into the Python window, just hit `Enter` after each line. If it's a file, save with `Ctrl + S` and run with `F5`. When your code runs, you should see your message on screen in the game. 20 | 21 | ![](images/helloworld.gif) 22 | 23 | ### Find your location 24 | 25 | To find your location, type: 26 | 27 | ```python 28 | pos = mc.player.getPos() 29 | ``` 30 | 31 | `pos` now contains your location; access each part of the set of coordinates with `pos.x`, `pos.y` and `pos.z`. 32 | 33 | Alternatively, a nice way to get the coordinates into separate variables is to use Python's unpacking technique: 34 | 35 | ```python 36 | x, y, z = mc.player.getPos() 37 | ``` 38 | 39 | Now `x`, `y`, and `z` contain each part of your position coordinates. `x` and `z` are the walking directions (forward/back and left/right) and `y` is up/down. 40 | 41 | Note that `getPos()` returns the location of the player at the time, and if you move position you have to call the function again or use the stored location. 42 | 43 | ### Teleport 44 | 45 | As well as finding out your current location you can specify a particular location to teleport to. 46 | 47 | ```python 48 | x, y, z = mc.player.getPos() 49 | mc.player.setPos(x, y+100, z) 50 | ``` 51 | 52 | This will transport your player to 100 spaces in the air. This will mean you'll teleport to the middle of the sky and fall straight back down to where you started. 53 | 54 | Try teleporting to somewhere else! 55 | 56 | ### Set block 57 | 58 | You can place a single block at a given set of coordinates with `mc.setBlock()`: 59 | 60 | ```python 61 | x, y, z = mc.player.getPos() 62 | mc.setBlock(x+1, y, z, 1) 63 | ``` 64 | 65 | Now a stone block should appear beside where you're standing. If it's not immediately in front of you it may be beside or behind you. Return to the Minecraft window and use the mouse to spin around on the spot until you see a grey block directly in front of you. 66 | 67 | ![](images/mcpi-setblock.png) 68 | 69 | The arguments passed to `set block` are `x`, `y`, `z` and `id`. The `(x, y, z)` refers to the position in the world (we specified one block away from where the player is standing with `x + 1`) and the `id` refers to the type of block we'd like to place. `1` is stone. 70 | 71 | Other blocks you can try: 72 | 73 | ``` 74 | Air: 0 75 | Grass: 2 76 | Dirt: 3 77 | ``` 78 | 79 | Now with the block in sight, try changing it to something else: 80 | 81 | ```python 82 | mc.setBlock(x+1, y, z, 2) 83 | ``` 84 | 85 | You should see the grey stone block change in front of your eyes! 86 | 87 | ![](images/mcpi-setblock2.png) 88 | 89 | #### Block constants 90 | 91 | You can use a inbuilt block constants to set your blocks, if you know their names. You'll need another `import` line first though. 92 | 93 | ```python 94 | from mcpi import block 95 | ``` 96 | 97 | Now you can write the following to place a block: 98 | 99 | ```python 100 | mc.setBlock(x+3, y, z, block.STONE.id) 101 | ``` 102 | 103 | Block ids are pretty easy to guess, just use ALL CAPS, but here are a few examples to get you used to the way they are named. 104 | 105 | ``` 106 | WOOD_PLANKS 107 | WATER_STATIONARY 108 | GOLD_ORE 109 | GOLD_BLOCK 110 | DIAMOND_BLOCK 111 | NETHER_REACTOR_CORE 112 | ``` 113 | 114 | ### Block as variable 115 | 116 | If you know the id of a block it can be useful to set it as a variable. You can use the name or the integer id. 117 | 118 | ```python 119 | dirt = 3 120 | mc.setBlock(x, y, z, dirt) 121 | ``` 122 | 123 | or 124 | 125 | ```python 126 | dirt = block.DIRT.id 127 | mc.setBlock(x, y, z, dirt) 128 | ``` 129 | 130 | ### Special blocks 131 | 132 | There are some blocks which have extra properties, such as Wool which has an extra setting you can specify the colour. To set this use the optional fourth parameter in `setBlock`: 133 | 134 | ```python 135 | wool = 35 136 | mc.setBlock(x, y, z, wool, 1) 137 | ``` 138 | 139 | Here the fourth parameter `1` sets the wool colour to orange. Without the fourth parameter it is set to the default (`0`) which is white. Some more colours are: 140 | 141 | ``` 142 | 2: Magenta 143 | 3: Light Blue 144 | 4: Yellow 145 | ``` 146 | 147 | Try some more numbers and watch the block change! 148 | 149 | Other blocks which have extra properties are wood (`17`): oak, spruce, birch, etc; tall grass (`31`): shrub, grass, fern; torch (`50`): pointing east, west, north, south; and more. See the [API reference](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) for full details. 150 | 151 | ### Set multiple blocks 152 | 153 | As well as setting a single block with `setBlock` you can fill in a volume of space in one go with `setBlocks`: 154 | 155 | ```python 156 | stone = 1 157 | x, y, z = mc.player.getPos() 158 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, stone) 159 | ``` 160 | 161 | This will fill in a 10 x 10 x 10 cube of solid stone. 162 | 163 | ![](images/mcpi-setblocks.png) 164 | 165 | You can create bigger volumes with the `setBlocks` function but it may take longer to generate! 166 | 167 | -------------------------------------------------------------------------------- /en/step_6.md: -------------------------------------------------------------------------------- 1 | ## Dropping blocks as you walk 2 | 3 | Now you know how to drop blocks, let's use our moving location to drop blocks when you walk. 4 | 5 | The following code will drop a flower behind you wherever you walk: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | Now walk forward for a while and turn around to see the flowers you have left behind you. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | Since we used a `while True` loop this will go on forever. To stop it, hit `Ctrl + C` in the Python window. 26 | 27 | Try flying through the air and see the flowers you leave in the sky: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | What if we only wanted to drop flowers when the player walks on grass? We can use `getBlock` to find out what type a block is: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | This tells you the location of the block you're standing *in* (this will be `0` - an air block). We want to know what type of block we're standing *on*. For this we subtract 1 from the `y` value and use `getBlock()` to determine what type of block we're standing on: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | This tells us the ID of the block the player is standing on. 48 | 49 | Test this out by running a loop to print the block ID of whatever you're currently standing on: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | We can use an `if` statement to choose whether or not we plant a flower: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | Perhaps next we could turn the tile we're standing on into grass if it isn't grass already: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | Now we can walk forward and if we walk on grass, we'll leave a flower behind. If the next block is not grass, it turns into grass. When we turn around and walk back, we now leave a flower behind us. 85 | 86 | ![](images/mcpi-flowers-grass.png) 87 | 88 | -------------------------------------------------------------------------------- /en/step_7.md: -------------------------------------------------------------------------------- 1 | ## Playing with TNT blocks 2 | 3 | Another interesting block is TNT! To place a normal TNT block use: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | However, this TNT block is fairly boring. Try applying `data` as `1`: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | Now use your sword and left click the TNT block: it will be activated and will explode in a matter of seconds! 20 | 21 | Now try making a big cube of TNT blocks! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | Now you'll see a big cube full of TNT blocks. Go and activate one of the blocks and then run away to watch the show! It'll be really slow to render the graphics as so many things are changing at once. 31 | 32 | ![](images/mcpi-tnt-explode.png) 33 | 34 | -------------------------------------------------------------------------------- /en/step_8.md: -------------------------------------------------------------------------------- 1 | ## Fun with flowing lava. 2 | 3 | One block that's a lot of fun to play with is flowing lava. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | Find the block you've just placed, and you should see lava flowing from the block to the ground. 18 | 19 | The cool thing about lava is that when it cools down it becomes rock. Move to another location in your world and try this: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | You can adjust the `sleep` parameters to allow more or less lava to flow. 42 | 43 | ![lava](images/lava.png) 44 | 45 | -------------------------------------------------------------------------------- /en/step_9.md: -------------------------------------------------------------------------------- 1 | ## What next? 2 | 3 | There's plenty you can do now you know your way around the Minecraft world and how to use the Python interface. 4 | 5 | ### Networked game 6 | 7 | If multiple people connect Raspberry Pis to a local network, they can join the same Minecraft world and play together. Players can see each other in the Minecraft world. 8 | 9 | ### API reference 10 | 11 | For a more extensive documentation of functions and a full list of block IDs see an API reference at [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). 12 | 13 | -------------------------------------------------------------------------------- /fr-FR/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/banner.png -------------------------------------------------------------------------------- /fr-FR/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/blockbeneath.gif -------------------------------------------------------------------------------- /fr-FR/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/helloworld.gif -------------------------------------------------------------------------------- /fr-FR/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/lava.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-block-test.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-flowers.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-flying.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-game.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-idle.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-install.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-inventory.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-setblock.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-start.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /fr-FR/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/mcpi-tnt.png -------------------------------------------------------------------------------- /fr-FR/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/menu.png -------------------------------------------------------------------------------- /fr-FR/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /fr-FR/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /fr-FR/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Démarrer avec Minecraft Pi 3 | hero_image: images/banner.png 4 | description: Obtenir une première impression de la programmation du monde de Minecraft 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: Introduction 21 | - title: Ce dont tu auras besoin 22 | completion: engaged 23 | - title: Démarrer avec Minecraft Pi 24 | - title: Exécuter Minecraft 25 | - title: Utiliser l'interface de programmation Python 26 | - title: Laisser tomber des blocs en marchant 27 | - title: Jouer avec des blocs TNT 28 | completion: internal 29 | - title: S'amuser avec de la lave qui coule 30 | - title: Et ensuite ? 31 | -------------------------------------------------------------------------------- /fr-FR/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/resources/.keep -------------------------------------------------------------------------------- /fr-FR/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/fr-FR/solutions/.keep -------------------------------------------------------------------------------- /fr-FR/step_1.md: -------------------------------------------------------------------------------- 1 | ## Introduction 2 | 3 | Au cours de ce projet, tu vas explorer le monde virtuel de Minecraft Pi, l'édition spéciale de Minecraft développée pour le Raspberry Pi. 4 | 5 | Tu apprendras à contrôler le joueur, à construire manuellement avec des blocs et à utiliser l'interface Python pour manipuler le monde autour de toi. 6 | 7 | ## Ce que tu vas apprendre 8 | 9 | En suivant ce tutoriel avec ton Raspberry Pi, tu apprendras : 10 | 11 | - Comment accéder à Minecraft Pi et créer un nouveau monde 12 | - Comment utiliser l'environnement de programmation Python IDLE pour se connecter à Minecraft Pi 13 | - Comment utiliser Minecraft Python API pour écrire du texte sur la fenêtre de chat, trouver les coordonnées d'un joueur, se téléporter et construire des structures 14 | - Comment utiliser des variables pour stocker les identifiants de différents types de blocs 15 | - Expérimenter le placement de différents types de blocs avec des attributs spéciaux 16 | 17 | Ce projet couvre les éléments suivants du [Programme de Créativité Numérique de Raspberry Pi](https://www.raspberrypi.org/curriculum/) : 18 | 19 | - [Utiliser des concepts de base de programmation pour élaborer un programme simple](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /fr-FR/step_2.md: -------------------------------------------------------------------------------- 1 | ## Ce dont tu auras besoin 2 | 3 | ### Logiciel 4 | 5 | #### Installation du logiciel 6 | 7 | Minecraft est installé par défaut dans Raspbian depuis septembre 2014. 8 | 9 | ![Icône de bureau Minecraft Pi](images/minecraft-pi-shortcut.png) 10 | 11 | Si tu utilises une ancienne version de Raspbian, ouvre une fenêtre de terminal et tape les commandes suivantes (tu dois être en ligne) : 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | Une fois cela terminé, Minecraft Pi et la bibliothèque Python devraient être installés. 19 | 20 | #### Tester Minecraft 21 | 22 | Pour exécuter Minecraft, double-clique sur l'icône du bureau ou tape la commande `minecraft-pi` dans le terminal. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | Une fois Minecraft lancé, clique sur **Start Game**, suivi de **Create New**. Tu remarqueras que la fenêtre contenant est légèrement décalée. Cela signifie que pour faire glisser la fenêtre, tu dois saisir la barre de titre derrière la fenêtre Minecraft. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | Tu es maintenant dans une partie de Minecraft! 31 | 32 | #### Tester Python 33 | 34 | Avec Minecraft en cours d'exécution, et le monde créé, éloignez-vous du jeu en appuyant sur la touche `Tab` qui libérera votre souris. Ouvre Python 3 (IDLE) sur le bureau et déplace les fenêtres pour qu'elles soient côte à côte. 35 | 36 | Tu peux taper soit des commandes directement dans la fenêtre Python ou créer un fichier afin de pouvoir enregistrer ton code et le réexécuter une autre fois. 37 | 38 | Si tu veux créer un fichier, va dans `File > New File` et `File > Save`. Tu voudras probablement l'enregistrer dans votre dossier de départ ou dans un nouveau dossier spécifique à ton projet. 39 | 40 | Commence par importer la bibliothèque Minecraft, crée une connexion au jeu et teste-la en affichant le message «Hello world» (bonjour le monde) à l'écran: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hello world") 48 | ``` 49 | 50 | Si tu entres des commandes directement dans la fenêtre Python, appuie simplement sur `Entrer` après chaque ligne. S'il s'agit d'un fichier, enregistre avec `Ctrl + S` et exécute avec `F5`. Lorsque ton code s'exécute, tu devrais voir ton message dans l'écran du jeu. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | Si tu vois "Hello world" dans la fenêtre Minecraft, tu es prêt à passer à l'étape suivante. -------------------------------------------------------------------------------- /fr-FR/step_3.md: -------------------------------------------------------------------------------- 1 | ## Démarrer avec Minecraft Pi 2 | 3 | Minecraft est un jeu de construction populaire comme un bac à sable à monde ouvert. Une version gratuite de Minecraft est disponible pour le Raspberry Pi; il est également livré avec une interface de programmation. Cela signifie que tu peux écrire des commandes et des scripts en code Python pour créer automatiquement des éléments dans le jeu. C'est un excellent moyen d'apprendre Python! 4 | 5 | ![Bannière Minecraft Pi](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /fr-FR/step_4.md: -------------------------------------------------------------------------------- 1 | ## Exécuter Minecraft 2 | 3 | Pour exécuter Minecraft Pi, ouvre-le à partir du menu du bureau ou tape `minecraft-pi` dans le terminal. 4 | 5 | ![](images/menu.png) 6 | 7 | Une fois Minecraft lancé, clique sur **Start Game**, suivi de **Create New**. Tu remarqueras que la fenêtre est légèrement décalée. Cela signifie que pour faire glisser la fenêtre, tu dois saisir la barre de titre derrière la fenêtre Minecraft. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | Tu es maintenant dans une partie de Minecraft! Va te promener, hacker des trucs et construire des choses! 12 | 13 | Utilise la souris pour regarder autour de toi et utilise les touches suivantes sur le clavier: 14 | 15 | | Touche | Action | 16 | |:-------------:|:--------------------------------:| 17 | | W | Avant | 18 | | A | Gauche | 19 | | S | Arrière | 20 | | D | Droite | 21 | | E | Inventaire | 22 | | Espace | Sauter | 23 | | Double espace | Voler / Tomber | 24 | | Esc | Pause / Menu du Jeu | 25 | | Tab | Relâcher le curseur de la souris | 26 | 27 | Tu peux sélectionner un élément dans le panneau de dessin rapide avec la molette de défilement de la souris (ou utiliser les chiffres de ton clavier), ou appuyer sur `E` et sélectionner quelque chose dans l'inventaire. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | Tu peux également appuyer deux fois sur la barre d'espace pour voler dans les airs. Tu arrêteras de voler lorsque tu relâcheras la barre d'espace, et si tu appuies deux fois dessus à nouveau, tu retomberas au sol. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | Avec l'épée à la main, tu peux cliquer sur des blocs devant toi pour les supprimer (ou pour creuser). Avec un bloc dans ta main, tu peux utiliser le clic droit pour placer ce bloc devant toi, ou le clic gauche pour supprimer un bloc. -------------------------------------------------------------------------------- /fr-FR/step_6.md: -------------------------------------------------------------------------------- 1 | ## Laisser tomber des blocs en marchant 2 | 3 | Maintenant que tu sais comment déposer des blocs, utilisons notre emplacement de déplacement pour déposer des blocs lorsque tu marches. 4 | 5 | Le code suivant laissera tomber une fleur derrière toi partout où tu marcheras: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | Maintenant, avance pendant un moment et fais demi-tour pour voir les fleurs que tu as laissées derrière toi. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | Puisque nous avons utilisé une boucle `while True` , cela durera indéfiniment. Pour l'arrêter, appuie sur `Ctrl + C` dans la fenêtre Python. 26 | 27 | Essaye de voler dans les airs et regarde les fleurs que tu laisses dans le ciel: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | Et si nous voulions seulement déposer des fleurs lorsque le joueur marche sur l'herbe? Nous pouvons utiliser `getBlock` pour savoir de quel type est un bloc : 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | Cela t'indique l'emplacement du bloc sur lequel tu te trouves (ce sera `0` - un bloc air). Nous voulons savoir *sur* quel type de bloc nous nous tenons . Pour cela, soustrayons 1 de `y` et utilisons `getBlock ()` pour déterminer sur quel type de bloc nous nous tenons: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | Cela nous indique l'ID du bloc sur lequel se trouve le joueur. 48 | 49 | Teste cela en exécutant une boucle pour imprimer l'ID du bloc sur n'importe lequel tu te trouves actuellement: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | Nous pouvons utiliser un `if` pour choisir de planter ou non une fleur: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | Peut-être pourrions-nous ensuite transformer la dalle sur laquelle nous sommes debout en herbe si ce n'est pas déjà de l'herbe : 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | Maintenant, nous pouvons avancer et si nous marchons sur l'herbe, nous laisserons une fleur derrière nous. Si le bloc suivant n'est pas de l'herbe, il se transforme en herbe. Lorsque nous nous retournons et revenons en arrière, nous laissons maintenant une fleur derrière nous. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /fr-FR/step_7.md: -------------------------------------------------------------------------------- 1 | ## Jouer avec des blocs TNT 2 | 3 | Un autre bloc intéressant est TNT! Pour placer un bloc TNT normal, utilise: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | Cependant, ce bloc TNT est assez ennuyeux. Essaye de passer la valeur `1` à `data` : 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | Maintenant, utilise ton épée et fais un clic gauche sur le bloc TNT: il sera activé et explosera en quelques secondes! 20 | 21 | Essaie maintenant de créer un gros cube de blocs TNT! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | Maintenant tu verras un gros cube plein de blocs TNT. Va activer l'un des blocs puis pars vite pour regarder le spectacle! Le rendu des graphiques sera très lent car il y a tellement de choses qui sont modifiées à la fois. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /fr-FR/step_8.md: -------------------------------------------------------------------------------- 1 | ## S'amuser avec de la lave qui coule 2 | 3 | Un bloc avec lequel il est très amusant de jouer est la lave qui coule. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | Trouve le bloc que tu viens de placer et tu devrais voir de la lave couler du bloc vers le sol. 18 | 19 | Ce qui est cool à propos de la lave, c'est que lorsqu'elle refroidit, elle devient de la roche. Déplace-toi vers un autre endroit de votre monde et essaye ceci: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | Tu peux ajuster les `sleep` pour permettre à plus ou moins de lave de couler. 42 | 43 | ![lave](images/lava.png) -------------------------------------------------------------------------------- /fr-FR/step_9.md: -------------------------------------------------------------------------------- 1 | ## Et ensuite ? 2 | 3 | Tu peux faire beaucoup de choses maintenant que tu connais ton chemin dans le monde de Minecraft et que tu sais comment utiliser l'interface Python. 4 | 5 | ### Jeu en réseau 6 | 7 | Si plusieurs personnes connectent des Raspberry Pi à un réseau local, elles peuvent rejoindre le même monde Minecraft et jouer ensemble. Les joueurs peuvent se voir dans le monde de Minecraft. 8 | 9 | ### Référence de l'API 10 | 11 | Pour une documentation plus complète des fonctions et une liste complète des ID de bloc, consulte une référence d'API sur [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). 12 | 13 | 14 | *** 15 | Ce projet a été traduit par des bénévoles: 16 | 17 | Valérie Gillon 18 | Michel Arnols 19 | 20 | Grâce aux bénévoles, nous pouvons donner aux gens du monde entier la chance d'apprendre dans leur propre langue. Vous pouvez nous aider à atteindre plus de personnes en vous portant volontaire pour la traduction - plus d'informations sur [rpf.io/translate](https://rpf.io/translate). -------------------------------------------------------------------------------- /hi-IN/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/banner.png -------------------------------------------------------------------------------- /hi-IN/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/blockbeneath.gif -------------------------------------------------------------------------------- /hi-IN/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/helloworld.gif -------------------------------------------------------------------------------- /hi-IN/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/lava.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-block-test.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-flowers.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-flying.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-game.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-idle.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-install.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-inventory.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-setblock.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-start.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /hi-IN/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/mcpi-tnt.png -------------------------------------------------------------------------------- /hi-IN/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/menu.png -------------------------------------------------------------------------------- /hi-IN/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /hi-IN/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/hi-IN/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /hi-IN/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Minecraft Pi के साथ शुरू करना 3 | hero_image: images/banner.png 4 | description: Minecraft की दुनिया की प्रोग्रामिंग का अपना पहला स्वाद प्राप्त करें 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python (पायथन) 14 | site_areas: projects 15 | hardware: '' 16 | software: python (पायथन) 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: परिचय 21 | - title: आपको किन चीज़ों की आवश्यकता होगी 22 | completion: engaged 23 | - title: Minecraft Pi के साथ शुरू करना 24 | - title: Minecraft चलाएँ 25 | - title: Python प्रोग्रामिंग इंटरफेस का उपयोग करें 26 | - title: आपके चलने के साथ-साथ ब्लॉक गिराना 27 | - title: TNT ब्लॉक के साथ खेलना 28 | completion: internal 29 | - title: बहते लावा के साथ मज़ा। 30 | - title: आगे क्या? 31 | -------------------------------------------------------------------------------- /hi-IN/resources/.keep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /hi-IN/solutions/.keep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /hi-IN/step_1.md: -------------------------------------------------------------------------------- 1 | ## आप क्या बनाएँगे 2 | 3 | इस संसाधन में आप Minecraft Pi, Raspberry Pi के लिए बनाए गए Minecraft के विशेष संस्करण की आभासी दुनिया का पता लगाएँगे। 4 | 5 | आप सीखेंगे कि खिलाड़ी को किस तरह नियंत्रित करें, ब्लॉकों से मैन्युअल रूप से बनाएँ और अपने आस-पास की दुनिया में बदलाव करने के लिए Python इंटरफ़ेस का उपयोग करें। 6 | 7 | ## आप क्या सीखेंगे 8 | 9 | अपने Raspberry Pi के साथ इस संसाधन का अनुसरण करके आप सीखेंगे: 10 | 11 | - Minecraft Pi तक कैसे पहुँचे और एक नई दुनिया बनाएँ 12 | - Minecraft Pi से कनेक्ट करने के लिए Python प्रोग्रामिंग वातावरण IDLE का उपयोग कैसे करें 13 | - चैट विंडो में टेक्स्ट पोस्ट करने, खिलाड़ी के निर्देशांकों का पता लगाने, संरचनाओं को टेलीपोर्ट करने और उनका निर्माण करने के लिए Minecraft Python API का उपयोग कैसे करें 14 | - विभिन्न प्रकार के ब्लॉकों के लिए आईडी स्टोर करने के लिए वेरिएबल का उपयोग कैसे करें 15 | - विशेष गुणों वाले विभिन्न प्रकार के ब्लॉक रखने के साथ प्रयोग करना 16 | 17 | इस संसाधन में [Raspberry Pi डिजिटल निर्माण पाठ्यक्रम](https://www.raspberrypi.org/curriculum/) के निम्नलिखित तत्वों के पहलू शामिल हैं: 18 | 19 | - [सरल प्रोग्राम बनाने के लिए आधारभूत संरचनाओं का उपयोग करें](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /hi-IN/step_2.md: -------------------------------------------------------------------------------- 1 | ## आपको किन चीज़ों की आवश्यकता होगी 2 | 3 | ### सॉफ्टवेयर 4 | 5 | #### सॉफ्टवेयर इंस्टालेशन 6 | 7 | Minecraft सितंबर 2014 से Raspbian में डिफ़ॉल्ट रूप से इंस्टाल किया गया है। 8 | 9 | ![Minecraft Pi डेस्कटॉप आइकन](images/minecraft-pi-shortcut.png) 10 | 11 | यदि आप Raspbian के पुराने संस्करण का उपयोग कर रहे हैं, तो टर्मिनल विंडो खोलें और निम्नलिखित कमांड टाइप करें (आपको ऑनलाइन होना चाहिए): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | इसके पूरा हो जाने के बाद, Minecraft Pi और Python लाइब्रेरी इंस्टाल की जानी चाहिए। 19 | 20 | #### Minecraft का परीक्षण करें 21 | 22 | Minecraft चलाने के लिए डेस्कटॉप आइकन पर डबल क्लिक करें या टर्मिनल में `minecraft-pi` दर्ज करें। 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | जब Minecraft Pi लोड हो जाए, तो **Start Game** (गेम स्टार्ट करें) पर क्लिक करें, उसके बाद **Create new** (नया बनाएँ) पर। आप देखेंगे कि मुख्य विंडो थोड़ी-सी ऑफसेट है। इसका मतलब है कि विंडो को आस-पास ड्रैग करने के लिए आपको Minecraft विंडो के पीछे की title (शीर्षक) पट्टी को पकड़ना होगा। 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | अब आप Minecraft के एक गेम में हैं! 31 | 32 | #### Python का परीक्षण करें 33 | 34 | जब Minecraft चल रहा हो, और दुनिया तैयार हो, तो `Tab` (टैब) कुंजी को दबाकर अपना ध्यान गेम से हटा लें, जिससे आपका माउस मुक्त हो जाएगा। डेस्कटॉप पर Python 3 (IDLE) खोलें और विंडोज़ को खिसकाएँ ताकि दोनों एक दूसरे के आस-पास हों। 35 | 36 | आप कमांड या तो सीधे Python विंडो में टाइप कर सकते हैं या एक फाइल बना सकते हैं ताकि आप अपना कोड सहेज सकें और इसे बाद में फिर से चला सकें। 37 | 38 | यदि आप एक फाइल बनाना चाहते हैं तो `File > New window` और `File > Save` पर जाएँ।<0><0> आप शायद इसे अपने होम फ़ोल्डर या किसी नए प्रोजेक्ट फ़ोल्डर में सहेजना चाहेंगे। 39 | 40 | Minecraft लाइब्रेरी को आयात करके, गेम से कनेक्शन बनाकर और स्क्रीन पर "Hello world" ("हैलो वर्ल्ड") संदेश पोस्ट करके इसका परीक्षण करना आरंभ करें: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hello world") 48 | ``` 49 | 50 | यदि आप सीधे Python विंडो में कमांड दर्ज कर रहे हैं, तो बस प्रत्येक पंक्ति के बाद `Enter` (एंटर) दबाएँ। यदि यह फ़ाइल है, तो `Ctrl + S` के साथ सहेजें और `F5` के साथ चलाएँ। जब आपका कोड चलता है, तो आपको गेम में स्क्रीन पर अपना संदेश दिखना चाहिए। 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | यदि आप Minecraft विंडो में "Hello world" ("हैलो वर्ल्ड") देखते हैं, तो आप अगले चरण में जाने के लिए तैयार हैं। -------------------------------------------------------------------------------- /hi-IN/step_3.md: -------------------------------------------------------------------------------- 1 | ## Minecraft Pi के साथ शुरू करना 2 | 3 | Minecraft एक लोकप्रिय सैंडबॉक्स ओपन-वर्ल्ड बिल्डिंग गेम है। Raspberry Pi के लिए Minecraft का एक मुफ्त संस्करण उपलब्ध है; यह एक प्रोग्रामिंग इंटरफेस के साथ भी आता है। इसका मतलब है कि आप गेम में चीजों को स्वचालित रूप से बनाने के लिए Python कोड में कमांड और स्क्रिप्ट लिख सकते हैं। यह Python सीखने का एक बढ़िया तरीका है! 4 | 5 | ![Minecraft Pi बैनर](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /hi-IN/step_4.md: -------------------------------------------------------------------------------- 1 | ## Minecraft चलाएँ 2 | 3 | Minecraft Pi चलाने के लिए, इसे डेस्कटॉप मेनू से खोलें या टर्मिनल में `minecraft-pi` टाइप करें। 4 | 5 | ![](images/menu.png) 6 | 7 | जब Minecraft Pi लोड हो जाए, तो **Start Game** (गेम स्टार्ट करें) पर क्लिक करें, उसके बाद **Create new** (नया बनाएँ) पर। आप देखेंगे कि मुख्य विंडो थोड़ी-सी ऑफसेट है। इसका मतलब है कि विंडो को आस-पास ड्रैग करने के लिए आपको Minecraft विंडो के पीछे की title (शीर्षक) पट्टी को पकड़ना होगा। 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | अब आप Minecraft के एक गेम में हैं! चारों ओर घूमें फिरें, चीज़ों को हैक करें, और चीज़ें बनाएँ! 12 | 13 | चारों ओर देखने के लिए माउस का उपयोग करें और कीबोर्ड पर निम्नलिखित कुंजियों का उपयोग करें: 14 | 15 | | कुंजी | कार्य | 16 | |:------------:|:-----------------:| 17 | | W | आगे | 18 | | A | बाएँ | 19 | | S | पीछे | 20 | | D | दाएँ | 21 | | E | सूची | 22 | | Space | कूदें | 23 | | Double Space | उड़ें / गिरें | 24 | | Esc | विराम / गेम मेनू | 25 | | Tab | माउस कर्सर छोड़ें | 26 | 27 | आप माउस के स्क्रोल व्हील के साथ (या अपने कीबोर्ड पर संख्याओं का उपयोग करके) त्वरित ड्रा पैनल से किसी आइटम का चयन कर सकते हैं, या `E` दबाएँ और सूची में से किसी चीज़ का चयन करें। 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | आप हवा में उड़ने के लिए स्पेस बार को दो बार टैप भी कर सकते हैं। जब आप स्पेस बार को छोड़ देंगे तो आप उड़ना बंद कर देंगे, और यदि आप इसे फिर से डबल टैप करते हैं तो आप जमीन पर वापस आ जाएँगे। 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | अपने हाथ में तलवार के साथ, आप अपने सामने के ब्लॉकों को हटाने के लिए (या खोदने के लिए) उन पर क्लिक कर सकते हैं। अपने हाथ में किसी ब्लॉक के साथ, आप उस ब्लॉक को अपने सामने रखने के लिए राइट क्लिक का उपयोग कर सकते हैं, या किसी ब्लॉक को हटाने के लिए बायाँ क्लिक कर सकते हैं। -------------------------------------------------------------------------------- /hi-IN/step_6.md: -------------------------------------------------------------------------------- 1 | ## आपके चलने के साथ-साथ ब्लॉक गिराना 2 | 3 | अब आप जानते हैं कि ब्लॉक कैसे गिराए जाते हैं, आइए हम अपनी चलने की लोकेशन का उपयोग आपके चलते समय ब्लॉक गिराने के लिए करें। 4 | 5 | निम्नलिखित कोड आप जहाँ कहीं भी आप चलेंगे आपके पीछे एक फूल गिरा देगा: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | अब थोड़ी देर के लिए आगे चलें और पीछे मुड़कर अपने पीछे छोड़े गए फूलों को देखें। 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | चूंकि हमने `while True` (जबकि यह सच है) लूप का उपयोग किया था यह हमेशा चलता रहेगा। इसे बंद करने के लिए, Python विंडो में `Ctrl + C` दबाएँ। 26 | 27 | हवा में उड़ने की कोशिश करें और आकाश में छोड़े गए फूलों को देखें: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | यदि हम केवल तभी फूल गिराना चाहते हैं जब खिलाड़ी घास पर चल रहा हो तो क्या होगा? यह पता लगाने के लिए कि कोई ब्लॉक किस प्रकार है हम `getBlock` का उपयोग कर सकते हैं: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | यह आपको उस ब्लॉक की लोकेशन बताता है *जिसमें*आप खड़े हैं (यह `0` होगा - एक वायु ब्लॉक)। हम जानना चाहते हैं कि हम किस प्रकार का ब्लॉक *पर* खड़े हैं। इसके लिए हम `y` मूल्य से 1 घटाते हैं और `getBlock()` का उपयोग करते हैं ताकि यह निर्धारित किया जा सके कि हम किस प्रकार के ब्लॉक पर खड़े हैं: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | यह हमें उस ब्लॉक की आईडी बताता है जिस पर खिलाड़ी खड़ा है। 48 | 49 | आप वर्तमान में जहाँ पर भी खड़े हैं, उसकी ब्लॉक आईडी को मुद्रित करने के लिए लूप चलाकर इसका परीक्षण करें: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | यह चुनने के लिए कि हम कोई फूल लगाएँगे या नहीं हम एक `if` (यदि) कथन का उपयोग कर सकते हैं: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | शायद इसके बाद हम जिस टाइल पर खड़े हैं उसे हम घास में बदल सकते हैं यदि यह पहले से घास नहीं है: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | अब हम आगे बढ़ सकते हैं और यदि हम घास पर चलते हैं, तो हम पीछे एक फूल छोड़ देंगे। यदि अगला ब्लॉक घास नहीं है, तो यह घास में बदल जाता है। जब हम घूम जाते हैं और वापस चलते हैं, तो अब हम अपने पीछे एक फूल छोड़ देते हैं। 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /hi-IN/step_7.md: -------------------------------------------------------------------------------- 1 | ## TNT ब्लॉक के साथ खेलना 2 | 3 | एक और दिलचस्प ब्लॉक TNT (विस्फोटक) है! एक सामान्य TNT ब्लॉक को रखने के लिए इसका उपयोग करें: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | हालांकि, यह TNT ब्लॉक काफी उबाऊ है। `data` (डेटा) को `1` के रूप में लागू करने का प्रयास करें: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | अब अपनी तलवार का उपयोग करें और TNT ब्लॉक पर बायाँ क्लिक करें: यह सक्रिय हो जाएगा और कुछ ही सेकंड में इसमें विस्फोट हो जाएगा! 20 | 21 | अब TNT ब्लॉक का एक बड़ा घन बनाने का प्रयास करें! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | अब आप TNT ब्लॉक से भरा एक बड़ा घन देखेंगे। जाएँ और किसी एक ब्लॉक को सक्रिय करें और फिर शो देखने के लिए वहाँ से भाग जाएँ! ग्राफिक्स को प्रस्तुत करना वास्तव में धीमा होगा क्योंकि कई चीजें एक साथ बदल रही हैं। 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /hi-IN/step_8.md: -------------------------------------------------------------------------------- 1 | ## बहते लावा के साथ मज़ा। 2 | 3 | बहता लावा एक ऐसा ब्लॉक है जिसे खेलने में बहुत मज़ा आता है। 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | जिस ब्लॉक को आपने अभी-अभी रखा है उसे ढूँढें, और आपको उस ब्लॉक से जमीन पर बहता हुआ लावा दिखाई देना चाहिए। 18 | 19 | लावा के बारे में एक बढ़िया बात यह है कि ठंडा हो जाने पर यह चट्टान बन जाता है। अपनी दुनिया में किसी दूसरी लोकेशन पर जाएँ और इसे आजमाएँ: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3,y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | आप लावा को अधिक या कम प्रवाहित करने के लिए `sleep` (स्लीप) के पैरामीटर समायोजित कर सकते हैं। 42 | 43 | ![लावा](images/lava.png) -------------------------------------------------------------------------------- /hi-IN/step_9.md: -------------------------------------------------------------------------------- 1 | ## आगे क्या? 2 | 3 | अब आप बहुत कुछ कर सकते हैं क्योंकि आप Minecraft दुनिया के आसपास का अपना रास्ता और Python इंटरफ़ेस का उपयोग कैसे करना है जानते हैं। 4 | 5 | ### नेटवर्क गेम 6 | 7 | यदि एकाधिक लोग Raspberry Pi को स्थानीय नेटवर्क से जोड़ते हैं, तो वे उसी Minecraft दुनिया में शामिल हो सकते हैं और एक साथ खेल सकते हैं। खिलाड़ी Minecraft दुनिया में एक दूसरे को देख सकते हैं। 8 | 9 | ### API संदर्भ 10 | 11 | कार्यों के अधिक व्यापक दस्तावेज़ीकरण और ब्लॉक आईडी की पूरी सूची के लिए [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) पर एक एपीआई संदर्भ देखें। -------------------------------------------------------------------------------- /images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/blockbeneath.gif -------------------------------------------------------------------------------- /images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/helloworld.gif -------------------------------------------------------------------------------- /images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/lava.png -------------------------------------------------------------------------------- /images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-block-test.png -------------------------------------------------------------------------------- /images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-flowers.png -------------------------------------------------------------------------------- /images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-flying.png -------------------------------------------------------------------------------- /images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-game.png -------------------------------------------------------------------------------- /images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-idle.png -------------------------------------------------------------------------------- /images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-install.png -------------------------------------------------------------------------------- /images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-inventory.png -------------------------------------------------------------------------------- /images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-setblock.png -------------------------------------------------------------------------------- /images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-start.png -------------------------------------------------------------------------------- /images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/mcpi-tnt.png -------------------------------------------------------------------------------- /images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/menu.png -------------------------------------------------------------------------------- /images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /kn-IN/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/banner.png -------------------------------------------------------------------------------- /kn-IN/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/blockbeneath.gif -------------------------------------------------------------------------------- /kn-IN/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/helloworld.gif -------------------------------------------------------------------------------- /kn-IN/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/lava.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-block-test.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-flowers.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-flying.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-game.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-idle.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-install.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-inventory.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-setblock.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-start.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /kn-IN/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/mcpi-tnt.png -------------------------------------------------------------------------------- /kn-IN/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/menu.png -------------------------------------------------------------------------------- /kn-IN/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /kn-IN/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /kn-IN/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Minecraft Pi ನೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸುವುದು 3 | hero_image: images/banner.png 4 | description: Minecraft ಪ್ರಪಂಚವನ್ನು ಪ್ರೋಗ್ರಾಮಿಂಗ್ ಮಾಡುವ ನಿಮ್ಮ ಮೊದಲ ಅಭಿರುಚಿಯನ್ನು ಪಡೆಯಿರಿ 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: ಪರಿಚಯ 21 | - title: ನಿಮಗೆ ಬೇಕಾದುದು 22 | completion: engaged 23 | - title: Minecraft Pi ನೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸುವುದು 24 | - title: Minecraft ಅನ್ನು ಚಲಾಯಿಸಿ 25 | - title: Python ಪ್ರೋಗ್ರಾಮಿಂಗ್ ಇಂಟರ್ಫೇಸ್ ಬಳಸಿ 26 | - title: ನೀವು ನಡೆಯುವಾಗ ಬ್ಲಾಕ್ ಗಳನ್ನು ಬೀಳಿಸುವುದು 27 | - title: TNT ಬ್ಲಾಕ್ ಗಳೊಂದಿಗೆ ಆಡುವುದು 28 | completion: internal 29 | - title: ಹರಿಯುವ ಲಾವಾದೊಂದಿಗೆ ಮೋಜು. 30 | - title: ಮುಂದೆ ಏನು? 31 | -------------------------------------------------------------------------------- /kn-IN/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/resources/.keep -------------------------------------------------------------------------------- /kn-IN/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/kn-IN/solutions/.keep -------------------------------------------------------------------------------- /kn-IN/step_1.md: -------------------------------------------------------------------------------- 1 | ## ನೀವು ಏನು ಮಾಡುವಿರಿ 2 | 3 | ಈ ಸಂಪನ್ಮೂಲದಲ್ಲಿ ನೀವು Raspberry Pi ಗಾಗಿ ತಯಾರಿಸಿದ Minecraft ನ ವಿಶೇಷ ಆವೃತ್ತಿಯಾದ Minecraft Pi ನ ವಾಸ್ತವ ಪ್ರಪಂಚವನ್ನು ಅನ್ವೇಷಿಸುವಿರಿ. 4 | 5 | ಆಟಗಾರನನ್ನು ಹೇಗೆ ನಿಯಂತ್ರಿಸುವುದು, ಬ್ಲಾಕ್‌ಗಳೊಂದಿಗೆ ಹಸ್ತಚಾಲಿತವಾಗಿ ನಿರ್ಮಿಸುವುದು ಮತ್ತು ನಿಮ್ಮ ಸುತ್ತಲಿನ ಪ್ರಪಂಚವನ್ನು ಕುಶಲತೆಯಿಂದ ನಿರ್ವಹಿಸಲು Python ಇಂಟರ್ಫೇಸ್ ಅನ್ನು ಹೇಗೆ ಬಳಸುವುದು ಎಂದು ನೀವು ಕಲಿಯುವಿರಿ. 6 | 7 | ## ನೀವು ಏನು ಕಲಿಯುವಿರಿ 8 | 9 | ನಿಮ್ಮ Raspberry Pi ನೊಂದಿಗೆ ಈ ಸಂಪನ್ಮೂಲವನ್ನು ಅನುಸರಿಸುವ ಮೂಲಕ ನೀವು ಕಲಿಯುವಿರಿ: 10 | 11 | - Minecraft Pi ಅನ್ನು ಪ್ರವೇಶಿಸುವುದು ಮತ್ತು ಹೊಸ ಪ್ರಪಂಚವನ್ನು ಹೇಗೆ ರಚಿಸುವುದು 12 | - Minecraft Pi ಗೆ ಸಂಪರ್ಕಿಸಲು Python ಪ್ರೋಗ್ರಾಮಿಂಗ್ ಪರಿಸರ IDLE ಅನ್ನು ಹೇಗೆ ಬಳಸುವುದು 13 | - ಚಾಟ್ ವಿಂಡೋಗೆ ಪಠ್ಯವನ್ನು ಪೋಸ್ಟ್ ಮಾಡಲು, ಆಟಗಾರನ ನಿರ್ದೇಶಾಂಕಗಳನ್ನು ಕಂಡುಹಿಡಿಯಲು, ಟೆಲಿಪೋರ್ಟ್ ಮಾಡಲು ಮತ್ತು ರಚನೆಗಳನ್ನು ನಿರ್ಮಿಸಲು Minecraft Python API ಅನ್ನು ಹೇಗೆ ಬಳಸುವುದು 14 | - ವಿವಿಧ ರೀತಿಯ ಬ್ಲಾಕ್‌ಗಳಿಗಾಗಿ ಐಡಿಗಳನ್ನು ಸಂಗ್ರಹಿಸಲು ವೇರಿಯಬಲ್ ಗಳನ್ನು ಹೇಗೆ ಬಳಸುವುದು 15 | - ವಿಶೇಷ ಗುಣಲಕ್ಷಣಗಳೊಂದಿಗೆ ವಿವಿಧ ರೀತಿಯ ಬ್ಲಾಕ್ ಗಳನ್ನು ಇರಿಸುವ ಪ್ರಯೋಗ 16 | 17 | ಈ ಸಂಪನ್ಮೂಲವು [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/) ಇದರ ಪಠ್ಯಕ್ರಮವನ್ನು ಅನುಸರಿಸುತ್ತದೆ: 18 | 19 | - [ಸರಳ ಕಾರ್ಯಕ್ರಮಗಳನ್ನು ರಚಿಸಲು ಮೂಲ ಪ್ರೋಗ್ರಾಮಿಂಗ್ ರಚನೆಗಳನ್ನು ಬಳಸಿ](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /kn-IN/step_2.md: -------------------------------------------------------------------------------- 1 | ## ನಿಮಗೆ ಬೇಕಾದುದು 2 | 3 | ### ಸಾಫ್ಟ್ವೇರ್ 4 | 5 | #### ಸಾಫ್ಟ್‌ವೇರ್ ಸ್ಥಾಪನೆ (Installation) 6 | 7 | Minecraft ಅನ್ನು ಪೂರ್ವನಿಯೋಜಿತವಾಗಿ Raspbian ನಲ್ಲಿ ಸೆಪ್ಟೆಂಬರ್ 2014 ರಿಂದ ಸ್ಥಾಪಿಸಲಾಗಿದೆ. 8 | 9 | ![Minecraft Pi ಡೆಸ್ಕ್‌ಟಾಪ್ ಐಕಾನ್](images/minecraft-pi-shortcut.png) 10 | 11 | ನೀವು Raspbian ನ ಹಳೆಯ ಆವೃತ್ತಿಯನ್ನು ಬಳಸುತ್ತಿದ್ದರೆ, ಟರ್ಮಿನಲ್ ವಿಂಡೋವನ್ನು ತೆರೆಯಿರಿ ಮತ್ತು ಈ ಕೆಳಗಿನ ಆಜ್ಞೆಗಳನ್ನು ಟೈಪ್ ಮಾಡಿ (ನೀವು ಆನ್‌ಲೈನ್‌ನಲ್ಲಿರಬೇಕು): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | ಅದು ಮುಗಿದ ನಂತರ, Minecraft Pi ಮತ್ತು Python ಲೈಬ್ರರಿಯವನ್ನು ಸ್ಥಾಪಿಸಬೇಕು. 19 | 20 | #### Minecraft ಅನ್ನು ಪರೀಕ್ಷಿಸಿ 21 | 22 | Minecraft ಅನ್ನು ಚಲಾಯಿಸಲು ಡೆಸ್ಕ್‌ಟಾಪ್ ಐಕಾನ್ ಅನ್ನು ಡಬಲ್ ಕ್ಲಿಕ್ ಮಾಡಿ ಅಥವಾ `Minecraft-pi` ಅನ್ನು ಟರ್ಮಿನಲ್ ನಲ್ಲಿ ನಮೂದಿಸಿ. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | Minecraft Pi ಲೋಡ್ ಮಾಡಿದಾಗ, **Start Game**(ಸ್ಟಾರ್ಟ್ ಗೇಮ್) ಕ್ಲಿಕ್ ಮಾಡಿ, ನಂತರ **Create new** (ಹೊಸದನ್ನು ರಚಿಸಿ) ಕ್ಲಿಕ್ ಮಾಡಿ. ಹೊಂದಿರುವ ವಿಂಡೋವನ್ನು ಸ್ವಲ್ಪಮಟ್ಟಿಗೆ ಸರಿದೂಗಿಸಲಾಗಿದೆ ಎಂದು ನೀವು ಗಮನಿಸಬಹುದು. ಇದರರ್ಥ ನಿಮ್ಮ ಸುತ್ತಲಿನ ವಿಂಡೋವನ್ನು ಎಳೆಯಲು Minecraft ವಿಂಡೋದ ಹಿಂದೆ ಇರುವ ಶೀರ್ಷಿಕೆ ಪಟ್ಟಿಯನ್ನು ಪಡೆದುಕೊಳ್ಳಬೇಕು. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | ನೀವು ಈಗ Minecraft ಆಟದಲ್ಲಿದ್ದೀರಿ! 31 | 32 | #### Python ನ ಪರೀಕ್ಷಿಸಿ 33 | 34 | Minecraft ಚಾಲನೆಯಲ್ಲಿರುವಾಗ ಮತ್ತು ಪ್ರಪಂಚವನ್ನು ರಚಿಸಿದ ನಂತರ, `Tab` (ಟ್ಯಾಬ್) ಕೀ ಅನ್ನು ಒತ್ತುವ ಮೂಲಕ ನಿಮ್ಮ ಗಮನವನ್ನು ಆಟದಿಂದ ಬದಲಿಸಿ ದೂರವಿಡಿ, ಅದು ನಿಮ್ಮ ಮೌಸ್ ಅನ್ನು ಮುಕ್ತಗೊಳಿಸುತ್ತದೆ. ಡೆಸ್ಕ್‌ಟಾಪ್‌ನಲ್ಲಿ Python 3 (IDLE) ತೆರೆಯಿರಿ ಮತ್ತು ವಿಂಡೊಗಳನ್ನು ಸರಿಸಿ. ಇದರಿಂದ ಅವು ಅಕ್ಕಪಕ್ಕದಲ್ಲಿರುತ್ತವೆ. 35 | 36 | ನೀವು ಆಜ್ಞೆಗಳನ್ನು ನೇರವಾಗಿ Python ವಿಂಡೋಗೆ ಟೈಪ್ ಮಾಡಬಹುದು ಅಥವಾ ಫೈಲ್ ಅನ್ನು ರಚಿಸಬಹುದು. ಇದರಿಂದ ನಿಮ್ಮ ಕೋಡ್ ಅನ್ನು ಉಳಿಸಬಹುದು ಮತ್ತು ಅದನ್ನು ಮತ್ತೊಮ್ಮೆ ಚಾಲನೆ ಮಾಡಬಹುದು. 37 | 38 | ನೀವು ಫೈಲ್ ರಚಿಸಲು ಬಯಸಿದರೆ `File > New window` ಮತ್ತು `File > Save`. ನೀವು ಬಹುಶಃ ಇದನ್ನು ನಿಮ್ಮ ಹೋಮ್ ಫೋಲ್ಡರ್ ಅಥವಾ ಹೊಸ ಪ್ರಾಜೆಕ್ಟ್ ಫೋಲ್ಡರ್ನಲ್ಲಿ ಉಳಿಸಲು ಬಯಸುತ್ತೀರಿ. 39 | 40 | Minecraft ಲೈಬ್ರರಿಯನ್ನು ಆಮದು ಮಾಡುವ ಮೂಲಕ ಪ್ರಾರಂಭಿಸಿ, ಆಟಕ್ಕೆ ಸಂಪರ್ಕವನ್ನು ರಚಿಸಿ ಮತ್ತು "Hello world" ("ಹಲೋ ವರ್ಲ್ಡ್") ಸಂದೇಶವನ್ನು ಪರದೆಯ ಮೇಲೆ ಪೋಸ್ಟ್ ಮಾಡುವ ಮೂಲಕ ಅದನ್ನು ಪರೀಕ್ಷಿಸಿ: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hello world") 48 | ``` 49 | 50 | ನೀವು ಆಜ್ಞೆಗಳನ್ನು ನೇರವಾಗಿ Python ವಿಂಡೋಗೆ ನಮೂದಿಸುತ್ತಿದ್ದರೆ, ಪ್ರತಿ ಸಾಲಿನ ನಂತರ `Enter` (ಎಂಟರ್) ಅನ್ನು ಒತ್ತಿರಿ. ಇದು ಫೈಲ್ ಆಗಿದ್ದರೆ, `Ctrl + S` ನೊಂದಿಗೆ ಉಳಿಸಿ ಮತ್ತು `F5` ನೊಂದಿಗೆ ಚಲಾಯಿಸಿ. ನಿಮ್ಮ ಕೋಡ್ ಚಾಲನೆಯಲ್ಲಿರುವಾಗ, ಆಟದಲ್ಲಿ ನಿಮ್ಮ ಸಂದೇಶವನ್ನು ಪರದೆಯ ಮೇಲೆ ನೋಡಬೇಕು. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | Minecraft ವಿಂಡೋದಲ್ಲಿ ನೀವು "Hello world" ("ಹಲೋ ವರ್ಲ್ಡ್") ಅನ್ನು ನೋಡಿದರೆ, ಮುಂದಿನ ಹಂತಕ್ಕೆ ಮುಂದುವರಿಯಬಹುದು. -------------------------------------------------------------------------------- /kn-IN/step_3.md: -------------------------------------------------------------------------------- 1 | ## Minecraft Pi ನೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸುವುದು 2 | 3 | Minecraft ಜನಪ್ರಿಯ ಸ್ಯಾಂಡ್‌ಬಾಕ್ಸ್ ಓಪನ್-ವರ್ಲ್ಡ್ ಬಿಲ್ಡಿಂಗ್ ಗೇಮ್ ಆಗಿದೆ. Raspberry Pi ಗಾಗಿ Minecraft ನ ಉಚಿತ ಆವೃತ್ತಿ ಲಭ್ಯವಿದೆ; ಇದು ಪ್ರೋಗ್ರಾಮಿಂಗ್ ಇಂಟರ್ಫೇಸ್ ನೊಂದಿಗೆ ಸಹ ಬರುತ್ತದೆ. ಇದರರ್ಥ ನೀವು ಆಟದಲ್ಲಿ ವಿಷಯಗಳನ್ನು ಸ್ವಯಂಚಾಲಿತವಾಗಿ ನಿರ್ಮಿಸಲು Python ಕೋಡ್‌ನಲ್ಲಿ ಆಜ್ಞೆಗಳನ್ನು ಮತ್ತು ಸ್ಕ್ರಿಪ್ಟ್‌ಗಳನ್ನು ಬರೆಯಬಹುದು. Python ಕಲಿಯಲು ಇದು ಉತ್ತಮ ಮಾರ್ಗವಾಗಿದೆ! 4 | 5 | ![Minecraft Pi ಬ್ಯಾನರ್](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /kn-IN/step_4.md: -------------------------------------------------------------------------------- 1 | ## Minecraft ಅನ್ನು ಚಲಾಯಿಸಿ 2 | 3 | Minecraft Pi ಅನ್ನು ಚಲಾಯಿಸಲು, ಅದನ್ನು ಡೆಸ್ಕ್‌ಟಾಪ್ ಮೆನುವಿನಿಂದ ತೆರೆಯಿರಿ ಅಥವಾ ಟರ್ಮಿನಲ್ನಲ್ಲಿ `minecraft-pi` ಎಂದು ಟೈಪ್ ಮಾಡಿ. 4 | 5 | ![](images/menu.png) 6 | 7 | Minecraft Pi ಲೋಡ್ ಮಾಡಿದಾಗ, **Start Game** (ಸ್ಟಾರ್ಟ್ ಗೇಮ್) ಕ್ಲಿಕ್ ಮಾಡಿ, ನಂತರ **Create new** (ಹೊಸದನ್ನು ರಚಿಸಿ) ಕ್ಲಿಕ್ ಮಾಡಿ. ಹೊಂದಿರುವ ವಿಂಡೋವನ್ನು ಸ್ವಲ್ಪಮಟ್ಟಿಗೆ ಸರಿದೂಗಿಸಲಾಗಿದೆ ಎಂದು ನೀವು ಗಮನಿಸಬಹುದು. ಇದರರ್ಥ ನಿಮ್ಮ ಸುತ್ತಲಿನ ವಿಂಡೋವನ್ನು ಎಳೆಯಲು Minecraft ವಿಂಡೋದ ಹಿಂದೆ ಇರುವ ಶೀರ್ಷಿಕೆ ಪಟ್ಟಿಯನ್ನು ಪಡೆದುಕೊಳ್ಳಬೇಕು. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | ನೀವು ಈಗ Minecraft ಆಟದಲ್ಲಿದ್ದೀರಿ! ಸುತ್ತಲೂ ನಡೆಯಿರಿ, ವಸ್ತುಗಳನ್ನು ಹ್ಯಾಕ್ ಮಾಡಿ ಮತ್ತು ವಸ್ತುಗಳನ್ನು ನಿರ್ಮಿಸಿ! 12 | 13 | ಸುತ್ತಲೂ ನೋಡಲು ಮೌಸ್ ಬಳಸಿ ಮತ್ತು ಕೀಬೋರ್ಡ್‌ನಲ್ಲಿ ಈ ಕೆಳಗಿನ ಕೀಲಿಗಳನ್ನು ಬಳಸಿ: 14 | 15 | | Key | ಕ್ರಿಯೆ | 16 | |:------------:|:------------------------------:| 17 | | W | ಮುಂದೆ | 18 | | A | ಎಡ | 19 | | S | ಹಿಂದಕ್ಕೆ | 20 | | D | ಬಲ | 21 | | E | ದಾಸ್ತಾನು | 22 | | Space | ನೆಗೆತ | 23 | | Double Space | ಹಾರು / ಬೀಳು | 24 | | Esc | ವಿರಾಮ / ಆಟದ ಮೆನು | 25 | | Tab | ಮೌಸ್ ಕರ್ಸರ್ ಅನ್ನು ಬಿಡುಗಡೆ ಮಾಡಿ | 26 | 27 | ಮೌಸ್ ನ ಸ್ಕ್ರಾಲ್ ಚಕ್ರದೊಂದಿಗೆ ತ್ವರಿತ ಡ್ರಾ ಪ್ಯಾನೆಲ್‌ನಿಂದ ನೀವು ಐಟಂ ಅನ್ನು ಆಯ್ಕೆ ಮಾಡಬಹುದು (ಅಥವಾ ನಿಮ್ಮ ಕೀಬೋರ್ಡ್‌ನಲ್ಲಿರುವ ಸಂಖ್ಯೆಗಳನ್ನು ಬಳಸಿ), ಅಥವಾ `E` ಒತ್ತಿರಿ ಮತ್ತು ದಾಸ್ತಾನುಗಳಿಂದ ಏನನ್ನಾದರೂ ಆಯ್ಕೆಮಾಡಿ. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | ಗಾಳಿಯಲ್ಲಿ ಹಾರಲು ನೀವು ಸ್ಪೇಸ್ ಬಾರ್ ಅನ್ನು ಎರಡು ಬಾರಿ ಟ್ಯಾಪ್ ಮಾಡಬಹುದು. ನೀವು ಸ್ಪೇಸ್ ಬಾರ್ ಅನ್ನು ಬಿಡುಗಡೆ ಮಾಡುವಾಗ ನೀವು ಹಾರಾಟವನ್ನು ನಿಲ್ಲಿಸುತ್ತೀರಿ, ಮತ್ತು ನೀವು ಅದನ್ನು ಮತ್ತೆ ಎರಡು ಬಾರಿ ಟ್ಯಾಪ್ ಮಾಡಿದರೆ ನೀವು ಮತ್ತೆ ನೆಲಕ್ಕೆ ಬೀಳುತ್ತೀರಿ. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | ನಿಮ್ಮ ಕೈಯಲ್ಲಿರುವ ಕತ್ತಿಯಿಂದ, ನಿಮ್ಮ ಮುಂದೆ ಇರುವ ಬ್ಲಾಕ್‌ಗಳನ್ನು ತೆಗೆದುಹಾಕಲು (ಅಥವಾ ಅಗೆಯಲು) ಅವುಗಳ ಮೇಲೆ ಕ್ಲಿಕ್ ಮಾಡಬಹುದು. ನಿಮ್ಮ ಕೈಯಲ್ಲಿರುವ ಬ್ಲಾಕ್ನೊಂದಿಗೆ, ಆ ಬ್ಲಾಕ್ ಅನ್ನು ನಿಮ್ಮ ಮುಂದೆ ಇರಿಸಲು ನೀವು ಬಲ ಕ್ಲಿಕ್ ಅನ್ನು ಬಳಸಬಹುದು, ಅಥವಾ ಬ್ಲಾಕ್ ಅನ್ನು ತೆಗೆದುಹಾಕಲು ಎಡ ಕ್ಲಿಕ್ ಮಾಡಿ. -------------------------------------------------------------------------------- /kn-IN/step_6.md: -------------------------------------------------------------------------------- 1 | ## ನೀವು ನಡೆಯುವಾಗ ಬ್ಲಾಕ್ ಗಳನ್ನು ಬೀಳಿಸುವುದು 2 | 3 | ಬ್ಲಾಕ್ಗಳನ್ನು ಹೇಗೆ ಬಿಡುವುದು ಎಂದು ಈಗ ನಿಮಗೆ ತಿಳಿದಿದೆ, ನೀವು ನಡೆಯುವಾಗ ಬ್ಲಾಕ್ಗಳನ್ನು ಬಿಡಲು ನಮ್ಮ ಚಲಿಸುವ ಸ್ಥಳವನ್ನು ಬಳಸೋಣ. 4 | 5 | ಈ ಕೆಳಗಿನ ಕೋಡ್ ನೀವು ಎಲ್ಲಿ ನಡೆದರೂ ನಿಮ್ಮ ಹಿಂದೆ ಒಂದು ಹೂವನ್ನು ಬಿಡುತ್ತದೆ: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | ಈಗ ಸ್ವಲ್ಪ ಸಮಯದವರೆಗೆ ನಡೆದು, ನೀವು ಹಿಂದೆ ಬಿಟ್ಟುಹೋದ ಹೂವುಗಳನ್ನು ನೋಡಲು ತಿರುಗಿ. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | ನಾವು `while True` ಅನ್ನೋ ಲೂಪ್ ಬಳಸಿದ್ದರಿಂದ, ಇದು ಶಾಶ್ವತವಾಗಿ ಮುಂದುವರಿಯುತ್ತದೆ. ಅದನ್ನು ನಿಲ್ಲಿಸಲು, Python ವಿಂಡೋದಲ್ಲಿ `Ctrl + C` ಒತ್ತಿರಿ. 26 | 27 | ಗಾಳಿಯಲ್ಲಿ ಹಾರಲು ಪ್ರಯತ್ನಿಸಿ ಮತ್ತು ನೀವು ಆಕಾಶದಲ್ಲಿ ಬಿಡುವ ಹೂವುಗಳನ್ನು ನೋಡಿ: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | ಆಟಗಾರನು ಹುಲ್ಲಿನ ಮೇಲೆ ನಡೆದಾಗ ಮಾತ್ರ ನಾವು ಹೂವುಗಳನ್ನು ಬಿಡಲು ಬಯಸಿದರೆ? ನಾವು `getBlock` ಅನ್ನು ಬಳಸಿ ಬ್ಲಾಕ್ ಯಾವ ಪ್ರಕಾರವಾಗಿದೆ ಎಂದು ಕಂಡುಹಿಡಿಯಬಹುದು: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | ನೀವು ನಿಂತಿರುವ ಬ್ಲಾಕ್ನ ಸ್ಥಳವನ್ನು *ಇದು* ನಿಮಗೆ ತಿಳಿಸುತ್ತದೆ ( `0` - ಇದು ಏರ್ ಬ್ಲಾಕ್ ಆಗಿರುತ್ತದೆ). ನಾವು ಯಾವ ರೀತಿಯ ಬ್ಲಾಕ್ *ಮೇಲೆ* ನಿಂತಿದ್ದೇವೆ ಎಂದು ತಿಳಿಯಲು ನಾವು ಬಯಸುತ್ತೇವೆ. ಇದಕ್ಕಾಗಿ ನಾವು `y` ಮೌಲ್ಯದಿಂದ 1 ಅನ್ನು ಕಳೆಯುತ್ತೇವೆ ಮತ್ತು ನಾವು ಯಾವ ರೀತಿಯ ಬ್ಲಾಕ್‌ನಲ್ಲಿ ನಿಂತಿದ್ದೇವೆ ಎಂಬುದನ್ನು ನಿರ್ಧರಿಸಲು `getBlock()` ಅನ್ನು ಬಳಸುತ್ತೇವೆ: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | ಇದು ನಮಗೆ ಆಟಗಾರನು ನಿಂತಿರುವ ಬ್ಲಾಕ್ ನ ಐಡಿ ಯನ್ನು ಹೇಳುತ್ತದೆ. 48 | 49 | ನೀವು ಪ್ರಸ್ತುತ ನಿಂತಿರುವ ಬ್ಲಾಕ್ ಐಡಿಯನ್ನು ಮುದ್ರಿಸಲು ಲೂಪ್ ಅನ್ನು ಚಲಾಯಿಸುವ ಮೂಲಕ ಇದನ್ನು ಪರೀಕ್ಷಿಸಿ: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | ನಾವು ಹೂವನ್ನು ನೆಡಬೇಕೇ ಅಥವಾ ಬೇಡವೇ ಎಂಬುದನ್ನು ಆಯ್ಕೆ ಮಾಡಲು ನಾವು `if` (ವೇಳೆ) ಹೇಳಿಕೆಯನ್ನು ಬಳಸಬಹುದು: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | ಬಹುಶಃ ಇದರ ನಂತರ, ನಾವು ನಿಂತಿರುವ ಟೈಲ್ ಅನ್ನು ಈಗಾಗಲೇ ಹುಲ್ಲು ಇಲ್ಲದಿದ್ದರೆ ಹುಲ್ಲಿಗೆ ಬದಲಾಯಿಸಬಹುದು: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | ಈಗ ನಾವು ಮುಂದೆ ನಡೆಯಬಹುದು ಮತ್ತು ನಾವು ಹುಲ್ಲಿನ ಮೇಲೆ ನಡೆದರೆ, ನಾವು ಒಂದು ಹೂವನ್ನು ಬಿಡುತ್ತೇವೆ. ಮುಂದಿನ ಬ್ಲಾಕ್ ಹುಲ್ಲು ಅಲ್ಲದಿದ್ದರೆ, ಅದು ಹುಲ್ಲು ಆಗಿ ಬದಲಾಗುತ್ತದೆ. ನಾವು ತಿರುಗಿ ಹಿಂದಕ್ಕೆ ನಡೆದಾಗ, ನಾವು ಈಗ ನಮ್ಮ ಹಿಂದೆ ಒಂದು ಹೂವನ್ನು ಬಿಡುತ್ತೇವೆ. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /kn-IN/step_7.md: -------------------------------------------------------------------------------- 1 | ## TNT ಬ್ಲಾಕ್ ಗಳೊಂದಿಗೆ ಆಡುವುದು 2 | 3 | ಮತ್ತೊಂದು ಆಸಕ್ತಿದಾಯಕ ಬ್ಲಾಕ್ TNT! ಸಾಮಾನ್ಯ TNT ಬ್ಲಾಕ್ ಅನ್ನು ಇರಿಸಲು ಇದನ್ನು ಬಳಸಿ: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | ಆದಾಗ್ಯೂ, ಈ TNT ಬ್ಲಾಕ್ ಸಾಕಷ್ಟು ನೀರಸವಾಗಿದೆ. `data` (ಡೇಟಾ) ಅನ್ನು `1` ಆಗಿ ಅನ್ವಯಿಸಲು ಪ್ರಯತ್ನಿಸಿ: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | ಈಗ ನಿಮ್ಮ ಖಡ್ಗವನ್ನು ಬಳಸಿ ಮತ್ತು TNT ಬ್ಲಾಕ್ ಅನ್ನು ಎಡ ಕ್ಲಿಕ್ ಮಾಡಿ: ಇದು ಸಕ್ರಿಯಗೊಳ್ಳುತ್ತದೆ ಮತ್ತು ಕೆಲವೇ ಸೆಕೆಂಡುಗಳಲ್ಲಿ ಸ್ಫೋಟಗೊಳ್ಳುತ್ತದೆ! 20 | 21 | ಈಗ TNT ಬ್ಲಾಕ್ಗಳ ದೊಡ್ಡ ಘನವನ್ನು ತಯಾರಿಸಲು ಪ್ರಯತ್ನಿಸಿ! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | ಈಗ ನೀವು TNT ಬ್ಲಾಕ್‌ಗಳಿಂದ ತುಂಬಿದ ದೊಡ್ಡ ಘನವನ್ನು ನೋಡುತ್ತೀರಿ. ಹೋಗಿ ಒಂದು ಬ್ಲಾಕ್ ಅನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ ನಂತರ ಪ್ರದರ್ಶನವನ್ನು ವೀಕ್ಷಿಸಲು ಓಡಿಹೋಗಿ! ಅನೇಕ ವಿಷಯಗಳು ಏಕಕಾಲದಲ್ಲಿ ಬದಲಾಗುತ್ತಿರುವುದರಿಂದ ಗ್ರಾಫಿಕ್ಸ್ ಅನ್ನು ನಿರೂಪಿಸಲು ನಿಜವಾಗಿಯೂ ನಿಧಾನವಾಗಿರುತ್ತದೆ. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /kn-IN/step_8.md: -------------------------------------------------------------------------------- 1 | ## ಹರಿಯುವ ಲಾವಾದೊಂದಿಗೆ ಮೋಜು. 2 | 3 | ಹರಿಯುವ ಲಾವಾ ಒಂದು ಬ್ಲಾಕ್ ಆಗಿದ್ದು ಅದು ಆಡಲು ತುಂಬಾ ಖುಷಿಯಾಗುತ್ತದೆ. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | ನೀವು ಈಗ ಇರಿಸಿರುವ ಬ್ಲಾಕ್ ಅನ್ನು ಹುಡುಕಿ, ಮತ್ತು ಆ ಬ್ಲಾಕ್ನಿಂದ ಲಾವಾ ನೆಲಕ್ಕೆ ಹರಿಯುವುದನ್ನು ನೀವು ನೋಡಬೇಕು. 18 | 19 | ಲಾವಾದ ಬಗ್ಗೆ ಒಂದು ವಿಶೇಷವಾದ ವಿಷಯವೆಂದರೆ, ತಣ್ಣಗಾದಾಗ ಅದು ಬಂಡೆಯಾಗುತ್ತದೆ. ಇದನ್ನು ಪ್ರಯತ್ನಿಸಲು ನಿಮ್ಮ ಜಗತ್ತಿನ ಮತ್ತೊಂದು ಸ್ಥಳಕ್ಕೆ ತೆರಳಿ: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | ಲಾವಾ ಹೆಚ್ಚು ಅಥವಾ ಕಡಿಮೆ ಹರಿಯುವಂತೆ ಮಾಡಲು ನೀವು `sleep` (ನಿದ್ರೆ) ನಿಯತಾಂಕಗಳನ್ನು ಹೊಂದಿಸಬಹುದು. 42 | 43 | ![ಲಾವಾ](images/lava.png) -------------------------------------------------------------------------------- /kn-IN/step_9.md: -------------------------------------------------------------------------------- 1 | ## ಮುಂದೆ ಏನು? 2 | 3 | Minecraft ಪ್ರಪಂಚದಾದ್ಯಂತ ನಿಮ್ಮ ದಾರಿ ಮತ್ತು Python ಇಂಟರ್ಫೇಸ್ ಅನ್ನು ಹೇಗೆ ಬಳಸುವುದು ಎಂದು ನಿಮಗೆ ತಿಳಿದಿರುವ ಕಾರಣ ಈಗ ನೀವು ಬಹಳಷ್ಟು ಮಾಡಬಹುದು. 4 | 5 | ### ನೆಟ್‌ವರ್ಕ್ ಮಾಡಲಾದ ಆಟ 6 | 7 | ಅನೇಕ ಜನರು Raspberry Pi ಅನ್ನು ಸ್ಥಳೀಯ ನೆಟ್‌ವರ್ಕ್‌ಗೆ ಸಂಪರ್ಕಿಸಿದರೆ, ಅವರು ಒಂದೇ Minecraft ಜಗತ್ತಿನಲ್ಲಿ ಸೇರಬಹುದು ಮತ್ತು ಒಟ್ಟಿಗೆ ಆಡಬಹುದು. Minecraft ಜಗತ್ತಿನಲ್ಲಿ ಆಟಗಾರರು ಪರಸ್ಪರ ನೋಡಬಹುದು. 8 | 9 | ### API ಉಲ್ಲೇಖ 10 | 11 | ಕಾರ್ಯಗಳ ಹೆಚ್ಚು ವಿಸ್ತಾರವಾದ ದಸ್ತಾವೇಜನ್ನು ಮತ್ತು ಬ್ಲಾಕ್ ಐಡಿಗಳ ಪೂರ್ಣ ಪಟ್ಟಿಗಾಗಿ [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) ನಲ್ಲಿ API ಉಲ್ಲೇಖವನ್ನು ನೋಡಿ. -------------------------------------------------------------------------------- /learn.md: -------------------------------------------------------------------------------- 1 | By following this resource with your Raspberry Pi you will learn: 2 | 3 | - How to access Minecraft Pi and create a new world 4 | - How to use the Python programming environment IDLE to connect to Minecraft Pi 5 | - How to use the Minecraft Python API to post text to the chat window, find the player's coordinates, teleport and build structures 6 | - How to use variables to store IDs for different types of blocks 7 | - Experimenting with placing different types of blocks with special attributes 8 | 9 | This resource covers elements from the following strands of the [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/): 10 | 11 | - [Use basic programming constructs to create simple programs](https://www.raspberrypi.org/curriculum/programming/creator) 12 | -------------------------------------------------------------------------------- /meta.yml: -------------------------------------------------------------------------------- 1 | title: Getting Started with Minecraft Pi 2 | category: learn 3 | -------------------------------------------------------------------------------- /mr-IN/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/banner.png -------------------------------------------------------------------------------- /mr-IN/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/blockbeneath.gif -------------------------------------------------------------------------------- /mr-IN/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/helloworld.gif -------------------------------------------------------------------------------- /mr-IN/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/lava.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-block-test.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-flowers.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-flying.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-game.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-idle.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-install.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-inventory.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-setblock.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-start.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /mr-IN/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/mcpi-tnt.png -------------------------------------------------------------------------------- /mr-IN/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/menu.png -------------------------------------------------------------------------------- /mr-IN/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /mr-IN/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /mr-IN/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Minecraft Pi सह प्रारंभ करणे 3 | hero_image: images/banner.png 4 | description: Minecraftच्या जगात प्रोग्रामिंगचा आपला पहिला अनुभव मिळवा 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: परिचय 21 | - title: तुम्हाला कशाची आवश्यकता असेल 22 | completion: engaged 23 | - title: Minecraft Pi सह प्रारंभ करणे 24 | - title: Minecraft चालवा 25 | - title: Python प्रोग्रामिंग इंटरफेस वापरा 26 | - title: आपण चालता चालता ब्लॉक टाकणे 27 | - title: TNT ब्लॉक्ससह खेळा 28 | completion: internal 29 | - title: वाहत्या लावा सह मजा 30 | - title: पुढे काय? 31 | -------------------------------------------------------------------------------- /mr-IN/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/resources/.keep -------------------------------------------------------------------------------- /mr-IN/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/mr-IN/solutions/.keep -------------------------------------------------------------------------------- /mr-IN/step_1.md: -------------------------------------------------------------------------------- 1 | ## आपण काय तयार करणार आहोत 2 | 3 | या संसाधनात आपण Minecraft Pi, Rasberry Pi यासाठी Minecraft ने तयार केलेल्या विशेष आवृत्ती च्या आभासी जगाचा शोध घ्याल. 4 | 5 | आपण शिकूया की खेळाडूला कसे नियंत्रित करावे, ब्लॉक ला हाताने तयार कसे करावे आणि आपल्या सभोवतालच्या जगाला हाताळण्यासाठी Python इंटरफेसचा वापर कसा करावा. 6 | 7 | ## आपण काय शिकाल 8 | 9 | आपल्या Raspberry Pi सह या स्त्रोताचे अनुसरण करून आपण शिकाल: 10 | 11 | - Minecraft Pi मध्ये कसा प्रवेश करावा आणि एक नवीन विश्व कसे तयार करावे 12 | - Minecraft Pi ला जोडण्यासाठी Python प्रोग्रामिंग वातावरण IDLE चा वापर कसा करावा 13 | - चॅट विंडोवर मजकूर पोस्ट करण्यासाठी, प्लेअरचे समन्वय शोधण्यासाठी, टेलिपोर्ट आणि संरचना तयार करण्यासाठी Minecraft Python API चा वापर कसा करावा 14 | - विविध प्रकारच्या ब्लॉक्ससाठी आयडी संचयित करण्यासाठी व्हेरियबल्स कसे वापरावे 15 | - विशेष गुणधर्मांसह विविध प्रकारचे ब्लॉक ठेवून प्रयोग करणे 16 | 17 | या प्रोजेक्टमध्ये [Raspberry Pi डिजिटल मेकिंग अभ्यासक्रमाचे](https://www.raspberrypi.org/curriculum/) खालील घटक समाविष्ट आहेत: 18 | 19 | - [सोपे प्रोग्राम तयार करण्यासाठी मूलभूत संरचना वापरा](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /mr-IN/step_2.md: -------------------------------------------------------------------------------- 1 | ## आपल्याला कशाची गरज असेल 2 | 3 | ### सॉफ्टवेअर 4 | 5 | #### सॉफ्टवेअर इंस्टालेशन 6 | 7 | Minecraft सप्टेंबर 2014 पासून Raspbian मध्ये डिफॉल्ट स्वरुपात इंस्टॉल केले गेले आहे. 8 | 9 | ![Minecraft Pi desktop icon](images/minecraft-pi-shortcut.png) 10 | 11 | जर आपण Raspbianची जुनी आवृत्ती वापरत असाल तर, टर्मिनल विंडो उघडा आणि खालील कमांड टाइप करा (आपण ऑनलाइन असणे आवश्यक आहे): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | हे संपल्यानंतर, Minecraft Pi आणि Python लाइब्ररि इंस्टॉल केली पाहिजे. 19 | 20 | #### Minecraft ची चाचणी घ्या 21 | 22 | Minecraft चालविण्यासाठी टर्मिनल मध्ये डेस्कटॉप चिन्हावर डबल क्लिक करा किंवा `minecraft-pi` प्रविष्ट करा. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | जेव्हा Minecraft Pi लोड होईल, तेव्हा **Start Game** (गेम सुरू करा) वर क्लिक करा, त्यानंतर **Create new** (नविन बनवा) वर. आपल्याला दिसेल की मुख्य विंडो थोडीशी ऑफसेट आहे. याचा अर्थ आहे की विंडोला जवळ-पास ड्रॅगकरण्यासाठी आपल्या Minecraft विंडोच्या मागची title (शीर्षक) पट्टी पकडावी लागेल. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | आपण आता Minecraft च्या गेममध्ये आहात! 31 | 32 | #### Python ची चाचणी करणे 33 | 34 | जेव्हा Minecraft चालू आहे, आणि जग तयार झाले आहे, तेव्हा `Tab` (टॅब) बटन दाबून आपले लक्ष खेळापासून दूर आणा, जे की आपल्या माउसला मुक्त करेल. डेस्कटॉपवर Python 3 (IDLE) उघडा आणि विंडोजला हलवा, ज्याने की दोन्ही एकमेकांच्या आजू-बाजूला येतील. 35 | 36 | आपण Python विंडोमध्ये थेट कमांड टाइप करू शकता किंवा फाइल तयार करू शकता जेणेकरून आपण आपला कोड सेव्ह करुन त्यास पुन्हा एकदा चालवू शकाल. 37 | 38 | आपल्याला नवीन फाइल तयार करवायची आसल्यास `File > New window` आणि `File > Save` चा वापर करा. आपणास हे कदाचित आपल्या होम फोल्डरमध्ये किंवा नवीन प्रोजेक्ट फोल्डरमध्ये सेव करू शकता. 39 | 40 | Minecraft लायब्ररी आयात करून, खेळाशी कनेक्शन तयार करुन आणि स्क्रीनवर “Hello world” संदेश पोस्ट करुन त्याची चाचणी करुन प्रारंभ करा: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hello world") 48 | ``` 49 | 50 | जर आपण Python विंडोमध्ये थेट कमांड टाइप करीत असाल तर प्रत्येक ओळीनंतर `Enter` (एंटर) दाबा. जर ही फाइल असेल तर `Ctrl + S` सह सेव्ह करा आणि `F5` सह चालवा. जेव्हा आपला कोड चालू असेल तेव्हा आपण आपला संदेश गेममध्ये स्क्रीनवर पहावा. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | जर आपल्याला Minecraft विंडोमध्ये "Hello world" (हॅलो वर्ल्ड) दिसत असेल तर आपण पुढील भागात प्रवेश करता. -------------------------------------------------------------------------------- /mr-IN/step_3.md: -------------------------------------------------------------------------------- 1 | ## Minecraft Pi सह प्रारंभ करणे 2 | 3 | Minecraft हा एक लोकप्रिय सँडबॉक्स ओपन-वर्ल्ड बिल्डिंग गेम आहे. Raspberry Pi साठी Minecraft ची एक विनामूल्य आवृत्ती उपलब्ध आहे; हे प्रोग्रामिंग इंटरफेससह देखील येते. याचा अर्थ गेममध्ये गोष्टी आपोआप तयार करण्यासाठी आपण Python कोडमध्ये कमांड आणि स्क्रिप्ट लिहू शकता. Python शिकण्याचा हा एक चांगला मार्ग आहे! 4 | 5 | ![Minecraft Pi बॅनर](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /mr-IN/step_4.md: -------------------------------------------------------------------------------- 1 | ## Minecraft चालवा 2 | 3 | Minecraft चालविण्यासाठी, टर्मिनल मध्ये डेस्कटॉप चिन्हावर डबल क्लिक करा किंवा `minecraft-pi` प्रविष्ट(टाइप) करा. 4 | 5 | ![](images/menu.png) 6 | 7 | जेव्हा Minecraft Pi लोड होईल, तेव्हा **Start Game** (गेम सुरू करा) वर क्लिक करा, त्यानंतर **Create new** (नविन बनवा) वर. आपल्याला दिसेल की मुख्य विंडो थोडीशी ऑफसेट आहे. याचा अर्थ आहे की विंडोला जवळ-पास ड्रॅगकरण्यासाठी आपल्या Minecraft विंडोच्या मागची title (शीर्षक) पट्टी पकडावी लागेल. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | आपण आता Minecraft च्या गेममध्ये आहात! भोवती फिरा मग, गोष्टी(थिंग्ज) हॅक करा आणि गोष्टी तयार करा! 12 | 13 | आजू-बाजूचे दिसण्यासाठी माउस वापरा आणि कीबोर्डवरील खालील बटणे वापरा: 14 | 15 | | बटन | कार्य | 16 | |:------------:|:---------------------:| 17 | | W | पुढे | 18 | | A | डावीकडे | 19 | | S | मागे | 20 | | D | उजवीकडे | 21 | | E | यादी | 22 | | Space | जागा | 23 | | Double Space | दुहेरी जागा | 24 | | Esc | विराम(pause)/गेम मेनू | 25 | | Tab | माउस कर्सर सोडा | 26 | 27 | आपण माउसच्या स्क्रोल व्हीलसह त्वरित ड्रॉ पॅनेलमधून एखादी वस्तू निवडू शकता (किंवा आपल्या कीबोर्डवरील नंबर वापरा) किंवा `E` दाबा आणि यादीमधून एखादी गोष्ट निवडा. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | हवेत उड्डाण करण्यासाठी आपण स्पेस बारवर डबल टॅप देखील करू शकता. जेव्हा आपण स्पेस बार सोडता तेव्हा आपण उड्डाण करणे थांबवाल आणि आपण त्यास पुन्हा दोनदा टॅप केल्यास आपण परत जमिनीवर याल. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | आपल्या हातात तलवार घेऊन, आपण आपल्या समोर असलेले ब्लॉक काढण्यासाठी (किंवा खोदण्यासाठी) त्या वर क्लिक करू शकता. आपल्या हातात एका ब्लॉकसह, तो ब्लॉक आपल्या समोर ठेवण्यासाठी आपण राइट क्लिक वापरू शकता किंवा ब्लॉक काढण्यासाठी डावे क्लिक करू शकता. -------------------------------------------------------------------------------- /mr-IN/step_5.md: -------------------------------------------------------------------------------- 1 | ## Python प्रोग्रामिंग इंटरफेसचा वापर करा 2 | 3 | जेव्हा Minecraft चालू आहे, आणि जग तयार झाले आहे, तेव्हा `Tab` (टॅब) बटन दाबून आपले लक्ष खेळापासून दूर न्या, ज्यामुळे आपला माउसला मुक्त होईल. अ‍ॅप्लिकेशन मेन्यूमधून Python 3 उघडा आणि विंडोज बाजूला करा जेणेकरून दोघ आजुबाजूला येतील. 4 | 5 | आपण Python विंडोमध्ये कमांड टाइप करू शकता किंवा फाइल तयार करू शकता जेणेकरून आपण आपला कोड सेव्ह करू शकता आणि त्यास पुन्हा एकदा चालवू शकाल. 6 | 7 | आपणास नवीन फाइल तयार करायची असल्यास `File > New window` आणि `File > Save` चा वापर करा. आपणास हे कदाचित आपल्या होम फोल्डरमध्ये किंवा नवीन प्रोजेक्ट फोल्डरमध्ये सेव्ह करू शकता. 8 | 9 | Minecraft लायब्ररी आयात करून, खेळाशी कनेक्शन तयार करुन आणि स्क्रीनवर “Hello world” संदेश पोस्ट करुन त्याची चाचणी करुन प्रारंभ करा: 10 | 11 | ```python 12 | from mcpi.minecraft import Minecraft 13 | 14 | mc = Minecraft.create() 15 | 16 | mc.postToChat("Hello world") 17 | ``` 18 | 19 | जर आपण Python विंडोमध्ये थेट कमांड टाइप करीत असाल तर प्रत्येक ओळीनंतर `Enter`(एंटर) दाबा. जर ही फाइल असेल तर, `Ctrl + S` सह सेव्ह करा आणि `F5` सह चालवा. जेव्हा आपला कोड चालू असेल, तेव्हा आपण आपला संदेश गेममध्ये स्क्रीनवर दिसला पाहिजे. 20 | 21 | ![](images/helloworld.gif) 22 | 23 | ### आपले लोकेशन शोधा 24 | 25 | आपले स्थान शोधण्यासाठी, टाइप करा: 26 | 27 | ```python 28 | pos = mc.player.getPos() 29 | ``` 30 | 31 | `pos` आता आपले स्थान आहे; `pos.x`, `pos.y` आणि `pos.z` च्या बरोबर कोऑर्डिनेट्स च्या संचाच्या प्रत्येक भागाला एक्सेस करा. 32 | 33 | वैकल्पिकरित्या, कोऑर्डिनेट्स (निर्देशांक) स्वतंत्र व्हेरिएबल्समध्ये आणण्याचा एक चांगला मार्ग म्हणजे Pythonचे अनपॅकिंग तंत्र वापरणे: 34 | 35 | ```python 36 | x, y, z = mc.player.getPos() 37 | ``` 38 | 39 | आता `x`, `y`, आणि `z` आपल्या स्थानाच्या कोऑर्डिनेट्सच्या प्रत्येक भागात आहे. `x` आणि `z` चालण्याचे दिशानिर्देश आहेत (पुढे / मागे आणि डावीकडे / उजवीकडे) आणि `y` वर / खाली आहे. 40 | 41 | लक्षात घ्या `getPos()` त्या वेळी प्लेअरचे स्थान दर्शविते आणि आपण स्थान हलविल्यास आपल्याला पुन्हा फंक्शन कॉल करावे लागेल किंवा संचयित स्थान वापरावे लागेल. 42 | 43 | ### टेलिपोर्ट 44 | 45 | तसेच आपले वर्तमान स्थान शोधून काढण्यासाठी आपण टेलिपोर्टसाठी विशिष्ट स्थान निर्दिष्ट करू शकता. 46 | 47 | ```python 48 | x, y, z = mc.player.getPos() 49 | mc.player.setPos(x, y+100, z) 50 | ``` 51 | 52 | हे आपल्या प्लेअरला हवेत 100 स्पेस वर घेऊन जाईल. याचा अर्थ असा की आपण आकाशाच्या मध्यभागी टेलिपोर्ट कराल आणि आपण जिथे प्रारंभ केला तिथे सरळ खाली पडाल. 53 | 54 | इतर कोठेतरी टेलिपोर्टिंग करून पहा! 55 | 56 | ### ब्लॉक सेट करा 57 | 58 | आपण `mc.setBlock()` सह निर्देशांकांच्या सेटवर एकच ब्लॉक ठेवू शकता: 59 | 60 | ```python 61 | x, y, z = mc.player.getPos() 62 | mc.setBlock(x+1, y, z, 1) 63 | ``` 64 | 65 | आता आपण जिथे उभे आहात तिथे आता दगडी ब्लॉक दिसला पाहिजे. जर ते तत्काळ आपल्या समोर नसेल तर ते आपल्या बाजूला किंवा मागे असू शकते. Minecraft विंडोवर परत जा आणि आपल्या समोर राखाडी ब्लॉक दिसत नाही तोपर्यंत जागेवर फिरण्यासाठी माउस वापरा. 66 | 67 | ![](images/mcpi-setblock.png) 68 | 69 | `set block`(ब्लॉक सेट करा) ह्या साठी दिलेले तर्क आहेत`x`, `y`, `z` आणि `id`. `(x, y, z)` जगातील स्थिती संदर्भित करते (आम्ही `x + 1` प्लेयर सह जिथे उभे आहे तेथून एक ब्लॉक निर्दिष्ट केला आहे) आणि `id` आम्ही ठेऊ इच्छित असलेल्या ब्लॉकचा प्रकार दर्शवितो. `1` दगड आहे. 70 | 71 | आपण प्रयत्न करू शकता असे इतर ब्लॉक: 72 | 73 | Air: 0 74 | Grass: 2 75 | Dirt: 3 76 | 77 | 78 | आता ब्लॉक डोळ्यांसमोर ठेवून, त्यास दुसर्‍या कशामध्ये बदलण्याचा प्रयत्न करा: 79 | 80 | ```python 81 | mc.setBlock(x+1, y, z, 2) 82 | ``` 83 | 84 | आपल्याला आपल्या डोळ्यासमोर राखाडी दगडाचा ब्लॉक बदलतांना दिसला पाहिजे! 85 | 86 | ![](images/mcpi-setblock2.png) 87 | 88 | #### ब्लॉक स्थिर 89 | 90 | आपल्याला त्यांची नावे माहित असल्यास आपण ब्लॉक सेट करण्यासाठी इनबिल्ट ब्लॉक स्थिरांक (कॉन्टस्टेंट) वापरू शकता. आपल्याला प्रथम एक अजून `import`(आयात) ओळीची आवश्यकता आहे. 91 | 92 | ```python 93 | from mcpi import block 94 | ``` 95 | 96 | आता आपण ब्लॉक ठेवण्यासाठी पुढील गोष्टी लिहू शकता: 97 | 98 | ```python 99 | mc.setBlock(x+3, y, z, block.STONE.id) 100 | ``` 101 | 102 | ब्लॉक आयडी अंदाज करणे खूपच सोपे आहे, फक्त सर्व अक्षर कॅपिटल मध्ये लिहा, परंतु त्यांची नावे ज्या पद्धतीने वापरली जातात त्याकरिता येथे काही उदाहरणे दिली आहेत. 103 | 104 | WOOD_PLANKS 105 | WATER_STATIONARY 106 | GOLD_ORE 107 | GOLD_BLOCK 108 | DIAMOND_BLOCK 109 | NETHER_REACTOR_CORE 110 | 111 | 112 | ### ब्लॉक व्हेरिएबलच्या रूपात 113 | 114 | जर आपल्याला एखाद्या ब्लॉकची आयडी माहित असेल तर ती व्हेरिएबल म्हणून सेट करणे उपयुक्त ठरू शकते. आपण नाव किंवा Integer Id (पूर्ण नावाची ओळख) वापरू शकता. 115 | 116 | ```python 117 | dirt = 3 118 | mc.setBlock(x, y, z, dirt) 119 | ``` 120 | 121 | किंवा 122 | 123 | ```python 124 | dirt = block.DIRT.id 125 | mc.setBlock(x, y, z, dirt) 126 | ``` 127 | 128 | ### विशेष ब्लॉक 129 | 130 | अशी काही ब्लॉक्स आहेत ज्यात अतिरिक्त गुणधर्म आहेत, जसे की ऊनची अतिरिक्त सेटिंग आहे ज्यामध्ये आपण रंग निर्दिष्ट करू शकता. हे सेट करण्यासाठी पर्यायी चौथा पॅरामीटर `setBlock` (ब्लॉक सेट करा) वापरा: 131 | 132 | ```python 133 | wool = 35 134 | mc.setBlock(x, y, z, wool, 1) 135 | ``` 136 | 137 | येथे चौथा पॅरामीटर `1` ऊलचा रंग नारंगीवर सेट करतो. चौथ्या पॅरामीटरशिवाय ते डीफॉल्टवर सेट केले आहे (`0`) जे पांढरे आहे. आणखी काही रंग आहेत: 138 | 139 | 2: Magenta 140 | 3: Light Blue 141 | 4: Yellow 142 | 143 | 144 | आणखी काही संख्या वापरून पहा आणि ब्लॉकमधील बदल पहा! 145 | 146 | अतिरिक्त गुणधर्म असलेले इतर ब्लॉक्स म्हणजे लाकूड (`17`): ओक, स्पृस (देवदार), बर्च, इत्यादी; उंच गवत (`31`): झुडूप, गवत, फर्न; मशाल (`50`): पूर्व, पश्चिम, उत्तर, दक्षिण दर्शविणारा; आणि अधिक. संपूर्ण माहितीसाठी [API reference](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) पहा. 147 | 148 | ### एकाधिक ब्लॉक्स सेट करा 149 | 150 | `setBlock` च्या सोबत एक ब्लॉक बनवता बनवता आपण `setBlocks` सह एकाच वेळी खूप जागा पण भरू शकता: 151 | 152 | ```python 153 | stone = 1 154 | x, y, z = mc.player.getPos() 155 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, stone) 156 | ``` 157 | 158 | यामुळे 10 x 10 x 10 घन भरीव दगड भरेल. 159 | 160 | ![](images/mcpi-setblocks.png) 161 | 162 | आपण `setBlocks` फंक्शन सोबत मोठे परिमाण तयार करू शकता पण ते निर्माण करण्यास जास्त वेळ लागू शकेल! -------------------------------------------------------------------------------- /mr-IN/step_6.md: -------------------------------------------------------------------------------- 1 | ## आपण चालता चालता ब्लॉक टाकणे 2 | 3 | आता आपल्याला ब्लॉक कसे सोडवायचे हे माहित झाले आहे, आता आपण चालत असताना ब्लॉक ड्रॉप करण्यासाठी आमच्या फिरत्या स्थानाचा वापर करूया. 4 | 5 | आपण जिथे जिथे जाल तिथे खालील कोड आपल्या मागे एक फ्लॉवर सोडेल: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | आता थोड्या वेळासाठी पुढे जा आणि आपण मागे सोडलेली फुले पाहण्यासाठी मागे वळा. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | कारण आपण `while True` (जेव्हा हे सत्य आहे) हा लूप उपयोग केला होता म्हणून हा नेहमी चालत राहील. हे बंद करण्या साठी Python विंडो मध्ये `Ctrl + C` दाबा. 26 | 27 | हवेतून उड्डाण करण्याचा प्रयत्न करा आणि आपण आकाशात सोडलेली फुले पहा: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | जेव्हा जेव्हा खेळाडू गवता वर चालतात तेव्हा आम्हाला फक्त फुले टाकायची असतील तर काय करावे? कोणता ब्लॉक कश्या प्रकारचा आहे हे शोधण्यासाठी आपण `getBlock` वापरू शकता: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # player position (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # block ID 36 | print(this_block) 37 | ``` 38 | 39 | हे आपल्याला त्या ब्लॉकचे स्थान दाखवतो *ज्यात* आपण उभे आहोत ( हे `0` असेल - एक हवेचा ब्लॉक). आम्ही जाणून घेऊ इच्छित आहोत की आम्ही कोणत्या प्रकारच्या ब्लॉक वर उभे आहोत *on*. यासाठी आम्ही `y` वरून 1 वजा करतोआणि `getBlock()` वापरतो, ज्यामुळे हे निर्धारित होते की आपण कोणत्या प्रकारच्या ब्लॉकवर उभे आहोत: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # player position (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # block ID 44 | print(block_beneath) 45 | ``` 46 | 47 | हे आम्हाला प्लेअर उभा असलेल्या ब्लॉकचा आयडी सांगतात. 48 | 49 | आपण सध्या ज्यावर उभे आहात त्याचा ब्लॉक आयडी मुद्रित करण्यासाठी लूप चालवून याची चाचणी करा: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | आम्ही फ्लॉवर लावू की नाही हे निवडण्यासाठी आम्ही `if` चिन्ह वापरू शकतो: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # player position (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # block ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | कदाचित ह्या नंतर आम्ही ज्या टाइल वर उभे आहोत त्याला आम्ही गवता मध्ये बदलू शकतो जर ते आधीच गवत नाही आहे: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | आता आपण पुढे जाऊ शकतो आणि जर आपण गवता वर चालत असू, तरआपण मागे एक फूल सोडून देऊ. जर पुढील ब्लॉक गवत नसेल, तर ते ते गवतमध्ये बदलते. जेव्हा आपण मागे वळायला लागतो आणि परत चालतो, तेव्हा आपण मागे एक फूल सोडून देतो. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /mr-IN/step_7.md: -------------------------------------------------------------------------------- 1 | ## TNT ब्लॉक्ससह खेळा 2 | 3 | आणखी एक मनोरंजक ब्लॉक TNT आहे! एक सामान्य TNT ब्लॉक ठेवण्यासाठी ह्याचा वापर करा: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | तथापि, हा TNT ब्लॉक बर्‍यापैकी कंटाळवाणा आहे. `data` (डेटा) ला `1` या रूपात लागू करण्याचा प्रयत्न करा: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | आता आपली तलवार वापरा आणि टीएनटी ब्लॉक वर लेफ्ट क्लिक करा: ते सक्रिय होईल आणि काही सेकंदातच त्याचा स्फोट होईल! 20 | 21 | आता TNT ब्लॉक्सचा एक मोठा घन बनवण्याचा प्रयत्न करा! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | आता आपल्याला TNT ब्लॉक्समध्ये भरलेला एक मोठा घन दिसेल. जा आणि त्यापैकी एक ब्लॉक सक्रिय करा आणि नंतर कार्यक्रम पाहण्यासाठी पळून जा! एकाच वेळी बर्‍याच गोष्टी बदलत असल्यामुळे ग्राफिक्स प्रस्तुत करणे खरोखरच हळू होईल. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /mr-IN/step_8.md: -------------------------------------------------------------------------------- 1 | ## वाहत्या लावा सह गम्मत 2 | 3 | खेळायला खूप मजा असलेला एक ब्लॉक म्हणजे वाहता लावा. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | आपण आत्ताच ठेवलेला ब्लॉक शोधा आणि आपल्याला त्या ब्लॉकवरून जमिनीवर वाहणारा लावा दिसला पाहिजे. 18 | 19 | लावा बद्दल छान गोष्ट अशी आहे की जेव्हा ते थंड होते तेव्हा ते खडक होते. आपल्या जगातील दुसर्‍या ठिकाणी जा आणि हे करून पहा: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | आपण लावाला कमी-अधिक प्रमाणात प्रवाहीत करण्यासाठी `sleep` (स्लीप) हे पॅरामीटर समायोजित करू शकता. 42 | 43 | ![लावा](images/lava.png) -------------------------------------------------------------------------------- /mr-IN/step_9.md: -------------------------------------------------------------------------------- 1 | ## पुढे काय? 2 | 3 | आता आपण बरेच काही करू शकतो कारण आपण Minecraft जगाच्या भोवताली आपला रस्ता आणि Python इंटरफ़ेस चा उपयोग कसा करायचा हे जाणतो. 4 | 5 | ### नेटवर्क गेम 6 | 7 | जर एकापेक्षा जास्त लोक Raspberry Pi ला स्थानिक नेटवर्कशी जोडत असतील तर, ते त्याच Minecraft जगात सामील होऊ शकतात आणि एकत्र खेळू शकतात. खेळाडू Minecraft च्या जगात एकमेकांना पाहू शकतात. 8 | 9 | ### API संदर्भ 10 | 11 | कार्याच्या अधिक विस्तृत दस्तऐवजीकरणासाठी आणि ब्लॉक आयडींच्या संपूर्ण यादीसाठी [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html) वर एक API संदर्भ पहा. 12 | 13 | 14 | *** 15 | या प्रकल्पाचे भाषांतर स्वयंसेवकांनी केले: 16 | 17 | Aniket Prashant Fegade 18 | 19 | Samruddhi Misal 20 | 21 | स्वयंसेवकांचे आभार, आम्ही जगभरातील लोकांना त्यांच्या भाषेतून शिकण्याची संधी देऊ शकतो. आपण आम्हाला भाषांतर करण्यासाठी स्वयंसेवा करून अधिक लोकांपर्यंत पोहोचण्यास मदत करू शकता - अधिक माहिती [rpf.io/translate](https://rpf.io/translate) वर. -------------------------------------------------------------------------------- /nl-NL/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/banner.png -------------------------------------------------------------------------------- /nl-NL/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/blockbeneath.gif -------------------------------------------------------------------------------- /nl-NL/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/helloworld.gif -------------------------------------------------------------------------------- /nl-NL/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/lava.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-block-test.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-flowers.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-flying.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-game.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-idle.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-install.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-inventory.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-setblock.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-start.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /nl-NL/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/mcpi-tnt.png -------------------------------------------------------------------------------- /nl-NL/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/menu.png -------------------------------------------------------------------------------- /nl-NL/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /nl-NL/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /nl-NL/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Aan de slag met Minecraft Pi 3 | hero_image: images/banner.png 4 | description: Dit is je eerste kennismaking met het programmeren van de wereld van 5 | Minecraft 6 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 7 | theme: yellow 8 | duration: 2 9 | listed: true 10 | ingredient: false 11 | copyedit: true 12 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 13 | interests: games 14 | technologies: python 15 | site_areas: projects 16 | hardware: '' 17 | software: python 18 | version: 3 19 | last_tested: 2017-01-01 20 | steps: 21 | - title: Wat ga je maken? 22 | - title: Wat heb je nodig 23 | completion: engaged 24 | - title: Aan de slag met Minecraft Pi 25 | - title: Voer Minecraft uit 26 | - title: Gebruik de programmeerinterface van Python 27 | - title: Blokken laten vallen terwijl je loopt 28 | - title: Spelen met TNT-blokken 29 | completion: internal 30 | - title: Plezier met vloeiende lava. 31 | - title: Wat kun je verder nog doen? 32 | -------------------------------------------------------------------------------- /nl-NL/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/resources/.keep -------------------------------------------------------------------------------- /nl-NL/solutions/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/nl-NL/solutions/.keep -------------------------------------------------------------------------------- /nl-NL/step_1.md: -------------------------------------------------------------------------------- 1 | ## Wat ga je maken? 2 | 3 | In dit project verken je de virtuele wereld van Minecraft Pi, de speciale editie van Minecraft gemaakt voor Raspberry Pi. 4 | 5 | Je leert hoe je de speler kunt besturen, handmatig met blokken kunt bouwen en de Python-interface kunt gebruiken om de wereld om je heen te manipuleren. 6 | 7 | ## Wat ga je leren 8 | 9 | Door dit project met je Raspberry Pi te maken, leer je: 10 | 11 | - Hoe toegang te krijgen tot Minecraft Pi en een nieuwe wereld te creëren 12 | - Hoe de Python-programmeeromgeving IDLE te gebruiken om verbinding te maken met Minecraft Pi 13 | - Hoe de Minecraft Python API te gebruiken om tekst naar het chatvenster te posten, de coördinaten van de speler te vinden, structuren te teleporteren en te bouwen 14 | - Hoe variabelen te gebruiken om ID's op te slaan voor verschillende soorten blokken 15 | - Experimenteren met het plaatsen van verschillende soorten blokken met speciale attributen 16 | 17 | Dit project behandelt elementen uit de volgende onderdelen van het [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/): 18 | 19 | - [Gebruik eenvoudige programmeerconstructies om simpele programma's te maken](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /nl-NL/step_2.md: -------------------------------------------------------------------------------- 1 | ## Wat heb je nodig 2 | 3 | ### Software 4 | 5 | #### Software installatie 6 | 7 | Minecraft is standaard in Raspbian geïnstalleerd sinds september 2014. 8 | 9 | ![Minecraft Pi-bureaubladpictogram](images/minecraft-pi-shortcut.png) 10 | 11 | Als je een oudere versie van Raspbian gebruikt, open je een terminalvenster en typ je de volgende opdrachten (je moet online zijn): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | Zodra dat is voltooid, moeten Minecraft Pi en de Python-bibliotheek geïnstalleerd zijn. 19 | 20 | #### Test Minecraft 21 | 22 | Dubbelklik op het bureaubladpictogram om Minecraft uit te voeren of voer `minecraft-pi` in de terminal in. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | Wanneer Minecraft Pi is geladen, klik je op **Start Game**, vervolgens op **Create new**. Je zult merken dat het venster enigszins is verschoven. Dit betekent dat als je het venster wilt slepen, je de titelbalk achter het Minecraft-venster moet pakken. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | Je speelt nu een spelletje Minecraft! 31 | 32 | #### Test Python 33 | 34 | Terwijl Minecraft actief is en de wereld gecreëerd is, haal je je focus weg van het spel door op de `Tab` toets te drukken, waardoor je muis vrijkomt. Open Python 3 (IDLE) op het bureaublad en verplaats de vensters zodat ze naast elkaar staan. 35 | 36 | Je kunt opdrachten rechtstreeks in het Python-venster typen of een bestand maken zodat je jouw code kunt opslaan en deze een andere keer opnieuw kunt uitvoeren. 37 | 38 | Als je een nieuw bestand wilt maken, ga je naar `File > New window` en `File > Save`. Je wilt dit waarschijnlijk in je thuismap of een nieuwe projectmap opslaan. 39 | 40 | Begin met het importeren van de Minecraft-bibliotheek, maak een verbinding met de game en test het door het bericht "Hallo wereld" op het scherm te plaatsen: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hallo wereld") 48 | ``` 49 | 50 | Als je opdrachten rechtstreeks in het Python-venster invoert, druk je na elke regel op `Enter`. Als het een bestand is, sla het op met `Ctrl + S` en voer het uit met `F5`. Wanneer jouw code wordt uitgevoerd, zou je jouw bericht op het scherm in het spel moeten zien. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | Als je "Hallo wereld" ziet in het Minecraft-venster, kun je doorgaan naar de volgende stap. -------------------------------------------------------------------------------- /nl-NL/step_3.md: -------------------------------------------------------------------------------- 1 | ## Aan de slag met Minecraft Pi 2 | 3 | Minecraft is een populair sandbox-spel voor het bouwen van een open wereld. Er is een gratis versie van Minecraft beschikbaar voor de Raspberry Pi; het heeft een ingebouwde programmeerinterface. Dit betekent dat je opdrachten en scripts in Python-code kunt schrijven om automatisch dingen in het spel te bouwen. Het is een geweldige manier om Python te leren! 4 | 5 | ![Minecraft Pi banner](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /nl-NL/step_4.md: -------------------------------------------------------------------------------- 1 | ## Voer Minecraft uit 2 | 3 | Om Minecraft Pi uit te voeren, open je het vanuit het bureaubladmenu of typ je `minecraft-pi` in de terminal. 4 | 5 | ![](images/menu.png) 6 | 7 | Wanneer Minecraft Pi is geladen, klik je op **Start Game**, gevolgd door **Create new**. Je zult merken dat het venster enigszins is verschoven. Dit betekent dat als je het venster wilt slepen, je de titelbalk achter het Minecraft-venster moet pakken. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | Je speelt nu een spelletje Minecraft! Ga rondlopen, dingen hacken en dingen bouwen! 12 | 13 | Gebruik de muis om rond te kijken en gebruik de volgende toetsen op het toetsenbord: 14 | 15 | | Toets | Actie | 16 | |:--------------:|:----------------------:| 17 | | W | Vooruit | 18 | | A | Links | 19 | | S | Achteruit | 20 | | D | Rechts | 21 | | E | Inventaris | 22 | | Spatie | Springen | 23 | | Dubbele spatie | Vliegen / Vallen | 24 | | Esc | Pauze / Spelmenu | 25 | | Tab | Laat de muiscursor los | 26 | 27 | Je kunt een item selecteren uit het paneel voor snel tekenen met het wiel van de muis (of de cijfers op je toetsenbord gebruiken) of op `E` drukken en iets uit de inventaris selecteren. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | Je kunt ook tweemaal op de spatiebalk tikken om de lucht in te vliegen. Je stopt met vliegen wanneer je de spatiebalk loslaat en als je nogmaals dubbelklikt, val je terug op de grond. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | Met het zwaard in je hand kun je op blokken voor je klikken om ze te verwijderen (of om te graven). Met een blok in je hand kun je met de rechtermuisknop dat blok voor je plaatsen of met de linkermuisknop een blok verwijderen. -------------------------------------------------------------------------------- /nl-NL/step_6.md: -------------------------------------------------------------------------------- 1 | ## Blokken laten vallen terwijl je loopt 2 | 3 | Nu je weet hoe je blokken moet laten vallen, laten we onze bewegende locatie gebruiken om blokken te laten vallen wanneer je loopt. 4 | 5 | De volgende code laat een bloem achter je neer vallen, waar je ook loopt: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | Loop nu een tijdje vooruit en draai je om om de bloemen te zien die je achter je hebt gelaten. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | Omdat we een `while True` lus hebben gebruikt, zal dit voor altijd zal doorgaan. Om het te stoppen, druk je op `Ctrl + C` in het Python-venster. 26 | 27 | Probeer door de lucht te vliegen en zie de bloemen die je in de lucht achterlaat: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | Wat als we alleen bloemen willen laten vallen als de speler op gras loopt? We kunnen `getBlock` gebruiken om erachter te komen welk type een blok is: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # spelerpositie (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # blok ID 36 | print(this_block) 37 | ``` 38 | 39 | Dit vertelt je de locatie van het blok waar je *in* staat (dit zal `0` - een luchtblok zijn). We willen weten *op* welk type blok we staan. Hiervoor trekken we 1 af van de waarde `y` en gebruiken we `getBlock()` om te bepalen op welk type blok we staan: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # spelerpositie (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # blok ID 44 | print(block_beneath) 45 | ``` 46 | 47 | Dit vertelt ons het id van het blok waarop de speler staat. 48 | 49 | Test dit door een lus uit te voeren om het blok-id te tonen van waar je nu op staat: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | We kunnen een `if` instructie gebruiken om te kiezen of we een bloem planten of niet: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # spelerpositie (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # blok ID 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | Misschien kunnen we vervolgens de tegel waarop we staan in gras veranderen als het nog geen gras is: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | Nu kunnen we vooruit lopen en als we op gras lopen, laten we een bloem achter. Als het volgende blok geen gras is, wordt het gras. Als we ons omdraaien en teruglopen, laten we nu een bloem achter ons. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /nl-NL/step_7.md: -------------------------------------------------------------------------------- 1 | ## Spelen met TNT-blokken 2 | 3 | Een ander interessant blok is TNT! Om een normaal TNT-blok te plaatsen, gebruik: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | Dit TNT-blok is echter behoorlijk saai. Probeer `data` als `1` toe te passen: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | Gebruik nu je zwaard en klik met de linkermuisknop op het TNT-blok: het wordt geactiveerd en zal binnen enkele seconden exploderen! 20 | 21 | Probeer nu een grote kubus van TNT-blokken te maken! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | Nu zie je een grote kubus vol TNT-blokken. Activeer een van de blokken en ren dan weg om de show te bekijken! Het zal even duren om de afbeeldingen weer te geven, omdat zoveel dingen tegelijkertijd veranderen. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /nl-NL/step_8.md: -------------------------------------------------------------------------------- 1 | ## Plezier met vloeiende lava. 2 | 3 | Een blok dat erg leuk is om mee te spelen is stromende lava. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | Vind het blok dat je zojuist hebt geplaatst en je zou de lava van het blok naar de grond moeten zien stromen. 18 | 19 | Het leuke van lava is dat wanneer het afkoelt, het rots wordt. Ga naar een andere locatie in je wereld en probeer dit: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3, y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | Je kunt de `sleep` parameters aanpassen om meer of minder lava te laten stromen. 42 | 43 | ![lava](images/lava.png) -------------------------------------------------------------------------------- /nl-NL/step_9.md: -------------------------------------------------------------------------------- 1 | ## Wat kun je verder nog doen? 2 | 3 | Er is genoeg dat je kunt doen nu je de weg kent in de Minecraft-wereld en hoe je de Python-interface kunt gebruiken. 4 | 5 | ### Netwerkspel 6 | 7 | Als meerdere mensen Raspberry Pi's verbinden met een lokaal netwerk, kunnen ze lid worden van dezelfde Minecraft-wereld en samen spelen. Spelers kunnen elkaar zien in de Minecraft-wereld. 8 | 9 | ### API referentie 10 | 11 | Zie voor een uitgebreidere documentatie van functies en een volledige lijst met blok-id's de API-referentie op [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). 12 | 13 | 14 | *** 15 | Dit project werd vertaald door vrijwilligers: 16 | 17 | Sanneke van der Meer 18 | 19 | Robert-Jan Kempenaar 20 | 21 | Dankzij vrijwilligers kunnen we mensen over de hele wereld de kans geven om in hun eigen taal te leren. Jij kunt ons helpen meer mensen te bereiken door vrijwillig te starten met vertalen - meer informatie op [rpf.io/translate](https://rpf.io/translate). -------------------------------------------------------------------------------- /overview.md: -------------------------------------------------------------------------------- 1 | In this resource you will explore the virtual world of Minecraft Pi, the special edition of Minecraft made for Raspberry Pi. 2 | 3 | You will learn how to control the player, manually build with blocks and use the Python interface to manipulate the world around you. 4 | -------------------------------------------------------------------------------- /sk-SK/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/banner.png -------------------------------------------------------------------------------- /sk-SK/images/blockbeneath.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/blockbeneath.gif -------------------------------------------------------------------------------- /sk-SK/images/helloworld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/helloworld.gif -------------------------------------------------------------------------------- /sk-SK/images/lava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/lava.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-block-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-block-test.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-flowers-grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-flowers-grass.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-flowers-sky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-flowers-sky.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-flowers.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-flying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-flying.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-game.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-idle.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-install.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-inventory.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-setblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-setblock.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-setblock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-setblock2.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-setblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-setblocks.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-start.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-tnt-blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-tnt-blocks.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-tnt-explode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-tnt-explode.png -------------------------------------------------------------------------------- /sk-SK/images/mcpi-tnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/mcpi-tnt.png -------------------------------------------------------------------------------- /sk-SK/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/menu.png -------------------------------------------------------------------------------- /sk-SK/images/minecraft-pi-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/minecraft-pi-banner.png -------------------------------------------------------------------------------- /sk-SK/images/minecraft-pi-shortcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/images/minecraft-pi-shortcut.png -------------------------------------------------------------------------------- /sk-SK/meta.yml: -------------------------------------------------------------------------------- 1 | --- 2 | title: Začíname s Minecraft Pi 3 | hero_image: images/banner.png 4 | description: Zistite, ako chutí programovanie vo svete Minecraft-u 5 | original_url: https://raspberrypi.org/learning/getting-started-with-minecraft-pi 6 | theme: yellow 7 | duration: 2 8 | listed: true 9 | ingredient: false 10 | copyedit: true 11 | curriculum: 2, design-0, programming-2, phys-comp-0, manufacture-0, community-0 12 | interests: games 13 | technologies: python 14 | site_areas: projects 15 | hardware: '' 16 | software: python 17 | version: 3 18 | last_tested: 2017-01-01 19 | steps: 20 | - title: Úvod 21 | - title: Čo budete potrebovať 22 | completion: engaged 23 | - title: Začíname s Minecraft Pi 24 | - title: Spustite Minecraft 25 | - title: Použite rozhranie programovacieho jazyka Python 26 | - title: Kladenie blokov počas chôdze 27 | - title: Zábava s blokmi TNT 28 | completion: internal 29 | - title: Zábava s tečúcou lávou. 30 | - title: Čo ďalej? 31 | -------------------------------------------------------------------------------- /sk-SK/resources/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/getting-started-with-minecraft-pi/54d8613788926fd53500c1d2e17121caec668e58/sk-SK/resources/.keep -------------------------------------------------------------------------------- /sk-SK/step_1.md: -------------------------------------------------------------------------------- 1 | ## Čo urobíte 2 | 3 | V tomto materiáli preskúmate virtuálny svet Minecraft Pi - špeciálne vydanie Minecraft-u pre Raspberry Pi. 4 | 5 | Naučíte sa ovládať hráča, manuálne stavať bloky a používať rozhranie jazyka Python na manipuláciu so svetom okolo vás. 6 | 7 | ## Čo sa naučíte 8 | 9 | Nasledovaním tohto zdroja s Raspberry Pi sa naučíte: 10 | 11 | - Ako spustiť Minecraft Pi a vytvoriť nový svet 12 | - Ako použiť programovacie prostredie jazyka Python IDLE na pripojenie k Minecraft Pi 13 | - Ako používať Minecraft Python API na odosielanie textu do okna konverzácie, zistiť súradníce hráča, teleportovať sa a stavať budovy 14 | - Ako používať premenné na ukladanie ID pre rôzne typy blokov 15 | - Experimentovať s umiestňovaním rôznych typov blokov so špeciálnymi atribútmi 16 | 17 | Tento materiál pokrýva časti z nasledujúcich zdrojov kurikula [Raspberry Pi Digital Making](https://www.raspberrypi.org/curriculum/): 18 | 19 | - [Používanie základných programovacích konštrukcií pre tvorbu jednoduchých programov](https://www.raspberrypi.org/curriculum/programming/creator) -------------------------------------------------------------------------------- /sk-SK/step_2.md: -------------------------------------------------------------------------------- 1 | ## Čo budete potrebovať 2 | 3 | ### Softvér 4 | 5 | #### Inštalácia softvéru 6 | 7 | Minecraft je predinštalovaný v Raspbian-e od septembra roku 2014. 8 | 9 | ![Minecraft Pi desktop icon](images/minecraft-pi-shortcut.png) 10 | 11 | Ak používate staršiu verziu systému Raspbian, otvorte okno terminálu a zadajte nasledujúce príkazy (musíte byť pripojený): 12 | 13 | ```bash 14 | sudo apt-get update 15 | sudo apt-get install minecraft-pi 16 | ``` 17 | 18 | Po skončení by stem mali mať nainštalovaný Minecraft Pi spolu s knižnicou pre jazyk Python. 19 | 20 | #### Testujeme Minecraft 21 | 22 | Ak chcete spustiť aplikáciu Minecraft, dvakrát kliknite na ikonu na pracovnej ploche alebo zadajte príkaz `minecraft-pi` do terminálu. 23 | 24 | ![](images/mcpi-start.png) 25 | 26 | Keď sa Minecraft Pi spustí, kliknite na **Start Game** a následne na **Create new**. Všimnete si, že príslušné okno je mierne posunuté. To znamená, že ak chcete okno presunúť, musíte ho chytiť za titulok okna za oknom aplikácie Minecraft. 27 | 28 | ![](images/mcpi-game.png) 29 | 30 | Teraz ste v hre Minecraft! 31 | 32 | #### Testujeme Python 33 | 34 | Keď je Minecraft spustený a svet je vytvorený, odísť z hry môžete stlačením klávesu `Tab`, ktorý vám uvoľní myš. Na pracovnej ploche otvorte prostredie IDLE (nie IDLE3) a usporiadajte okná tak, aby boli vedľa seba. 35 | 36 | Príkazy môžete zadávať priamo do okna Python-u alebo si môžete vytvoriť súbor, aby ste mohli svoj kód uložiť a znova spustiť neskôr. 37 | 38 | Ak chcete vytvoriť súbor, prejdite na `File > New window` a `File > Save`. Pravdepodobne ho budete chcieť uložiť vo vašom domovskom priečinku alebo v novom priečinku pre projekty. 39 | 40 | Začnite tým, že importujete knižnicu Minecraft, vytvoríte spojenie s hrou a otestujete ho odoslaním správy "Hello world" na obrazovku: 41 | 42 | ```python 43 | from mcpi import minecraft 44 | 45 | mc = minecraft.Minecraft.create() 46 | 47 | mc.postToChat("Hello world") 48 | ``` 49 | 50 | Ak zadávate príkazy priamo do okna Pythonu, stlačte `Enter` po každom riadku. Ak píšete do súboru, uložíte ho stlačením `Ctrl + S` a spustíte s `F5`. Keď sa váš kód spustí, mali by ste vidieť vašu správu v hre na obrazovke. 51 | 52 | ![](images/mcpi-idle.png) 53 | 54 | Ak vidíte "Hello world" v okne hry Minecraft, možete pokračovať v ďalšom kroku. -------------------------------------------------------------------------------- /sk-SK/step_3.md: -------------------------------------------------------------------------------- 1 | ## Začíname s Minecraft Pi 2 | 3 | Minecraft je populárna stavebná hra s otvoreným svetom. Bezplatná verzia Minecraft-u je k dispozícii pre Raspberry Pi; je tiež dodávaná s programovateľným rozhraním. To znamená, že môžete písať príkazy a skripty v jazyku Python, aby ste v hre automaticky vytvárali veci. Je to skvelý spôsob, ako sa naučiť Python! 4 | 5 | ![Minecraft Pi banner](images/minecraft-pi-banner.png) -------------------------------------------------------------------------------- /sk-SK/step_4.md: -------------------------------------------------------------------------------- 1 | ## Spustite Minecraft 2 | 3 | Ak chcete spustiť aplikáciu Minecraft, otvoríte ju z hlavného menu alebo zadajte do terminálu príkaz `minecraft-pi`. 4 | 5 | ![](images/menu.png) 6 | 7 | Keď sa Minecraft Pi spustí, kliknite na **Start Game** a následne na **Create new**. Všimnete si, že príslušné okno je mierne posunuté. To znamená, že ak chcete okno presunúť, musíte ho chytiť za titulok okna za oknom aplikácie Minecraft. 8 | 9 | ![](images/mcpi-game.png) 10 | 11 | Teraz ste v hre Minecraft! Trochu sa prejdite, hackujte a stavajte nové veci! 12 | 13 | Pomocou myši sa môžete rozhliadnuť okolo seba a použiť môžete aj nasledujúce klávesy: 14 | 15 | | Kláves | Činnosť | 16 | |:-----------------:|:------------------:| 17 | | W | Dopredu | 18 | | A | Vľavo | 19 | | S | Dozadu | 20 | | D | Vpravo | 21 | | E | Inventár | 22 | | Medzerník | Skok | 23 | | Dvakrát medzerník | Lietanie / Padnúť | 24 | | Esc | Pauza / Menu hry | 25 | | Tab | Uvoľní kurzor myši | 26 | 27 | Predmet si môžete vybrať z panela rýchlej voľby pomocou kolieska myši (alebo použitím číslic na klávesnici), alebo stlačte `E` a vyberte si niečo z inventára. 28 | 29 | ![](images/mcpi-inventory.png) 30 | 31 | Dvojitým stlačením medzerníka môžete lietať do vzduchu. Lietať prestanete, keď uvoľníte medzerník a ak ho znova dvakrát stlačíte, spadnete späť na zem. 32 | 33 | ![](images/mcpi-flying.png) 34 | 35 | Ak s mečom v ruke kliknete na bloky pred sebou, odstránite ich (alebo vykopete). Ak blok držíte v ruke, stlačením pravého tlačidla na myši ho položíte na zem alebo stlačením ľavého tlačidla ho odstránite. -------------------------------------------------------------------------------- /sk-SK/step_6.md: -------------------------------------------------------------------------------- 1 | ## Kladenie blokov počas chôdze 2 | 3 | Keď už viete, ako klásť bloky, poďme využiť zmenu našej polohy tak, aby sme mohli bloky klásť počas chôdze. 4 | 5 | Nasledujúci kód bude za vás klásť kvietky kamkoľvek pôjdete: 6 | 7 | ```python 8 | from mcpi.minecraft import Minecraft 9 | from time import sleep 10 | 11 | mc = Minecraft.create() 12 | 13 | flower = 38 14 | 15 | while True: 16 | x, y, z = mc.player.getPos() 17 | mc.setBlock(x, y, z, flower) 18 | sleep(0.1) 19 | ``` 20 | 21 | Teraz sa chvíľku poprechádzajte a otočte sa za seba, aby ste videli kvietky, ktoré ste za sebou nechali. 22 | 23 | ![](images/mcpi-flowers.png) 24 | 25 | Vzhľadom na to, že sme použili cyklus `while True`, bude sa kód vykonávať donekonečna. Ak ho chcete zastaviť, stlačte v okne jazyka Python `Ctrl + C`. 26 | 27 | Skúste sa preletieť vzduchom a sledujte kvietky, ktoré za sebou na oblohe zanechávate: 28 | 29 | ![](images/mcpi-flowers-sky.png) 30 | 31 | Čo ak by sme chceli kvietky klásť len vtedy, ak sa hráč bude pohybovať po tráve? Na zistenie typu bloku môžeme použiť funkciu `getBlock`: 32 | 33 | ```python 34 | x, y, z = mc.player.getPos() # pozicia hraca (x, y, z) 35 | this_block = mc.getBlock(x, y, z) # ID bloku 36 | print(this_block) 37 | ``` 38 | 39 | Tým získate polohu bloku, *v* ktorom stojíte (čo bude `0` - blok vzduchu). My však chceme vedieť, akého typu je blok, *na* ktorom stojíme. Za týmto účelom odčítame 1z hodnoty súradnice `y` a pomocou volania funkcie `getBlock()` zistíme typ bloku, na ktorom stojíme: 40 | 41 | ```python 42 | x, y, z = mc.player.getPos() # pozicia hraca (x, y, z) 43 | block_beneath = mc.getBlock(x, y-1, z) # ID bloku 44 | print(block_beneath) 45 | ``` 46 | 47 | Tým zistíme ID bloku, na ktorom hráč stojí. 48 | 49 | Otestujte to vytvorením cyklu, ktorý bude vypisovať ID akéhokoľvek bloku, na ktorom hráč práve stojí: 50 | 51 | ```python 52 | while True: 53 | x, y, z = mc.player.getPos() 54 | block_beneath = mc.getBlock(x, y-1, z) 55 | print(block_beneath) 56 | ``` 57 | 58 | ![](images/blockbeneath.gif) 59 | 60 | Aby sme rozhodli, či kvietok zasadíme alebo nie, použijeme príkaz `if`: 61 | 62 | ```python 63 | grass = 2 64 | flower = 38 65 | 66 | while True: 67 | x, y, z = mc.player.getPos() # pozicia hraca (x, y, z) 68 | block_beneath = mc.getBlock(x, y-1, z) # ID bloku 69 | 70 | if block_beneath == grass: 71 | mc.setBlock(x, y, z, flower) 72 | sleep(0.1) 73 | ``` 74 | 75 | Možno by sme mohli zmeniť dlaždice, na ktorých stojíme, na trávu, ak už náhodou trávou nie sú: 76 | 77 | ```python 78 | if block_beneath == grass: 79 | mc.setBlock(x, y, z, flower) 80 | else: 81 | mc.setBlock(x, y-1, z, grass) 82 | ``` 83 | 84 | Teraz môžeme kráčať dopredu a ak kráčame po tráve, položíme za seba kvietok. Ak však ďalší blok nie je tráva, zmení sa na trávu. Keď sa otočíme a budeme kráčať naspäť, budeme za sebou nechávať kvietky. 85 | 86 | ![](images/mcpi-flowers-grass.png) -------------------------------------------------------------------------------- /sk-SK/step_7.md: -------------------------------------------------------------------------------- 1 | ## Zábava s blokmi TNT 2 | 3 | Ďalším zaujímavým blokom je TNT! Ak chcete umiestniť normálny blok TNT, použite: 4 | 5 | ```python 6 | tnt = 46 7 | mc.setBlock(x, y, z, tnt) 8 | ``` 9 | 10 | ![](images/mcpi-tnt.png) 11 | 12 | Tento blok TNT je však dosť nudný. Skúste použiť `data` s hodnotou `1`: 13 | 14 | ```python 15 | tnt = 46 16 | mc.setBlock(x, y, z, tnt, 1) 17 | ``` 18 | 19 | Teraz použite svoj meč a kliknite ľavým tlačidlom na blok TNT: ten sa aktivuje a za niekoľko sekúnd exploduje! 20 | 21 | Teraz sa pokúste vytvoriť veľkú kocku blokov TNT! 22 | 23 | ```python 24 | tnt = 46 25 | mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, tnt, 1) 26 | ``` 27 | 28 | ![](images/mcpi-tnt-blocks.png) 29 | 30 | Teraz uvidíte veľkú kocku plnú blokov TNT. Aktivujte jeden z blokov a následne utečte, aby ste si vychutnali celú show! Renderovanie však bude dosť pomalé, pretože sa naraz mení príliš veľa vecí. 31 | 32 | ![](images/mcpi-tnt-explode.png) -------------------------------------------------------------------------------- /sk-SK/step_8.md: -------------------------------------------------------------------------------- 1 | ## Zábava s tečúcou lávou. 2 | 3 | Jedným blokom, s ktorým si užijete veľa zábavy, je tečúca láva. 4 | 5 | ```python 6 | from mcpi.minecraft import Minecraft 7 | 8 | mc = Minecraft.create() 9 | 10 | x, y, z = mc.player.getPos() 11 | 12 | lava = 10 13 | 14 | mc.setBlock(x+3, y+3, z, lava) 15 | ``` 16 | 17 | Nájdite blok, ktorý ste práve umiestnili a mali by ste vidieť lávu tečúcu z tohto bloku na zem. 18 | 19 | Na láve je super, že keď sa ochladí, stane sa kameňom. Presuňte sa na iné miesto vo vašom svete a vyskúšajte toto: 20 | 21 | ```python 22 | from mcpi.minecraft import Minecraft 23 | from time import sleep 24 | 25 | mc = Minecraft.create() 26 | 27 | x, y, z = mc.player.getPos() 28 | 29 | lava = 10 30 | water = 8 31 | air = 0 32 | 33 | mc.setBlock(x+3, y+3, z, lava) 34 | sleep(20) 35 | mc.setBlock(x+3,y+5, z, water) 36 | sleep(4) 37 | mc.setBlock(x+3, y+5, z, air) 38 | 39 | ``` 40 | 41 | Pomocou parametra `sleep` môžete nastaviť, či bude lávy vytekať viac alebo menej. 42 | 43 | ![láva](images/lava.png) -------------------------------------------------------------------------------- /sk-SK/step_9.md: -------------------------------------------------------------------------------- 1 | ## Čo ďalej? 2 | 3 | Je veľa vecí, ktoré môžete teraz vedieť, pretože ste sa zoznámili so svetom Minecraft-u a ako používať rozhranie jazyka Python. 4 | 5 | ### Sieťová hra 6 | 7 | Ak sa viacerí ľudia pripoja pomocou Raspberry Pi do lokálnej siete, môžu sa pripojiť k rovnakému svetu Minecraft a hrať sa spolu. Hráči sa vo svete Minecraft-u môžu navzájom vidieť. 8 | 9 | ### Odkaz na rozhranie API 10 | 11 | Pre získanie rozsiahlejšiej dokumentácie funkcií a úplného zoznamu identifikátorov blokov sa pozrite na referenciu API na adrese [stuffaboutcode.com](http://www.stuffaboutcode.com/p/minecraft-api-reference.html). -------------------------------------------------------------------------------- /software.md: -------------------------------------------------------------------------------- 1 | # Software installation 2 | 3 | Minecraft has been installed by default in Raspbian since September 2014. 4 | 5 | ![Minecraft Pi desktop icon](images/minecraft-pi-shortcut.png) 6 | 7 | If you're using an older version of Raspbian, open a terminal window and type the following commands (you must be online): 8 | 9 | ```bash 10 | sudo apt-get update 11 | sudo apt-get install minecraft-pi 12 | ``` 13 | 14 | Once that finishes, Minecraft Pi and the Python library should be installed. 15 | 16 | ## Test Minecraft 17 | 18 | To run Minecraft double click the desktop icon or enter `minecraft-pi` in the terminal. 19 | 20 | ![](images/mcpi-start.png) 21 | 22 | When Minecraft Pi has loaded, click on **Start Game**, followed by **Create new**. You'll notice that the containing window is offset slightly. This means to drag the window around you have to grab the title bar behind the Minecraft window. 23 | 24 | ![](images/mcpi-game.png) 25 | 26 | You are now in a game of Minecraft! 27 | 28 | ## Test Python 29 | 30 | With Minecraft running, and the world created, bring your focus away from the game by pressing the `Tab` key, which will free your mouse. Open IDLE (not IDLE3) on the Desktop and move the windows so they're side-by-side. 31 | 32 | You can either type commands directly in to the Python window or create a file so you can save your code and run it again another time. 33 | 34 | If you want create a file go to `File > New window` and `File > Save`. You'll probably want to save this in your home folder or a new project folder. 35 | 36 | Start by importing the Minecraft library, creating a connection to the game and testing it by posting the message "Hello world" to the screen: 37 | 38 | ```python 39 | from mcpi import minecraft 40 | 41 | mc = minecraft.Minecraft.create() 42 | 43 | mc.postToChat("Hello world") 44 | ``` 45 | 46 | If you're entering commands directly in to the Python window, just hit `Enter` after each line. If it's a file, save with `Ctrl + S` and run with `F5`. When your code runs, you should see your message on screen in the game. 47 | 48 | ![](images/mcpi-idle.png) 49 | 50 | If you see "Hello world" in the Minecraft window, you're good to proceed to the [worksheet](worksheet.md). 51 | --------------------------------------------------------------------------------