CraftBook 3

CraftBook 3

139k Downloads

Custom-Crafting Synthax Glitch

LadyCailinBot opened this issue · 7 comments

commented

CRAFTBOOK-2906 - Reported by Matthew.Moretz

When the server starts up, it cannot load two of my crafting recipes. I looked through others that seemed similar, but the ones I read didn't quiet match this one I think.

Error: http://pastebin.com/PGJs4Qi1

Entry in crafting-recipes.yml (Created using in-game command):

HardCandy:
    type: Shapeless
    ingredients:
        'OBSIDIAN ': 2
        'SPIDER_EYE ': 1
    results:
        'SPIDER_EYE:3|§fHard Candy|§7Protection II (1:00)|§7Slowness (1:30)|§7Weakness (3:00)||§5When Consumed:|§9+2 Food|§9+40% Incoming Damage Reduction|§c-15% Speed|§c-3 Damage ': 1
    permission-node: Grant1204.food.candy.hard
SweetCandy:
    type: Shapeless
    ingredients:
        'SUGAR ': 2
        'SPIDER_EYE ': 1
    results:
        'SPIDER_EYE:2|§fSweet Candy|§7Speed IV (2:00)|§7Slowness (2:30)|§7Haste (1:00)|§7Mining Fatigue (1:30)||§5When Consumed:|§9+1 Food|§9+80% Speed|§9+20% Mining Speed||§5After Consumption:|§c-15% Speed|§c-20% Mining Speed ': 1
    permission-node: Grant1204.food.candy.sweet
commented

Comment by me4502

The percent symbol is being seen as a chance.

commented

Comment by Matthew.Moretz

There are percent chances in crafting recipes?

commented

Comment by Matthew.Moretz

Is there any way to cancel this out? (e.g. a double percent: '%%' or a forward slash: '%')

commented

Comment by Matthew.Moretz

Removing the percent sign did not change the error...
Something about the "Speed|§9+20" is setting it off.

commented

Comment by me4502

Some computers can't handle the section sign. Replace it with a &

commented

Comment by Matthew.Moretz

Ok, the problem is the % sign, I don't know what happened in the time between now and my last comment (Maybe because I switch from v3.8.2 to v3.8), but the % sign is still the problem.

Is there any way to get this working, because I use lore to emulate vanilla minecraft stats.

All my other recipes with § work well--just for reference.

commented

Comment by me4502

When I recode custom crafting, chance will be seperate and therefore allow %