In the Raspberry Pi group we had planned on everybody building some small projects together before the Christmas break and then moving on to bigger individual projects after Christmas. Unfortunately we’re a little behind on our small projects due to the taster sessions in the beginning of the year and the fact we didn’t have a proper session in December but we’ll catch these up in the next couple of weeks.
However as the difference between a good project and a really great project is sometimes the idea behind it I decided to spend most of this week’s session looking at ideas for our projects. I asked the Ninjas to ask themselves the following questions if they were stuck for ideas.
- What do I like to do?
- What/Who do I care about?
- Is there something I’ve always wanted?
- What’s going on? (In the news, in my community etc.)
As you can see from the picture we had loads of ideas to start with and I’m sure we will come up with many more before we finally have to start working on our project.
We also discussed the Coolest Projects Competition but as we’re planning on sharing information with the whole Dojo soon I won’t say much about it for now but here’s a picture from last year’s competition.
Sharing a Server:
In previous weeks before we stopped for Christmas, some people struggled to make progress through no fault of their own: they were hampered by CanaryMod crashing a lot on some people’s computers.
To work around this, everyone can connect to my computer as the Minecraft server, and I will also create a shared folder on the computer so you can drop your mods into it.
Please review these notes from several weeks ago: Topic 2: Connecting to Each Other’s Servers.
This Week’s Challenge:
This week (and for the next week or two), your challenge is build a substantial mod in ScriptCraft that, when you run it, will create an impressive-looking structure!
A key step to success here is planning and design: as I have said before, a programmer’s most important tools are paper and pencils, for figuring out what you want to create before you write code for it.
You should review the following:
Operators in any programming language are used when you want to calculate something new: they operate on values. variables, or expressions to produce a new value.
As we have seen before, in ScriptCraft you use a drone to do your building for you. The drone has functions that are part of it.
Here are some of the main drone functions that are useful when building your mods:
You can find lots more about these and other functions in the ScriptCraft API Reference: https://github.com/walterhiggins/ScriptCraft/blob/master/docs/API-Reference.md
Example: Build a Pyramid
This example is based on a very nice program writing by Ruaidhri from Coderdojo Athenry last year, updated slightly because some ScriptCraft commands have changed in the meantime.
// Copyright Ruaidhri from ModderDojo Athenry,
// slightly updated by Michael and Alex.
// Builds a pyramid with entrance and lights inside.
exports.pyramid = function()
echo('making a pyramid');
var d = new Drone(self); // 'self' means start drone beside me
// Make the walls
while (size > 0)
// Lights inside
var t = 0;
t = t + 1;