For Complete Blockheads -- Using Minecraft to Teach Coding to Middle Schoolers
Minecraft for Complete Blockheads
CSTA July 2015
Bob Irving
Porter-Gaud School
Charleston, SC
Let’s code!
What you can expect
What you can expect(2)
What you can expect(3)
Mini rant
<rant>
I’m a teacher who spends all day with middle school kids. A select few are coding whizzes, but most are pretty average.
So I’m always looking for what will actually work in an actual classroom with actual middle school kids.
</rant>
My situation
Needed a bridge from blocks to text in 8th
The bridge in 8th grade
I was looking for….
Why Minecraft?
Command blocks
This humble block
can do amazing stuff!
You can do very simple things (like speaking to a player or players, giving them items) to complex construction (like building airships or remote control robots).
Command blocks(2)
The GUI: not super friendly! Has about a 32,000 character limit
Command blocks(3)
Youth Digital -- Modding in Minecraft
An online course that teaches modding in Java, aimed at ages 8-14(!).
$250
Youth Digital(2)
Youth Digital(3)
LearntoMod
Just launched this year, has gotten lots of press. Uses Blockly and then Javascript.
LearntoMod(2)
LearntoMod(3)
ComputerCraft mod
Also starts with visual interface, students can move to text when ready (uses Lua). Students program on a computer in Minecraft on their computers… mind blown. Whoa.
ComputerCraft mod(2)
ComputerCraft mod(3)
ComputerCraft mod(4)
Scriptcraft Mod
Javascript based, uses CanaryMod, starts with basics and goes to Java, JSON, objects, persistence…..
Scriptcraft Mod
Cons:
Redstone
It’s the MC version of electricity. Can be used to power all kinds of things.
Pros
Redstone
Cons
Canary Mod and Flaming Cows
Java-based. Thorough. Starts with setting up bash, learning command line and shell. Goes through programming basics while teaching Java. Fairly gentle learning curve.
Canary Mod and Flaming Cows(2)
Pros
Canary Mod and Flaming Cows(3)
Cons
@EventHandler
public void onInteract(PlayerInteractEvent event) {
if (event.getAction() == Action.LEFT_CLICK_BLOCK ||
event.getAction() == Action.LEFT_CLICK_AIR) {//(2)
final Player player = event.getPlayer();
if (player.getItemInHand().getType() == Material.LEATHER) {
Location loc = player.getLocation();
Vector vec = loc.getDirection();
int mult = 3;
vec.setX(vec.getX() * mult);
vec.setY(vec.getY() * mult);
vec.setZ(vec.getZ() * mult);
final Cow cow = player.getWorld().spawn(loc, Cow.class);//(3)
cow.setVelocity(vec);
cow.setFireTicks(20);
BukkitRunnable runnable = new CowTask(player.getWorld(), cow);
runnable.runTaskTimer(this, 0L, 0L);
}
}
}
}
“Mython”
Saved the best for last. Stumbled upon it almost by mistake. Basically a combo of Python, Bukkit, Minecraft for the Raspberry Pi. However, they have a release that can run on Windows. So I did. Lots of setup involved in my lab. I named it “Mython”.© All fights deserved.
Mython(2)
Pros
Mython(3)
More pros
Mython(4)
Cons
Conclusions
Resources
All of these authors are accessible and very happy to help, in my experience. Several have forums that they check regularly. I’ve received personal emails, DM’s, etc. from quite a few of them.
General help -- the Minecraft wiki . Comprehensive source for playing, building, modding
Resources(2)
Command blocks --
SethBling’s YT channel -- fabulous tutes on command blocks and lots else.
MrGarretto -- great website with links to his YT and Reddit pages. Also his own Custom Command Combiner!
Resources(3)
Youth Digital -- also has server design with Minecraft, fashion design, 3D, game design…
Can’t speak to them all, but Justin does a great job with Mod Design. Lots of built in help and live support.
Groupon discounts available at times, so check on that.
Resources(4)
LearntoMod -- still free for educational use.
$30 a year for unlimited access.
Sarah Guthals, one of the co-founders, is here at this conference.
Resources(5)
MinecraftEdu -- brand new version of ComputerCraftEdu which runs in MinecraftEdu
dan200 -- his email.
Resources(6)
Resources(7)
Redstone
Minecraft Mastery -- great book. Website has code downloads, videos….
Redstone Innovation -- inspiring YT channel
Resources(8)
Mython
Me
Bob Irving
Porter-Gaud School
Charleston, SC
(birving@portergaud.edu)
@birv2
http://www.scoop.it/t/on-the-digital-frontier