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