Essentials_Minecraft_v1.pdf

(3796 KB) Pobierz
ESSENTIALS
HACKING
IN
ON
YOUR
Written by
MAKING
MINECRAFT
Raspberry Pi
The MagPi team
AND
CODE VIRTUAL WORLDS
THE OFFICIAL
RASPBERRY PI
MAGAZINE
25
%
SAV
UP T E
O
2
FREE
PI ZERO!
Subscribe in print for six or 12 months to receive this stunning free gift
Subscribe today & receive:
A free Pi Zero v1.3 (the latest model)
A free Camera Module connector
A free USB & HDMI cable bundle
Delivered with your first issue!
Pricing
Get six issues:
£30
(UK)
£45
(EU)
$69
(USA)
£50
(Rest of World)
Subscribe for a year:
£55
(UK)
£80
(EU)
$129
(USA)
£90
(Rest of World)
Direct Debit: £12.99
(UK)
(quarterly)
Other benefits:
Save up to 25% on the price
Free delivery to your door
Exclusive Pi offers & discounts
Get every issue first (before stores)
How to subscribe:
magpi.cc/Subs1
(UK / ROW)
Call +44(0)1202 586848 (UK/ROW)
imsnews.com/magpi
(USA)
Call 800 428 3003 (USA)
Search ‘The MagPi’
on your app store:
3
WELCOME TO
HACKING &
MAKING IN
M
inecraft is a game that’s achieved
monumental success - over 30 million
copies, across all its various supported
formats, have been sold; not bad for a game which
doesn’t really have a point! It’s classified as an
Indie Sandbox game, but if it does have a point,
it’s to make stuff (and people have really done
that!), from fully functioning computers to scale
models of the Starship Enterprise. What about
Minecraft: Pi Edition? The two best things are that
it’s free and it comes with an API – highly unusual
features you don’t see with any other version
of the game.
Using the API, you can make
Minecraft
your
own. You can create mods which will allow you do
amazing things, link it up with the real world using
the Raspberry Pi’s GPIO pins, make your own mini-
games, or just about anything else you can imagine.
Martin O’Hanlon
Contributing Editor
FIND US ONLINE
raspberrypi.org/magpi
EDITORIAL
Managing Editor:
Russell Barnes
russell@raspberrypi.org
Contributing Editor:
Rob Zwetsloot
Sub Editors:
Laura Clay, Phil King, Lorna Lynch
Contributors:
Sam Aaron, Boris Adryan, Martin O’Hanlon,
Jasper & Ozzy Hayler-Goodall
GET IN TOUCH
magpi@raspberrypi.org
DESIGN
Critical Media:
criticalmedia.co.uk
Head of Design:
Dougal Matthews
Designers:
Lee Allen, Mike Kay
Illustrator:
Sam Alder
DISTRIBUTION
Seymour Distribution Ltd
2 East Poultry Ave,
London
EC1A 9PT |
+44 (0)207 429 4000
In print, this product is made using paper
sourced from sustainable forests and
the printer operates an environmental
[
management system which has been
Chapter One
]
assessed as conforming to ISO 14001.
SUBSCRIPTIONS
Select Publisher Services Ltd
PO Box 6337, Bournemouth
BH1 9EH |
+44 (0)1202 586 848
magpi.cc/Subs1
This book is published by Raspberry Pi (Trading) Ltd., Mount Pleasant House, Cambridge, CB3
0RN. The publisher, editor and contributors accept no responsibility in respect of any omissions or
errors relating to goods, products or services referred to. Except where otherwise noted, content
in this product is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0
Unported (CC BY-NC-SA 3.0).
4
[ HACKING AND MAKING IN MINECRAFT ]
ESSENTIALS
CONTENTS
GETTING STARTED
WITH MINECRAFT:
PI EDITION
06
[
CHAPTER ONE
]
CREATE NATURAL
DISASTERS
40
[
CHAPTER SEVEN
]
11
[
CHAPTER TWO
]
CONTROLLING BLOCKS
46
[
CHAPTER EIGHT
]
MINECRAFT SPLAT
USING THE GPIO
TO FIND A BLOCK
WALKING WITH STEVE
18
[
CHAPTER THREE
]
23
[
CHAPTER FOUR
]
29
[
CHAPTER FIVE
]
TNT RUN!
59
[
CHAPTER NINE
]
MINECRAFT LAVA TRAP
BECOME A MINECRAFT VJ
NODE-RED AND
CONTROLLING MINECRAFT
WITH JAVASCRIPT PT 1
65
[
CHAPTER TEN
]
70
[
CHAPTER ELEVEN
]
TERRAFORMING
MINECRAFT
34
[
CHAPTER SIX
]
76
[
CHAPTER TWELVE
]
NODE-RED AND
CONTROLLING MINECRAFT
WITH JAVASCRIPT PT 2
PI EDITION –
PYTHON API REFERENCE
81
[
CHAPTER THIRTEEN
]
[
Don’t Panic
]
[
Contents
5
Zgłoś jeśli naruszono regulamin