Commit graph

182 commits

Author SHA1 Message Date
walterhiggins
89b2dca496 fixed typo - forg -> org 2013-03-09 22:13:36 +00:00
walterhiggins
66abbfc142 fix for issue #69 2013-03-09 16:50:12 +00:00
walterhiggins
6e113a2eca Fixed autocomplete issue #68 2013-03-02 18:46:50 +00:00
walterhiggins
1eb6756204 moved drone buildings/add-ons to drone/contrib folder 2013-02-24 17:57:45 +00:00
Walter Higgins
3f2e5e2c73 Merge pull request #46 from rupl/logo-js
Add logo.js to example files
2013-02-24 08:28:30 -08:00
edonaldson
eebec82aea Update _scriptcraft.js to include unload Handlers
unload Handlers will be called just before the plugin is unloaded.  This will allow cleanup of event handlers and threads before all references are lost during a reload.
2013-02-22 15:43:38 -06:00
walterhiggins
5b473d9c93 Fix for issue #64 bad interaction with Essentials plugin 2013-02-22 15:49:42 +00:00
walterhiggins
a684a0b333 fix issue #60 2013-02-19 22:38:23 +00:00
walterhiggins
520a4ab20c use utils.getPlayerObject() instead of removed getPlayerObject() 2013-02-19 19:14:02 +00:00
walterhiggins
8ce1de05ea Fix for issue #60 (files locked because the streamreader is not closed) 2013-02-18 19:33:21 +00:00
walterhiggins
4336aa9d47 added utils.foreach() and utils.nicely() functions 2013-02-17 22:29:41 +00:00
walterhiggins
fbc459a4d3 Added more documentation. 2013-02-17 17:43:28 +00:00
walterhiggins
3f2bc8c80b Fixed bug in rainbow (wasn't drawing) and switched to using Bukkit Scheduler API for dancefloor drone function. 2013-02-16 22:22:45 +00:00
walterhiggins
eaea34e172 added convenience prroperties (colors and rainbow array).
Changed order in which blocks are placed for boxa/cuboida so that blocks
are laid down width, height, then length.
2013-02-16 12:30:00 +00:00
walterhiggins
26c6fecc8b more comments/docs 2013-02-10 19:36:39 +00:00
walterhiggins
35443e6734 documentation 2013-02-10 18:05:07 +00:00
walterhiggins
3c178450c4 ensure _scriptcraft.js is first to doc 2013-02-10 18:04:45 +00:00
walterhiggins
c44dd44e66 first 2013-02-10 17:53:08 +00:00
walterhiggins
d6965a43ca changed order of loading .js so that modules primary .js files get loaded before others in same directory 2013-02-10 17:52:37 +00:00
walterhiggins
f3e17b4181 removed unneeded load() calls 2013-02-10 17:51:27 +00:00
walterhiggins
5830c73df0 Added docs for events module 2013-02-10 13:42:32 +00:00
walterhiggins
1a7cd9290b fixed doc link 2013-02-09 20:27:50 +00:00
walterhiggins
ba5437745f updated docs 2013-02-09 20:22:36 +00:00
walterhiggins
084ed1ebcc updated docs 2013-02-09 19:11:23 +00:00
walterhiggins
8106fac4d1 updated docs 2013-02-09 19:09:30 +00:00
walterhiggins
84f024d62c box example doc updated 2013-02-09 15:08:20 +00:00
walterhiggins
1a89b87008 adding example screens 2013-02-09 15:02:52 +00:00
walterhiggins
9c31e2d321 adding example screens 2013-02-09 15:02:11 +00:00
walterhiggins
a4eccad4bd Updated docs 2013-02-09 10:24:55 +00:00
walterhiggins
6445ed166d New spiral staircase - to demo use of Drone.PLAYER_STAIRS_FACING 2013-02-09 10:24:15 +00:00
walterhiggins
03ec3a6ae0 Fixed bug - emacs temp files being picked up 2013-02-09 10:23:24 +00:00
walterhiggins
0458f6639d Additional api documentation 2013-02-08 23:22:14 +00:00
walterhiggins
d88729675a fix comment - boxa example 2013-02-08 21:26:55 +00:00
walterhiggins
e494a15afa Generate API doc from source comments 2013-02-08 21:23:15 +00:00
walterhiggins
903c701f6f made world a property and added more documentation 2013-02-07 22:22:52 +00:00
walterhiggins
d916f1d843 no need to pass world param to arch 2013-02-07 22:22:13 +00:00
walterhiggins
66de0f402a no need to pass world param to arc 2013-02-07 22:21:56 +00:00
walterhiggins
b56b4262e8 no need to pass world param to arc 2013-02-07 22:21:41 +00:00
walterhiggins
b7790d1c1c use boxa() method instead of box() for arrays 2013-02-07 22:16:50 +00:00
walterhiggins
ec45b50a60 no need to pass world param 2013-02-07 22:16:30 +00:00
walterhiggins
8924d1943c reorg'd blocks into more logical groups 2013-02-07 22:16:08 +00:00
walterhiggins
32ae5a6da3 first phase of comments update 2013-02-05 20:49:09 +00:00
walterhiggins
97553d7da4 added default values for chessboard() 2013-02-05 20:47:54 +00:00
Alex Barnes
756a13d6fc Add some useful tools 2013-02-04 21:48:07 -06:00
walterhiggins
22add98d15 Correct handling of strokeWidth for vertical arcs 2013-02-03 20:19:58 +00:00
walterhiggins
ca821a696a rainbow.js shows an example of how to use the new arc() method 2013-02-03 12:09:45 +00:00
walterhiggins
86fd3c0a28 Reworked arc code - More versatile circles/arcs in horiz and vertical planes 2013-02-03 12:09:05 +00:00
walterhiggins
b34d456427 Fix issue #51 - tab completion reporting incorrect globals 2013-02-02 13:15:32 +00:00
walterhiggins
4a586a115c added hemispheres and blocks ids 2013-02-01 22:14:53 +00:00
walterhiggins
63712518dc optimized sphere and blocktype 2013-01-31 22:51:35 +00:00
Kyle Howells
7a32a646cc More efficient box0()
Infinitely faster box0() function.
Box has to create every block inside the space specified, however, box0() only builds walls around things so seems sensible that it should do less work.
However, under the old functions way of doing things it did almost twice as much work.
For small objects this isn't noticed very much, however it can have a big impact on performance!

My use case for this was a 500 wide, 70 high and 500 deep iron wall I wanted to act as the city wall. Trying to make this resulted in 2 odd effects. I first made one wall by calling box(42, 250, 70, 1) and laying it out myself. This took a few seconds. Then I decided to save time I would fly to the edge and create it with box0(). box0(42, 500, 70, 500) completely froze minecraft and slowed my computer. It then preceded to take 20 minutes before I decided to give up and close the server.
After restarting it I had a semi complete giant "solid" block. This made me dig into the Drones code.


Getting to the point: with the old way of doing things a GIANT wall takes over 20 minutes to make. this new version takes under 10 seconds.

(explanation not technically needed just wanted to demonstrate it does make a massive difference)
2013-01-31 00:55:41 +00:00
walterhiggins
35e0910b8e Performance improvements and fix for issue #47 2013-01-30 22:48:37 +00:00
walterhiggins
7c393ea070 tidy up code - hide all but .start() method 2013-01-29 22:03:10 +00:00
walterhiggins
a621c473c1 include object methods in tab complete 2013-01-29 22:02:30 +00:00
walterhiggins
2ffb1ff78d Fixed game over handling 2013-01-28 22:36:26 +00:00
walterhiggins
359222fba9 Fix bug in notifyAdmins 2013-01-28 19:49:44 +00:00
Chris Ruppel
53b0b64016 missed a semi 2013-01-27 14:23:39 -06:00
Chris Ruppel
284c2da586 Both functions return this. They can now be chained. 2013-01-27 14:16:37 -06:00
Chris Ruppel
e7f4a5c99b Add checkpoint to logojs() and move back to it after finishing logo. 2013-01-27 14:12:25 -06:00
Chris Ruppel
5af256cd55 Adding a checkpoint to logojscube() so it can be fired multiple times by the same Drone. 2013-01-27 14:05:19 -06:00
Chris Ruppel
723965bcf8 Add logojscube(). Refactored logojs() to handle being fired multiple times by the same Drone. 2013-01-26 23:45:16 -06:00
Chris Ruppel
182cdc22d8 Fixing defaults so args can take effect. 2013-01-26 23:07:10 -06:00
Chris Ruppel
36255359c4 Adding logo.js 2013-01-26 23:00:09 -06:00
Chris Ruppel
01322d00cd Merge remote branch 'origin/master' into some-docs 2013-01-26 22:37:27 -06:00
Chris Ruppel
5d4ee682d3 Spacing out primitives docs. 2013-01-26 22:37:07 -06:00
walterhiggins
871ae40e37 ScriptCraft's first Mini-Game git add minigames/SnowBallFight.js git add minigames/SnowBallFight.js 2013-01-26 22:40:58 +00:00
walterhiggins
1732bf15dd better tab completion on /jsp issue #35 2013-01-26 17:49:11 +00:00
walterhiggins
446ba9ad7b changed to and tweaked tabcomplete 2013-01-26 13:47:16 +00:00
walterhiggins
460f93ca8d warn if putSign() is called with block id other than 63 or 68 issue #39 2013-01-26 09:57:43 +00:00
Chris Ruppel
e0a1843de9 Docs for blocktype function. 2013-01-24 22:38:46 -06:00
walterhiggins
a002e1100c changed plugin back to __plugin 2013-01-25 00:53:40 +00:00
walterhiggins
9f7b19379b fixed getBlock - issue #40 2013-01-25 00:07:39 +00:00
walterhiggins
888ee6c208 renamed __self to self 2013-01-24 23:47:36 +00:00
walterhiggins
6bcebe35e6 renamed __self to self 2013-01-24 23:46:28 +00:00
walterhiggins
b0dc11906b renamed __self to self and updated README 2013-01-24 23:44:15 +00:00
walterhiggins
348a1d06ad don't make reload() function public 2013-01-24 20:22:22 +00:00
walterhiggins
844c70c21e don't load same javascript file more than once 2013-01-24 20:12:41 +00:00
walterhiggins
c5a096afaf Added a new example plugin 'chat color' for reference when creating your own plugins 2013-01-23 21:24:32 +00:00
walterhiggins
68f8acd922 More informative errors when evaluating javascript files 2013-01-23 00:50:16 +00:00
walterhiggins
a8f0d0bdf9 load drone.js 2013-01-23 00:02:57 +00:00
walterhiggins
fa03eb6ccd fixed the letter 'v' 2013-01-22 00:00:35 +00:00
walterhiggins
17dddb1dc9 Reorganised directories to be more maven-like 2013-01-21 23:10:57 +00:00