Skip to content

Wiki has incorrect information for Looping #91

@CaitlynMC

Description

@CaitlynMC

On the Editing Recipes page of the wiki, under Advanced Techniques -> Looping (https://kubejs.com/wiki/tutorials/recipes#looping) there is this block of example code:

metals.forEach(metal => {
event.shapeless(kubejs:$==={metal}===_plate, [minecraft:$==={metal}===_ingot, 'kubejs:hammer'])
.damageIngredient('kubejs:hammer')
})

The equals symbols are not correct and seem to be there by mistake. Furthermore, part of it uses backticks instead of apostrophes, which is also incorrect. It should be:

metals.forEach(metal => {
event.shapeless(kubejs:${metal}_plate, [minecraft:${metal}_ingot, kubejs:hammer])
.damageIngredient('kubejs:hammer')
})

I mentioned this to another user and they said the "===" part was not on the site for them. Can someone else confirm if they also see this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions