All the Mods 9 - ATM9

All the Mods 9 - ATM9

9M Downloads

[Suggestion] Remove ExtraStorage & Reborn Storage storage part/block/disk recipes

themadjem opened this issue ยท 1 comments

commented

ExtraStorage parts, blocks, and disks are already hidden in JEI, but you can still craft them. They have the same recipe as Extra Disks and crafting the higher-tier disks results in the ExtraStorage items by default, especially when using autocrafting. Removing the recipes does not affect existing disks; existing parts can be used when crafting higher-tier Extra Disks' items.

Below is the KubeJS script I used to remove the recipes:

// Remove Extra Storage items conflicting with Extra Disks
ServerEvents.recipes( event => {
	// Item Storage items
	['256k','1024k','4096k','16384k'].forEach(size => {
		['shaped','shapeless'].forEach(recipeType => {
			event.remove({id:`extrastorage:disk/${recipeType}/disk_${size}`})
		})
		event.remove({id:`extrastorage:part/storagepart_${size}`})
		event.remove({id:`extrastorage:storage_block/block_${size}`})
	});
	// Fluid Storage items
	['16384k','65536k','262144k','1048576k'].forEach(size => {
		['shaped','shapeless'].forEach(recipeType => {
			event.remove({id:`extrastorage:disk/${recipeType}/disk_${size}_fluid`})
		})
		event.remove({id:`extrastorage:part/storagepart_${size}_fluid`})
		event.remove({id:`extrastorage:storage_block/block_${size}_fluid`})
	})
})
commented

Modified script to include the Reborn Storage parts and disks:

ServerEvents.recipes(event => {
    // Item Storage items
    ['256k', '1024k', '4096k', '16384k'].forEach(size => {
        ['shaped', 'shapeless'].forEach(recipeType => {
            event.remove({ id: `extrastorage:disk/${recipeType}/disk_${size}` })
        })
        event.remove({ id: `extrastorage:part/storagepart_${size}` })
        event.remove({ id: `extrastorage:storage_block/block_${size}` })
    });
    // Fluid Storage items
    ['16384k', '65536k', '262144k', '1048576k'].forEach(size => {
        ['shaped', 'shapeless'].forEach(recipeType => {
            event.remove({ id: `extrastorage:disk/${recipeType}/disk_${size}_fluid` })
        })
        event.remove({ id: `extrastorage:part/storagepart_${size}_fluid` })
        event.remove({ id: `extrastorage:storage_block/block_${size}_fluid` })
    })
    // Reborn Storage parts and disks
    ['small', 'medium', 'large', 'larger'].forEach(size => {
        ['item', 'fluid'].forEach(type => {
            event.remove({ id: `rebornstorage:parts/${size}_${type}_disk_part` })
            event.remove({ id: `rebornstorage:disks/${size}_${type}_disk` })
            event.remove({ id: `rebornstorage:disks/${size}_${type}_storage_disk_from_storage_housing` })
        })
    })
})