Hello, I have another (probably very simple) problem that I can't figure out. I'm trying to add a tag to each Rechiseled item based on which "base" item it's crafted from. Here's the code I have so far:
let rechiseledType = [
'acacia_planks',
'amethyst_block',
'andesite'
// etc.
]
rechiseledType.forEach(rechiseledType => {
let itemInstance = `rechiseled:${rechiseledType}`
console.log(itemInstance)
})```
Where I have `console.log(itemInstance)` for testing right now, I am trying to get it to output every item whose ID begins with 'rechiseled:' followed by the `rechiseledType` from the array. (The `rechiseledType` will also be the tag I add to the items for that type, which is why I have to do it this way.)
The problem I'm running into is that the `itemInstance`, as it is currently written, is only the beginning of the ID for a collection of items. How do I have `console.log()` output every item whose ID begins with `itemInstance`, without having to write out each variation that can possibly follow that string?