Commit graph

246 commits

Author SHA1 Message Date
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
Walter Higgins
2392922c01 Merge pull request #49 from freerunnering/patch-1
More efficient box0()
2013-01-30 17:15:18 -08: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
661ae37503 Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft 2013-01-29 22:03:22 +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
Walter Higgins
0b92683b6c Update README.md 2013-01-28 23:16:38 +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
Walter Higgins
99d8d3ce41 Merge pull request #45 from rupl/some-docs
Just some docs
2013-01-27 05:01:16 -08: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
walterhiggins
b6b5891112 Added further reading 2013-01-25 08:16:35 +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
d79ff63899 Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft 2013-01-24 20:20:43 +00:00
walterhiggins
844c70c21e don't load same javascript file more than once 2013-01-24 20:12:41 +00:00
Walter Higgins
eb1488b08c Update bukkit.md 2013-01-24 16:48:39 +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
d8a43116d4 updated to reflect new directory layout 2013-01-21 23:11:28 +00:00
walterhiggins
17dddb1dc9 Reorganised directories to be more maven-like 2013-01-21 23:10:57 +00:00
walterhiggins
1269426f06 Switched to craftbukkit 147 (No changes to code - just tested with 147 server) 2013-01-21 22:19:34 +00:00
walterhiggins
a9f03f7d7c Improved efficiency of blocktype 2013-01-21 22:18:47 +00:00
walterhiggins
d57c5868ee Example of the use of block type 2013-01-20 21:20:15 +00:00
walterhiggins
4ce41e0bb8 create words with blocks 2013-01-20 21:03:45 +00:00
walterhiggins
42b1ac2b74 Added blocktype drone extension for creating words from blocks 2013-01-20 21:02:56 +00:00
walterhiggins
74fbe24f8d Improvements to Sphere code 2013-01-20 01:29:43 +00:00
walterhiggins
dc34d2e687 simplified loading 2013-01-19 17:17:52 +00:00
walterhiggins
e4f09c7b37 New 'alias' plugin which allows each player define their own command aliases 2013-01-19 17:02:38 +00:00
walterhiggins
ba12e76a09 Fixed problems with homes plugin and added support for tab completion of jsp commands 2013-01-19 17:01:59 +00:00
walterhiggins
68c3c7dd71 Improved update procedure for servers with plugin already installed - only unzips newer files 2013-01-19 17:00:55 +00:00
walterhiggins
24f7b594dd build.xml
Improved update procedure for servers with plugin already installed - only unzips newer files
2013-01-19 17:00:22 +00:00
walterhiggins
438ec92342 sendMessage() seems to sort string arrays - I adjusted the help strings accordingly 2013-01-19 00:51:43 +00:00
walterhiggins
f5dd2ebe93 removing emacs temp file 2013-01-19 00:46:10 +00:00
walterhiggins
89dab07803 New 'homes' plugin - a full-featured minecraft plugin written in javascript 2013-01-19 00:45:33 +00:00