Commit graph

449 commits

Author SHA1 Message Date
walterhiggins
a314bf849f tidy up docs on events-helper module. 2014-04-26 20:31:52 +01:00
walterhiggins
1cfa6ff767 added priority optional param to docs 2014-04-26 20:24:45 +01:00
walterhiggins
2ba3335a16 Omit abstract event classes from events-helper.
Improved tab completion for jre8
2014-04-26 20:20:10 +01:00
walterhiggins
d8cfcb4572 fixing toc issue 2014-04-26 17:14:32 +01:00
walterhiggins
b4fe523482 fixing TOC issues in API ref 2014-04-26 17:03:08 +01:00
walterhiggins
a4968d8dc6 Events handling changes. Added new convenience functions to events module
to make event handling easier still for newbies
2014-04-26 16:56:57 +01:00
Walter Higgins
c8425cb597 Merge pull request #138 from Strat-/patch-1
Improve bkEventExecutor interface implementation
2014-04-25 21:03:07 +01:00
walterhiggins
9d2df863b6 spacing 2014-04-25 20:51:15 +01:00
Ivan Kay
6ec85d5a8f Improve bkEventExecutor interface implementation
What was done before isn't valid JS; This does the same thing, while keeping the JS syntax valid.
2014-04-24 19:51:11 -05:00
walterhiggins
3c7f8ae94e Make drone build processing more evenly distributed for multiple players 2014-04-19 17:28:43 +01:00
walterhiggins
8c81b37bb3 Added asynchronous player input (async prompt) function. 2014-04-13 23:25:02 +01:00
walterhiggins
7b7d8cb35c Fix issue #135 2014-04-07 20:59:09 +01:00
walterhiggins
35d67fe6e4 Fixes issue #133 2014-04-07 20:43:23 +01:00
walterhiggins
2adf0e3792 removed commented code. 2014-03-16 21:26:29 +00:00
walterhiggins
d64128705f Fixes #131 2014-03-16 21:25:37 +00:00
walterhiggins
ebf2e031c6 Fixes #131 2014-03-16 21:24:26 +00:00
walterhiggins
d6d1a906b5 Fixes #129 2014-03-16 19:50:18 +00:00
walterhiggins
76c6d6f23f Fixes #132 2014-03-16 18:58:19 +00:00
walterhiggins
d59b0682de added comment to leave semicolon off of last line. 2014-03-15 18:21:20 +00:00
walterhiggins
f82d88cb3f Event handling rework. Simplified event handling and unregistering. 2014-03-15 18:06:23 +00:00
walterhiggins
9d406dbb44 Made maze code place blocks 2 high 2014-03-14 22:23:35 +00:00
Walter Higgins
edf249a418 Merge pull request #126 from carlrobert/master
Random maze generation using a Drone
2014-03-14 08:54:17 +00:00
Robert Storlind
38e312c93e Indentation according to style guide 2014-03-14 09:25:43 +01:00
walterhiggins
b7352ed962 Show correct lineNumber in require() errors on Nashorn (JRE8) 2014-03-13 22:49:03 +00:00
walterhiggins
fce28567e6 Make error messages more concise (don't repeat file name) 2014-03-13 22:11:01 +00:00
Walter Higgins
a18e9651e8 Merge pull request #127 from jasonk/master
Fix require() to work with index.js
2014-03-13 22:05:10 +00:00
walterhiggins
0a506f80ed Adding Drone.MAX_VOLUME and Drone.MAX_SIDE properties 2014-03-13 19:23:32 +00:00
Jason Kohles
45217a0953 Make error messages from require() more useful 2014-03-13 14:18:45 -04:00
Jason Kohles
5bec691575 Fix require() to work with index.js 2014-03-13 12:10:51 -04:00
walterhiggins
7e435be565 make Drone.cuboida() async. 2014-03-11 21:35:59 +00:00
walterhiggins
7977dc0fb5 fix issue #124 2014-03-11 20:06:29 +00:00
walterhiggins
360b7df75b Fix issue #115 2014-03-11 19:57:40 +00:00
walterhiggins
30d1d89e91 Make putsign use drone queue and add informative messages for senders. 2014-03-10 23:18:33 +00:00
walterhiggins
e40786d727 Fix issue #115 2014-03-10 23:17:58 +00:00
Robert Storlind
1a1837cc7e Maze generation using Drone
Point at the ground. Try /js amazing(5,7)
2014-03-10 14:10:54 +01:00
walterhiggins
fae2b6aac7 Improved Drone background-processing. 2014-03-08 21:01:25 +00:00
walterhiggins
d16487bcc3 Merge branch 'master' of github.com:walterhiggins/ScriptCraft 2014-03-08 12:13:57 +00:00
Walter Higgins
64913338a7 fixes issue #123 2014-03-06 17:59:10 +00:00
Walter Higgins
4b0fb7565a Fix issue #122 2014-03-06 13:17:14 +00:00
walterhiggins
cd52379b5c indentation 2014-02-28 10:11:28 +00:00
walterhiggins
6b3314fa27 fix typos in comments 2014-02-28 10:10:05 +00:00
walterhiggins
96b1a54896 Making bukkit objects easier to identify by name (bk prefix) 2014-02-19 22:17:19 +00:00
walterhiggins
d976563adf Drone.garden() is now non-destructive - won't destroy existing blocks. 2014-02-19 00:15:44 +00:00
walterhiggins
ef02885613 Drone.cuboidX() - foundation of most Drone building is now async. 2014-02-16 18:37:51 +00:00
walterhiggins
de113db48c Adding new hangtorch() drone function. 2014-02-16 18:31:09 +00:00
walterhiggins
9fdfb45b6c Remove commented out code for inefficient battlements building. 2014-02-16 18:30:30 +00:00
walterhiggins
7e03c6d3d7 More efficient fort building. 2014-02-16 18:29:36 +00:00
walterhiggins
5bec21d381 Fix bug in reload - data dir was not present. fix #119 2014-02-16 18:29:15 +00:00
walterhiggins
2e4516bf69 Added 'utils.unwatchFile()' function to fix #117 2014-02-11 21:10:56 +00:00
walterhiggins
3c7d3a2bb4 Added section on configuration (server.properties) to young persons guide 2014-02-11 20:58:45 +00:00
walterhiggins
8453525da6 Improvements to classroom.js module (added players/ directory into which players can drop their custom scripts when classroom.allowScripting(true) is called. 2014-02-10 20:55:32 +00:00
walterhiggins
39b459ab7f further syntax-highlighting and ignore netbeans folder. 2014-02-04 21:49:12 +00:00
walterhiggins
f1925efd87 added syntax-highlighting to code samples 2014-02-04 21:36:00 +00:00
walterhiggins
fe62f61883 fix code in sc-mqtt module 2014-02-04 21:04:12 +00:00
walterhiggins
349c2f17cf added docs for chat/color plugn 2014-02-04 20:53:59 +00:00
walterhiggins
29eb6c1975 added craftbukkit link to guide 2014-02-04 08:38:32 +00:00
walterhiggins
5868b9099a Round up setInterval and setTimeout to match bukkit's min 50ms tick. 2014-01-31 00:42:05 +00:00
walterhiggins
13ee0d0e9c Fixes #114 2014-01-31 00:36:28 +00:00
walterhiggins
621245adac Removed underscore from source (it's downloaded) and fixed spawn plugin. 2014-01-29 23:11:40 +00:00
walterhiggins
7ab34980e4 fix issue #113 2014-01-29 20:11:47 +00:00
walterhiggins
7457cd58b8 Changed formatting to use idiomatic style. (like glasses-mode in emacs) 2014-01-29 19:49:15 +00:00
walterhiggins
7a7767c83c Added logging of errors during plugin autoload. 2014-01-25 09:04:16 +00:00
walterhiggins
8c690452e7 Added experimental LCDGameClock 2014-01-24 23:38:56 +00:00
walterhiggins
f71d1a4e78 made sc-mqtt module's client object fluent 2014-01-23 23:09:41 +00:00
walterhiggins
a098963f90 Workaround for stupid array index notation access bug in Nashorn. 2014-01-22 23:57:27 +00:00
walterhiggins
a13f3badd9 Adding sc-mqtt module for comms with Arduino 2014-01-17 23:05:36 +00:00
walterhiggins
a4999745de Added config.yml for plugin configuration - issue #102 2014-01-14 22:54:49 +00:00
walterhiggins
3a6cb1057d Further changes to achieve compat with Nashorn java 8 2014-01-13 23:01:17 +00:00
walterhiggins
93fb626276 Adding a contributing.md file for contributors. 2014-01-13 21:56:21 +00:00
walterhiggins
7cb679cfd1 Fix issue #112 (Support for Nashorn in Java8) 2014-01-13 21:06:17 +00:00
walterhiggins
7f1e5e637e updated young persons template and refactored minigame scoreboard. 2014-01-12 12:06:30 +00:00
walterhiggins
839f3d10f2 Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft 2014-01-12 11:27:13 +00:00
walterhiggins
aefc98f172 Fix issue #111, reorg of lib/ and (undoc'd) persistence 2014-01-12 11:26:26 +00:00
jonathan
fbb1cbd92f fix typo in sapling/birch 2014-01-07 20:56:33 -08:00
walterhiggins
cc4a3e3a14 Added java apis in js doc. Fixed toc links. save uses pretty json. 2014-01-06 20:54:53 +00:00
walterhiggins
06f9007369 self is available for autocompletion 2014-01-05 17:20:54 +00:00
walterhiggins
8c3dc92c2a Added documentation for the Signs module and changed Signs examples so that a valid sign must be provided to the function returned by signs.menu(). 2014-01-05 15:20:29 +00:00
walterhiggins
73fdf04bc2 Target java 1.6 and fix exception on Mac OS due to alias plugin 2014-01-05 12:23:09 +00:00
walterhiggins
c591ec06a6 fix issue #107 2014-01-04 22:06:23 +00:00
walterhiggins
cc3c87da23 fix links 2014-01-04 20:23:17 +00:00
walterhiggins
5239709fcf problems with links in toc 2014-01-04 20:17:49 +00:00
walterhiggins
d742c5ae44 fix bug in toc generation - escaped chars not linked right 2014-01-04 20:08:24 +00:00
walterhiggins
2ee9dd6515 Added Table of Contents to API Reference - Issue #104 2014-01-04 18:39:49 +00:00
walterhiggins
6a73144c93 generate table of contents for Young Persons guide 2014-01-04 16:57:43 +00:00
walterhiggins
8ff7020c76 fix bug: signs not being saved 2014-01-03 09:18:43 +00:00
walterhiggins
4803f3027a Added 'use strict' to lib modules. Added legacy directory check 2014-01-02 18:46:46 +00:00
walterhiggins
c774b5631f Moved scriptcraft dir from {craftbukkit-root}/scriptcraft to {craftbukkt-root}/plugins/scriptcraft in line with other plugins 2014-01-01 21:02:11 +00:00
walterhiggins
cdc8ad7d9b Tweaks to documentation (examples and all files in same directory sorted alphabetically except where precedence regexp present) 2013-12-31 21:09:50 +00:00
walterhiggins
6d9f2b4337 Updated example plugin docs to be included in the API reference. 2013-12-31 20:33:00 +00:00
walterhiggins
bb9433a6d3 Improved documentation of the utils module and fixed bug in signs module due to changes to serialization/deserialization of locations. 2013-12-31 20:12:57 +00:00
walterhiggins
686285dcfb Added 2 new example plugins and changed drone so that public extensions (box, sphere, etc) pass 'self' as first param to Drone constructor (part of eventual phase-out of 'self' variable). 2013-12-31 18:21:40 +00:00
walterhiggins
0ec7dfc8ad Updated README and added Anatomy doc 2013-12-31 09:48:38 +00:00
walterhiggins
fba374d00e removed cofffee from plugin.yml and fixed link in README.md 2013-12-31 08:47:28 +00:00
walterhiggins
f88d1f0428 'Buddha' Release : The annihilation of 'self' variable.
use of 'self' should be limited only to in-game or console commands. It should not be used in the context of a module.
2013-12-30 21:33:12 +00:00
walterhiggins
fc440654b8 Fixed issue with stack trace in console when empty commands entered. Added more example modules 2013-12-30 01:07:41 +00:00
walterhiggins
dbf6adfadc Fix bug when using commando from server console 2013-12-29 13:26:21 +00:00
walterhiggins
5d00be9df4 Fix issue #103 on Mac 2013-12-29 12:58:20 +00:00
walterhiggins
1c05da1862 Documentation tweaks. Changed heading levels for the arrows and commando
modules.
2013-12-28 23:02:50 +00:00
walterhiggins
7679a1208f Added documentation for the 'homes' module ( issue #105) 2013-12-28 22:49:13 +00:00
walterhiggins
a0ad7a8ec6 Updated docs for 'console' module and changed error message for failed require() to be more informative. 2013-12-28 12:12:45 +00:00
walterhiggins
76164254ba Cleaning up markdown documentation. 2013-12-28 08:44:40 +00:00
walterhiggins
e0f8f0dc0f Updated alias command to create aliases without 'jsp' prefix and added 'console' global variable 2013-12-27 22:52:16 +00:00
walterhiggins
a7a4bf79a1 Updated alias to support aliases without 'jsp' prefix, added 'console' global variable 2013-12-27 22:50:13 +00:00
walterhiggins
f9af3a5ce4 renamed SnowBall to Snowball 2013-12-26 15:39:33 +00:00
walterhiggins
509705487a made 'events' global 2013-12-26 15:38:24 +00:00
walterhiggins
6ab381420d new commando plugin 2013-12-26 00:22:24 +00:00
walterhiggins
5d55e1ce73 removed 2013-12-25 13:39:53 +00:00
walterhiggins
de756f38c0 removed 2013-12-25 13:39:36 +00:00
walterhiggins
b92e9e4a07 made blocks a module rather than a plugin 2013-12-25 13:39:04 +00:00
walterhiggins
d44a43e598 Fixed a bug in plugin code where stores were being trashed at startup 2013-12-25 07:48:10 +00:00
walterhiggins
82f1928628 updating docs for module release 2013-12-24 22:47:57 +00:00
walterhiggins
60de2ec28a Updating documentation for modules release 2013-12-24 22:46:35 +00:00
walterhiggins
7f9736223e updated docs for module loading 2013-12-24 10:02:34 +00:00
walterhiggins
5953a55fb1 removed _primitives.js 2013-12-24 00:27:26 +00:00
walterhiggins
b2761d29e3 reorg 2013-12-24 00:18:43 +00:00
walterhiggins
d0da034fb7 reorg 2013-12-24 00:17:33 +00:00
walterhiggins
aa93491a6c reorg 2013-12-24 00:17:07 +00:00
walterhiggins
4d807373da reorg 2013-12-24 00:16:07 +00:00
walterhiggins
eb098ff176 reorg 2013-12-24 00:15:17 +00:00
walterhiggins
7f3b17a07c moved drone to plugins directory 2013-12-24 00:12:56 +00:00
walterhiggins
a7dcb503aa Major overhaul of plugin and module loading system and scriptcraft directory layout 2013-12-24 00:09:49 +00:00
walterhiggins
f25f4ac7f3 Updated doc for require 2013-12-21 09:09:11 +00:00
walterhiggins
f35a729ceb Adding support for 'require()' and node.js-style modules (not node modules per se - just support for the same module semantics) 2013-12-21 08:58:40 +00:00
Ivan Kondratyev
852a755819 Use Bukkit's ChatColor class for more reliable...
...output.
Also, cleans up String.prototype[method] by removing the non-used parameter "method"
2013-12-20 10:11:34 -06:00
walterhiggins
a760cec44c spelling error in docs 2013-12-17 23:52:53 +00:00
walterhiggins
249d3dda31 improved require function 2013-12-17 23:49:00 +00:00
walterhiggins
db51bdc57e tidy up variable names 2013-12-15 21:27:48 +00:00
walterhiggins
03220a03e8 src/main/javascript/events/events.js
tidy up variable names
2013-12-15 21:27:23 +00:00
walterhiggins
bcf44fe345 Adding experimental require() function like commonjs (barebones support for require() and exports) 2013-12-15 21:26:28 +00:00
walterhiggins
5263ad1b5d fix issue #97 2013-12-08 12:16:41 +00:00
walterhiggins
55563a090e added version to plugin.yml 2013-10-21 20:24:29 +01:00
walterhiggins
6f725423c0 reordered comments 2013-10-13 21:08:31 +01:00
walterhiggins
53d04fade0 A new simple number-guessing game to try out the Bukkit Conversation API 2013-10-13 21:08:04 +01:00
walterhiggins
396a8e6107 Added setTimeout(), clearTimeout(), setInterval() and clearInterval() functions so javascript programmers familiar with these functions can use them in Minecraft 2013-10-09 18:42:39 +01:00
walterhiggins
d3831bb910 Disable CoffeeScript evaluation until issue #92 is fixed 2013-08-11 22:15:19 +01:00
Walter Higgins
9a9188cf47 Merge pull request #91 from arg-games/coffeescript-integration
Integrate the CoffeeScript Compiler for .coffee files
2013-08-11 12:40:11 -07:00
Aaron Mueller
720564652f Integrate the CoffeeScript Compiler for .coffee files
Simple integration of CoffeeScript support. The code uses the JavaScript
implementation of the CoffeeScript compiler. All *.coffee files get
compiled to JavaScript just before eval(). Additionaly a new command
named /coffe is introduced to run CoffeeScript code straight in the
Minecraft console.
2013-08-11 20:35:23 +02:00
walterhiggins
5a415d9838 fix issue #90 2013-08-08 08:02:27 +01:00
walterhiggins
c7b2786a8a fix typo in comments and improved examples for the foreach function 2013-08-03 13:50:06 +01:00
walterhiggins
df56b53593 Added 'utils.at' function for scheduled callbacks 2013-08-03 13:14:09 +01:00
walterhiggins
b08b112107 fix for issue #86 2013-07-28 10:54:08 +01:00
Walter Higgins
8a9ce400c2 Merge pull request #85 from shaneriley/master
Add blocks added with 1.6, DRY up color variation setting
2013-07-22 07:44:57 -07:00
Shane Riley
d25a91e37b Add blocks added with 1.6, DRY up color variation setting 2013-07-22 10:03:44 -04:00
edonaldson
74e6f3f1cc Fix missing parenthesis 2013-07-04 12:06:25 -05:00
walterhiggins
8a585eec26 fix typo in markdown 2013-06-24 20:22:39 +01:00
walterhiggins
2e283dcd39 documentation for fireworks module 2013-06-23 22:04:46 +01:00
walterhiggins
1114c3750f Fireworks ! WOOHOO 2013-06-23 19:56:18 +01:00
walterhiggins
54ec523f6f fixed api.md 2013-06-07 19:58:45 +01:00
walterhiggins
335b8b1bdc updated docs/comments 2013-06-07 19:50:12 +01:00
walterhiggins
a8ad3e0444 fixed api docs 2013-06-07 08:35:22 +01:00
walterhiggins
9605e32801 new classroom module 2013-06-07 00:01:46 +01:00
walterhiggins
6a649647b1 typo - Drone.times() 2013-05-27 22:06:02 +01:00
walterhiggins
13afac33a4 fixed tree functions and added times function 2013-05-27 21:39:43 +01:00
walterhiggins
bbb2aabeb8 improvements 2013-05-11 16:03:49 +01:00
walterhiggins
d448fbe9e7 fixed bug - not returning this 2013-04-14 15:15:01 +01:00
walterhiggins
c32f8aab5f example skyscraper 2013-04-14 14:55:59 +01:00
walterhiggins
51374ac1db Use sensible default metadata when placing stairs (if none provided) 2013-04-14 14:55:23 +01:00
walterhiggins
244e1af270 Fixed problems with AutoComplete 2013-04-07 20:09:04 +01:00
walterhiggins
3d92e2c685 fixed missing , 2013-04-07 17:51:09 +01:00
walterhiggins
0fa8196fba first commit of http.request module 2013-03-31 14:54:38 +01:00
walterhiggins
7200af2bc3 further changes for issue #72 2013-03-23 12:54:15 +00:00
edonaldson
dd18d1af8a Correct setPosition 2013-03-20 07:42:55 -05:00
edonaldson
cc2f648804 Update to include getLocation and setPosition 2013-03-19 17:03:00 -05:00
Walter Higgins
ca9bfe9c87 Merge pull request #71 from mpstx/RedstoneWire
Redstone stuff
2013-03-19 05:14:19 -07:00
walterhiggins
79e05f2bc0 unregister event listeners when plugin is disabled (better co-op with other plugins) 2013-03-18 08:37:58 +00:00
walterhiggins
777fb9ce5b Add support for java.util.Collection to utils.foreach() 2013-03-17 11:57:48 +00:00
msmith
a67818aeae Add some drone functions for laying down redstone wire with supporting blocks, with repeaters (in a straight line), and a redstone road 2013-03-16 03:31:41 -05:00
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