8000 closing bracket not always detected · Issue #50 · Yesterday17/ZenScript · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
closing bracket not always detected #50
Open
@Magnymbus

Description

@Magnymbus

getting expecting token of type BR_CLOSE, even though the closing bracket is there and the script works in game. I tried going through the JSON and javascript to try and fix it myself but I have no idea why only the first set is working. I thought it might be a weird regex edge case, but that didn't work.

Here's my script BTW. The bracket pairs in question are the <Container>s

import crafttweaker.api.recipe.type.Recipe;
import crafttweaker.api.recipe.type.CraftingRecipe;
import crafttweaker.api.world.Container;

for recipe in craftingTable.getRecipesByOutput(<tag:items:minecraft:stairs>) {
  println((recipe as Recipe<Container>).resultItem.commandString + ": - " + (recipe as Recipe<Container>).ingredients[0].commandString); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0