Commit graph

106 commits

Author SHA1 Message Date
Walter Higgins 6b92532cde Merge pull request #298 from ekellener/master
Fixed updatePlayerScore correctly update the score
2016-12-07 09:10:02 +00:00
Erik 8c224e2565 Fixed updatePlayerScore correctly update the score
ObjectiveName and score were merged in a single field, causing the update not to happen.
2016-07-12 15:50:26 -07:00
Christian Riis 4be10dfa8f Update request.js
Replaced 'request' with 'http' in the example
2016-04-07 15:07:05 +02:00
Walter Higgins 7090ac5c5b Merge pull request #274 from aaron-powell/master
Fixed bukkit version of recipes.js module
2015-12-30 16:26:32 +00:00
walterhiggins aa42b74119 Added lightning module 2015-12-30 13:01:11 +00:00
walterhiggins e285bb6891 added new entities and spawn modules 2015-11-21 17:07:40 +00:00
walterhiggins 4aa28c0af3 Make blocktype work with numbers 2015-11-08 16:23:02 +00:00
Aaron 893dbd6aaa Fixed bukkit version of recipes.js module
I was having trouble adding recipes to my bukkit server using ScriptCraft.  It looks like the example in js/modules/recipes.js only works on a CanaryMod server, and the original version of js/modules/bukkit/recipes.js caused type related errors and didn't seem to implement Spigot/Bukkit methods properly.  With these changes I can now create a custom recipe and add it to the server with the following (note that the recipes.add() function both creates a bukkit ShapedRecipe AND adds the recipe to the server):

var items = require("items");
var recipes = require("recipes");
var events = require("events");

var bow = items.bow(1);
var tnt = items.tnt(1);
var explodeBow = items.bow(1);

var explodeBowMeta = explodeBow.getItemMeta();
explodeBowMeta.setDisplayName("Bow of Exploding");
explodeBowMeta.setLore(["Excite. Very boom."]);
explodeBow.setItemMeta(explodeBowMeta);

var explodeBowRecipe = recipes.add(
{
    result: explodeBow,
    ingredients: {B: bow, T: tnt},
    shape: ["   ", "TB ", "   "]
});
2015-10-02 15:55:31 -07:00
Maarten Verwijs 5dd897aaa9 Fixes incompatibility where utils.players is []
Using spigot 1.8.8, utils.players() always returns empty due to usage of deprecated calls.

This fixes it on my machine, but not tested on other 'bukkit' servers.
2015-09-27 21:07:12 +02:00
Walter Higgins e3079047a1 Merge pull request #264 from CoderDojoStirling/classroom-example-file
Put example js file in classroom player directory.
2015-08-29 19:48:33 +01:00
walterhiggins bff23932a7 Fix issue #269 for both spigot and canary - make sure new stairs don't cause same issue again. 2015-08-29 19:07:19 +01:00
walterhiggins 0dbff00703 Fix issue #269 2015-08-29 12:09:25 +01:00
walterhiggins bef42e3148 Fixes issue #265 (sound module broken in bukkit/spigot/glowstone) 2015-08-16 11:50:27 +01:00
Gregory Huczynski 9e7cb07a8f Put example js file in classroom player directory. 2015-08-12 18:40:49 +01:00
walterhiggins 62ff9034a6 Fix issue #261 2015-08-01 12:33:40 +01:00
walterhiggins 5fc1b9cb05 fixes issue #254 2015-06-07 15:15:42 +01:00
Walter Higgins db4be7950f Merge pull request #251 from carlrobert/patch-20
Remove unused variables bkBukkit, bkSign
2015-06-07 14:18:23 +01:00
Walter Higgins 1ee38d809e Merge pull request #247 from carlrobert/patch-17
Known times() limitation mentioned
2015-06-07 14:09:30 +01:00
Walter Higgins 6ab9581a62 Recipes module - workaround for JDK-8072596 2015-06-07 10:09:53 +01:00
Walter Higgins fdd599ca97 fixing fireworks problem on mac os 2015-06-01 12:29:07 +01:00
Robert Storlind 146a27263b Remove unused variables bkBukkit, bkSign
Not sure why the diff explodes for this two-line change though.
2015-06-01 08:34:54 +02:00
walterhiggins ff4ca68366 Use DyeColor.values() to get better array of colors for fireworks. 2015-05-31 20:04:05 +01:00
walterhiggins 4a1c1b7b01 Provide more helpful errors when trying to require non-existent modules 2015-05-31 16:44:42 +01:00
Robert Storlind 0b119da4d7 Known times() limitation mentioned
Also took the liberty of tidying up some formatting.
2015-05-29 17:45:42 +02:00
walterhiggins 734e058e9a adding block-colors module 2015-05-24 12:18:00 +01:00
walterhiggins 4a2ea3c26a Added quartz pillar and chiseled blocks. 2015-05-17 18:46:36 +01:00
walterhiggins b55be089f8 Fix bed to work with latest CanaryMod 1.2.0 2015-05-17 18:46:04 +01:00
walterhiggins 6224845e8b remove ambiguity in call to teleportTo() 2015-05-17 15:07:33 +01:00
Walter Higgins e6be40c5c8 Merge pull request #222 from monowii/master
Fixed teleport util for CanaryMod
2015-05-17 14:50:08 +01:00
Apple Lam ebd42ed347 Fix typo
fix http module for bukkit.
2015-04-28 20:09:59 +08:00
Robert Storlind 70f97bea7c constructor spelling ... 2015-04-14 20:14:18 +02:00
Robert Storlind d70099f475 No longer advertise copy & paste
Drones are for building only.
2015-04-09 08:41:55 +02:00
walterhiggins 06d80171fb Added inventory module for bukkit too 2015-03-24 19:37:44 +00:00
walterhiggins 1a4b087562 Added new 'inventory' module. 2015-03-22 14:05:19 +00:00
walterhiggins 3ba7200ab0 doesn't make sense to have a default value for numTimes in times() drone method. 2015-03-22 14:05:06 +00:00
Robert Storlind 0d2093186d Broken bukkit links now mended (signs)
Still needs to add the corresponding Canary stuff
2015-03-20 17:49:30 +01:00
monowii 9c8fb70e4e Fix issue #215 2015-03-07 11:36:45 +01:00
walterhiggins cdc2a2a11b Fixes issue #220 2015-03-01 13:52:23 +00:00
walterhiggins 16c3c6b01f Fix issue #220 2015-02-28 23:54:59 +00:00
walterhiggins 45c52e67d5 partial fix for issue #217 (no async task runners in CanaryMod) 2015-02-21 10:43:12 +00:00
walterhiggins a71f74921b Fix issue #216 2015-02-21 10:19:51 +00:00
walterhiggins 5a82f0afa7 fix issue #214 2015-02-19 20:24:20 +00:00
walterhiggins fec318c2a4 add jslint globals comment 2015-02-16 22:10:25 +00:00
walterhiggins 1f122cb2cb fix issue #213 http request broken in canarymod 2015-02-16 22:09:55 +00:00
walterhiggins d083da049a Added blocks.slime, barrier, trapdoor_iron, prismarine, sunflower 2015-02-15 13:10:17 +00:00
walterhiggins 6c95da14f8 Fixes slash module for canary so it works with all commands not just vanilla. 2015-01-25 19:30:12 +00:00
walterhiggins 30c4667a2b created new 'slash' module for executing commands. 2015-01-25 19:11:18 +00:00
walterhiggins 5c4ff153e8 Moved watcher and at to separate modules (not in utils anymore). 2015-01-25 19:10:51 +00:00
walterhiggins 1dabf3d25d missed bukkit load world handler 2015-01-25 13:10:12 +00:00
walterhiggins e778920937 Fixing utils.at to work more efficiently (one thread per world) 2015-01-25 13:09:49 +00:00