Writing Minecraft Plugins: Book Errata

393 views
Skip to first unread message

Walter Higgins

unread,
Jun 7, 2015, 6:47:35 AM6/7/15
to scriptcraft---sc...@googlegroups.com
I've begun compiling a list of errors and their corrections here:


If you see an error in the book, please feel free to post it here on these forums or add a comment (if you have a github account) to the above gist.

Walter

Scott Jacobson

unread,
Jul 15, 2015, 2:42:18 PM7/15/15
to scriptcraft---sc...@googlegroups.com
Was just wondering, do I need to buy the book to get the snowball fight script?  Will I get a link to the file or will I need to type it all in?

Walter Higgins

unread,
Aug 16, 2015, 3:04:40 AM8/16/15
to ScriptCraft - Scripting Minecraft
The source code used in the book is available on my github page here:

Jon Ippolito

unread,
Mar 3, 2016, 9:32:31 AM3/3/16
to ScriptCraft - Scripting Minecraft
You probably caught this already, but the typeface on page 14 makes it seem like some of your explanation ("Save the file...") is actually part of the shell script.

Dumb question from a GitHub newbie: how do I add a revision to your gist? It's not the same as adding a comment, is it?

jon

Peter Feng

unread,
Jul 21, 2016, 6:37:32 AM7/21/16
to ScriptCraft - Scripting Minecraft
I am learning along with the book (with bukkit, not CanaryMod as the latter doesn't support 1.10) and am having problem with chapter 17, in trying to develop the arrow projectileHit code for the Ender bow  The reason is that ScriptCraft would automatically unzip an arrow.js to plugins, whenever reloaded through /js refresh().
This arrow.js is probably zipped inside scriptcraft (I don't know as I'm not really familiar with Java). There is not way that I can delete it and then have my own arrow code js, as it is automatically retracted when reload. Here is part of console output:

>js refresh()

[17:26:38 INFO]: [scriptcraft] Disabling scriptcraft v3.2.0-2016-03-19

[17:26:38 INFO]: [scriptcraft] Enabling scriptcraft v3.2.0-2016-03-19

[17:26:38 INFO]: [scriptcraft] Unzipping /Users/peter/Desktop/AdventuresInMinecraft/Bukkit/scriptcraft/plugins/arrows.js (NE)

[17:26:39 WARN]: [scriptcraft] cow-clicker minigame is not yet supported in CanaryMod and Craftbukkit


Following the comments in arrow.js , I tried /js arrow.normal(self), but it still fire fireworks. I checked the data/arrows-store.json and it is 5. 

Is there anything I did wrong? Please help, thanks!

BTW I spotted some error on page 106. The second js line in the book:

js function respond( answer, player ) { player.js function 

respond( answer,player){ echo(player,"Wow. " + answer +
" that's old!" ) };


Regards,
Peter



Peter Feng

unread,
Jul 22, 2016, 5:42:58 AM7/22/16
to ScriptCraft - Scripting Minecraft
Another error on page 251, listing 18.3. Apparently getBoundingZones() is calling function contains() with the wrong parameters order. This error is in your github file, the bukkit version, as well.

Regards,
Peter

Walter Higgins

unread,
Sep 30, 2017, 12:24:38 PM9/30/17
to ScriptCraft - Scripting Minecraft
Thanks Peter. I'll look into this.
Reply all
Reply to author
Forward
0 new messages