Commit graph

768 commits

Author SHA1 Message Date
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
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
Walter Higgins
6ab9581a62 Recipes module - workaround for JDK-8072596 2015-06-07 10:09:53 +01:00
Robert Storlind
5c1a04849d homes mod link: second try
The homes mod is elusive. Give this one a try :)
2015-06-03 17:35:57 +02: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
0148a62447 version bump to 3.1.6 2015-05-31 16:47:45 +01:00
walterhiggins
4a1c1b7b01 Provide more helpful errors when trying to require non-existent modules 2015-05-31 16:44:42 +01:00
walterhiggins
9eb95113c2 Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft 2015-05-31 09:19:58 +01:00
walterhiggins
10497efae3 3.1.5 fix events.connect/events.connection mismatch 2015-05-31 09:09: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
Walter Higgins
164a2181f2 Update README.md 2015-05-26 12:14:22 +01: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
walterhiggins
48e5f9f9d8 3.1.4!!!! 2015-05-09 14:25:07 +01:00
Walter Higgins
bda8d96916 Merge pull request #242 from carlrobert/patch-16
Trivial typo
2015-05-09 14:01:19 +01:00
Walter Higgins
754dd687e1 Merge pull request #236 from vorburger/SomeMinorCleanUp
Thanks for this @vorburger . I'm interested in how you used blockly with ScriptCraft - is there source code for that integration anywhere?
2015-05-09 14:00:25 +01:00
Robert Storlind
b4af7553f9 Trivial typo 2015-05-06 21:50:57 +02:00
Walter Higgins
3f5bbcf6c8 Merge pull request #235 from carlrobert/patch-15
Handle Bukkit and Canary. COLOR_CHAR introduced
2015-04-30 14:22:22 +01:00
Walter Higgins
bca637ea48 Merge pull request #240 from applelam/master
Some minor typo
2015-04-29 07:33:32 +01:00
Apple Lam
fa3940c118 update http example
Oops, found a typo in code.
2015-04-28 20:13:11 +08:00
Apple Lam
ebd42ed347 Fix typo
fix http module for bukkit.
2015-04-28 20:09:59 +08:00
Michael Vorburger
10e86e864d removing un-used Java import 2015-04-22 21:31:49 +02:00
Michael Vorburger
c987058aae .gitignore with two files which are apparently generated 2015-04-22 21:31:32 +02:00
Michael Vorburger
141bd6e61c Eclipse .project & .classpath, plus lib/.gitignore w. canarymod.jar 2015-04-19 16:41:04 +02:00
Michael Vorburger
0423141bf1 Just fixed formatting for better readability, no real changes. 2015-04-19 16:40:06 +02:00
Robert Storlind
6b0202491a Handle Bukkit and Canary. COLOR_CHAR introduced
NOTE: I have tested this code on Canary only. 

1. Canary's events.chat introduced.
2. The COLOR_CHAR (§) was a real mystery until I found the answer in string-exts.js :)
2015-04-17 17:17:34 +02:00
Walter Higgins
e1e78587f4 Merge pull request #234 from carlrobert/patch-14
Linked to homes and added chat_color intro
2015-04-16 21:26:14 +01:00
Walter Higgins
52070cffdc Merge pull request #231 from carlrobert/patch-11
Bukkit and CanaryMod links corrected. jslint.
2015-04-16 21:25:05 +01:00
Walter Higgins
ad1255cecb Merge pull request #233 from carlrobert/patch-13
homes mod link corrected, typography
2015-04-16 21:22:38 +01:00