Fellies/kubejs[e6]/startup_scripts/factory/items.js

18 lines
444 B
JavaScript
Raw Normal View History

2021-01-28 22:28:10 +00:00
events.listen('item.registry', function (event) {
const items = [
'rare_lootbox',
'epic_lootbox',
'legendary_lootbox',
'miners_delight',
'sorcerers_delight',
'farmers_delight',
'blacksmiths_delight',
'scavengers_delight',
'alchemists_delight'
];
items.forEach((item) => {
event.create(item).group('KubeJS').texture(`kubejs:item/${item}`);
});
});