trigger fix and various comments

master
1122131 2016-07-07 17:46:28 +00:00
parent 46dafc94a1
commit bc696287c7
2 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ handle remainder => sub {
foreach my $recipe_name (@recipe_names) {
my $regex = $recipes{$recipe_name}->{'regex'} // $recipe_name;
if ($remainder =~ s/$regex//i) {
if ($remainder =~ s/\b$regex\b//i) {
$recipe = $recipes{$recipe_name};
last;
}

View File

@ -723,8 +723,8 @@
{
"name": "Firework Rocket",
"regex": "(?:fireworks? ?(rockets)?)|(?:rockets?)",
"image": "WARNING",
"ingredients": "Gunpowder + Paper + Firework Star",
"image": "WARNING", //Currently incomplete
"ingredients": "1 OR 2 OR 3 Gunpowder + Paper + Firework Star",
"description": "Firework that can be launched into the sky and explore. Adding more gunpowder increases the duration of the rocket. Up to three gunpowder can be used. Multiple firework stars can also be used, in which case all will go off simultaneously when the rocket detonates. By limiting the amount of gunpowder to one, it is possible to use up to seven firework stars."
},
{
@ -982,7 +982,7 @@
{
"name": "Colored Wool",
"regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?wools?)",
"image": "warn",
"image": "warn", //currently incomplete
"ingredients": "1 Wool + 1 Dye",
"description": "Used as decoration or building material."
},
@ -1157,7 +1157,7 @@
{
"name": "Tipped Arrow",
"regex": "(?:(tipped|regeneration|swiftness|fire ?resistance|healing|night ?vision|strenght|leaping|invisibility|poison|weakness|slowness|harming|water ?breathing|luck) ?arrows?)|(?:arrows? ?(of)? (regeneration|swiftness|fire ?resistance|healing|night ?vision|strenght|leaping|invisibility|poison|weakness|slowness|harming|water ?breathing|luck))",
"image": "warn",
"image": "warn", //Currently incomplete
"ingredients": "8 Arrow + 1 Lingering Potion",
"description": "Imbue a potion effect when hitting a mob or player. If a bow is enchanted with Infinity, tipped arrows will still be consumed."
},
@ -1189,5 +1189,6 @@
"ingredients": "2 Nether Brick (item) + 2 Nether Wart",
"description": "Decorative block that can face in different directions."
}
//add colored shield
]
}