Open EnchStudio opened 4 months ago
i tried use this indexer.js
module.exports.buildIndexFromArray = function (array, fieldToIndex) {
if (array === undefined) { return undefined }
return array.reduce(function (index, element) {
if (!index.hasOwnProperty(element[fieldToIndex])) {
index[element[fieldToIndex]] = element
}
return index
}, {})
}
and work good for me
i wanna get hopper item (like it in hotbar), but returned a hopper outside texture. because of textureContent.json have 2
name: hopper
/