33 lines
834 B
JavaScript
33 lines
834 B
JavaScript
|
/*************************************************************************
|
||
|
## The recipes module
|
||
|
|
||
|
The Recipes module provides convenience functions for adding and removing recipes
|
||
|
from the game.
|
||
|
|
||
|
### Example
|
||
|
To add an EnderBow to the game (assumes there's an enchanted Item variable called enderBow)...
|
||
|
|
||
|
var recipes = require('recipes');
|
||
|
var items = require('items');
|
||
|
...
|
||
|
var enderBowRecipe = recipes.add( {
|
||
|
result: enderBow,
|
||
|
ingredients: {
|
||
|
E: items.enderPearl(1),
|
||
|
S: items.stick(1),
|
||
|
W: items.string(1)
|
||
|
},
|
||
|
shape: [ 'ESW',
|
||
|
'SEW',
|
||
|
'ESW' ]
|
||
|
} );
|
||
|
// to remove...
|
||
|
recipes.remove( enderBowRecipe );
|
||
|
|
||
|
***/
|
||
|
if (__plugin.canary) {
|
||
|
module.exports = require('./canary/recipes');
|
||
|
} else {
|
||
|
module.exports = require('./bukkit/recipes');
|
||
|
}
|