Move to JEI, blacklist Aether gravitite abilities

This commit is contained in:
oitsjustjose 2024-04-24 21:47:55 -05:00
commit 9b15cf397b
3 changed files with 32 additions and 1 deletions

View file

@ -1,4 +1,17 @@
REIEvents.hide('item', event => {
JEIEvents.addItems(event => {
event.add(Item.of('patchouli:guide_book', '{"patchouli:book":"patchouli:tr_guide"}'));
const candidates = [];
Ingredient.all.getStacks().forEach(x => {
if (x.getMod() !== 'architects_palette') return;
candidates.push(x);
});
candidates.sort((a, b) => a.getDisplayName() > b.getDisplayName()).forEach(x => event.add(x));
});
JEIEvents.hide('item', event => {
const toRemove = JsonIO.read('kubejs/globals/nuked.json').items;
toRemove.forEach(x => event.hide(x));
event.hide('techreborn:manual');
});

View file

@ -0,0 +1,3 @@
ServerEvents.recipes(event => {
event.replaceOutput({ id: 'techreborn:crafting_table/manual' }, 'techreborn:manual', Item.of('patchouli:guide_book', '{"patchouli:book":"patchouli:tr_guide"}'));
});

View file

@ -1,3 +1,18 @@
ServerEvents.tags('block', event => {
event.add('irons_spellbooks:spectral_hammer_mineable', ['twigs:rhyolite', 'twigs:schist']);
});
ServerEvents.tags('entity_type', event => {
// Make all entities unlaunchable -- this is a workaround because the ability to yeet mobs in the air is more annoying than helpful...
event.add(
'aether:unlaunchable',
Utils.getRegistryIds(new ResourceLocation('minecraft', 'entity_type')).map(x => `${x.getNamespace()}:${x.getPath()}`)
);
});
ServerEvents.tags('block', event => {
event.add(
'aether:gravitite_ability_blacklist',
Utils.getRegistryIds(new ResourceLocation('minecraft', 'block')).map(x => `${x.getNamespace()}:${x.getPath()}`)
);
});