Commit graph

800 commits

Author SHA1 Message Date
Walter Higgins
5a936bab20 Merge pull request #293 from KidsProgramming/BUG_example_commandtestjs
Small error in demo code, index missing
2016-03-29 09:45:29 +01:00
Walter Higgins
a3ae45a13e Merge pull request #292 from alex-teren/patch-1
Add missed dots
2016-03-29 09:45:16 +01:00
Ruud Schramp
1122c2ef23 Small error in demo code, index missing 2016-03-28 15:44:07 +00:00
Alexander
2905d262ce Add missed dots 2016-03-26 15:54:26 +02:00
walterhiggins
65157383aa fix docs for sounds for Spigot 1.9 2016-03-20 19:05:54 +00:00
walterhiggins
e5eae2108a fix issues #256 and #287 2016-03-19 12:46:38 +00:00
walterhiggins
8bc648ec29 Fix issue #256 and fix issue #287 2016-03-19 12:09:26 +00:00
walterhiggins
c036e38f37 Merge branch 'MrVoltz-requireCacheAccess' 2016-01-02 11:59:48 +00:00
walterhiggins
f9f60f7702 Merge branch 'requireCacheAccess' of https://github.com/MrVoltz/ScriptCraft into MrVoltz-requireCacheAccess 2016-01-02 11:57:04 +00:00
walterhiggins
f2a7d82b18 updated API docs based on comments in #284 2016-01-02 11:36:19 +00:00
walterhiggins
459820e2c7 Merge branch 'MrVoltz-refreshFix' 2016-01-02 11:34:39 +00:00
walterhiggins
6cfe460e37 Merge branch 'refreshFix' of https://github.com/MrVoltz/ScriptCraft into MrVoltz-refreshFix 2016-01-02 11:29:27 +00:00
walterhiggins
eca25f7628 Merging pull request #283 Merge branch 'MrVoltz-MrVoltz-requireJson' 2016-01-02 11:23:02 +00:00
Martin P
ef04a62c54 Allow access to module cache through require.cache and require.resolve 2016-01-01 17:43:27 +01:00
Martin P
d27747b3a0 Fix refresh(): add skipOpCheck parameter, unregister event handlers & cancel tasks (only Bukkit) 2016-01-01 17:40:00 +01:00
Martin P
a0b46b0975 Fixed: Allow loading json using require() 2016-01-01 17:35:33 +01:00
walterhiggins
badf8b5470 Undoing merge of PR #278 2016-01-01 12:55:53 +00:00
Walter Higgins
eef507fdfe Merge pull request #278 from MrVoltz/patch-1
Allow loading json using require()
2015-12-31 12:07:45 +00: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
b99fe6a258 Updating young persons guide 2015-12-30 16:26:02 +00:00
Walter Higgins
444eaccaab Merge pull request #280 from tiagofassoni/patch-1
Added world-type=FLAT in young person's guide
2015-12-30 16:20:36 +00:00
walterhiggins
acff317aa8 Fix API generation 2015-12-30 13:12:56 +00:00
walterhiggins
8b0caf7295 updating release notes and version 2015-12-30 13:05:27 +00:00
walterhiggins
aa42b74119 Added lightning module 2015-12-30 13:01:11 +00:00
walterhiggins
46405978f5 Updating canarymod links 2015-12-29 17:39:18 +00:00
walterhiggins
9d58e2dc9a Updating link to canarymod admin guide - fix issue #281 2015-12-26 13:01:38 +00:00
Tiago Fassoni
eca7ba1a3b Added world-type=FLAT in young person's guide
In trying to get the generated world to be flat, the level-type=FLAT didn't work, but world-type=FLAT worked.
2015-12-04 14:36:03 -02:00
walterhiggins
e285bb6891 added new entities and spawn modules 2015-11-21 17:07:40 +00:00
MrVoltz
7b309dba16 Allow loading json using require() 2015-11-18 15:50:52 +01:00
walterhiggins
4aa28c0af3 Make blocktype work with numbers 2015-11-08 16:23:02 +00:00
Walter Higgins
e8895d77c0 Merge pull request #273 from mverwijs/fix-spigot-utils-players
Fixes incompatibility where utils.players always returns [ ]
2015-10-11 14:53:22 +01: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
cc7c820b62 removing bukkit-1.7.10 - replaced with spigotmc-1.8.8 2015-08-16 13:20:46 +01:00
walterhiggins
c6d6dea3db 3.1.10 release - fixed bukkit javadoc link. Added canarymod-1.8.0 and spigot-1.8.8.jar 2015-08-16 13:18:05 +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
78ddb5feff bump to version 3.1.8 2015-06-07 15:18:25 +01:00
walterhiggins
5fc1b9cb05 fixes issue #254 2015-06-07 15:15:42 +01:00
walterhiggins
dae490565b updated api ref with @carlroberts changes 2015-06-07 14:22:30 +01:00
Walter Higgins
f008da843d Merge pull request #253 from carlrobert/patch-21
homes mod link: second try
2015-06-07 14:20:52 +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
walterhiggins
e7e4b80504 book link move 2015-06-07 11:11:39 +01:00
walterhiggins
f271eb1f22 link to book 2015-06-07 11:09:27 +01:00
walterhiggins
aedd0b9589 version bump to 3.1.7 2015-06-07 10:33:37 +01:00