//priority: 1000

// Items added here will get recipes for Pedestals & Cobblegen Randomizer cobblegens.
const generatableCobblestone = [
    'byg:dacite_cobblestone',
    'byg:cobbled_ether_stone',
    'byg:purpur_stone',
    'byg:red_rock',
    'byg:scoria_cobblestone',
    'byg:soapstone',
    'byg:travertine',
    'undergarden:depthrock',
    'undergarden:shiverstone',
    'undergarden:tremblecrust',
    'minecraft:cobbled_deepslate',
    'blue_skies:turquoise_cobblestone'
];
// Items added here will get recipes for Pedestals & Cobblegen Randomizer stonegens.
const generatableStone = [
    'byg:black_sandstone',
    'byg:blue_sandstone',
    'byg:dacite',
    'byg:purple_sandstone',
    'byg:pink_sandstone',
    'byg:scoria_stone',
    'byg:white_sandstone',
    'minecraft:red_sandstone',
    'minecraft:sandstone',
    'minecraft:diorite',
    'minecraft:granite',
    'minecraft:andesite',
    'minecraft:deepslate',
    'byg:brimstone',
    'quark:jasper',
    'quark:limestone',
    'quark:permafrost',
    'create:scoria',
    'create:limestone',
    'quark:myalite',
    'quark:dusky_myalite',
    'blue_skies:turquoise_stone',
    'blue_skies:rimestone',
    'minecraft:dripstone_block',
    'quark:soul_sandstone',
    'blue_skies:midnight_sandstone',
    'blue_skies:lunar_stone',
    'blue_skies:crystal_sandstone',
    'blue_skies:blinding_stone',
    'blue_skies:nature_stone',
    'blue_skies:poison_stone',
    'byg:windswept_sandstone',
    'byg:ether_stone',
    'byg:cryptic_stone',
    'twilightforest:mazestone'
];
const generatableBasalt = ['minecraft:basalt'];

const itemsToHide = [];

const ChunkScreen = java('dev.ftb.mods.ftbchunks.client.ChunkScreen')
const ScreenWrapper = java('dev.ftb.mods.ftblibrary.ui.ScreenWrapper')
                            
onEvent('player.data_from_server.open_claim', event => {
   Client.setCurrentScreen(new ScreenWrapper(ChunkScreen()))
})

onEvent('player.data_from_server.close_claim', event => {
   Client.setCurrentScreen(null)
})

onEvent('client.tick', event => {
	event.player.sendData('dev.ftb.mods.ftblibrary.ui.ScreenWrapper', {message: ''})
    if (Client.currentScreen.class == 'class dev.ftb.mods.ftblibrary.ui.ScreenWrapper') {
		if (Client.currentScreen.getGui().class == 'class dev.ftb.mods.ftbchunks.client.LargeMapScreen') {
			Client.setCurrentScreen(new ScreenWrapper(ChunkScreen()))
		}
    }
})

const disabledItems = [
    'twilightforest:uncrafting_table',
    'mekanism:combiner',
    'mekanism:basic_combining_factory',
    'mekanism:advanced_combining_factory',
    'mekanism:elite_combining_factory',
    'mekanism:ultimate_combining_factory',
    'hardcore_torches:fire_starter',
    'notreepunching:netherite_mattock',
    'notreepunching:diamond_mattock',
    'notreepunching:gold_mattock',
    'notreepunching:iron_mattock',
    'notreepunching:macuahuitl',
    'minecraft:netherite_pickaxe',
    'additionaladditions:gilded_netherite_pickaxe',
    'botania:glass_pickaxe',
    'botania:elementium_pickaxe',
    'botania:manasteel_pick',
    'phantasm:crystalline_pickaxe',
    'phantasm:stellium_pickaxe',
    'malum:soul_stained_steel_pickaxe',
    'twilightforest:ironwood_pickaxe',
    'twilightforest:steeleaf_pickaxe',
    'undergarden:forgotten_pickaxe',
    'upgradednetherite:gold_upgraded_netherite_pickaxe',
    'upgradednetherite:fire_upgraded_netherite_pickaxe',
    'upgradednetherite:ender_upgraded_netherite_pickaxe',
    'upgradednetherite:water_upgraded_netherite_pickaxe',
    'upgradednetherite:phantom_upgraded_netherite_pickaxe',
    'upgradednetherite:feather_upgraded_netherite_pickaxe',
    'upgradednetherite:corrupt_upgraded_netherite_pickaxe',
    'upgradednetherite_ultimate:ultimate_upgraded_netherite_pickaxe',
    'additionaladditions:gilded_netherite_sword',
    'phantasm:crystalline_sword',
    'phantasm:stellium_sword',
    'malum:soul_stained_steel_sword',
    'twilightforest:ironwood_sword',
    'twilightforest:steeleaf_sword',
    'twilightforest:glass_sword',
    'twilightforest:giant_sword',
    'undergarden:utherium_sword',
    'undergarden:forgotten_sword',
    'upgradednetherite:gold_upgraded_netherite_sword',
    'upgradednetherite:fire_upgraded_netherite_sword',
    'upgradednetherite:ender_upgraded_netherite_sword',
    'upgradednetherite:water_upgraded_netherite_sword',
    'upgradednetherite:wither_upgraded_netherite_sword',
    'upgradednetherite:poison_upgraded_netherite_sword',
    'upgradednetherite:phantom_upgraded_netherite_sword',
    'upgradednetherite:feather_upgraded_netherite_sword',
    'upgradednetherite:corrupt_upgraded_netherite_sword',
    'upgradednetherite_ultimate:ultimate_upgraded_netherite_sword',
    'upgradednetherite_ultimate:ultimate_upgraded_netherite_axe',
    'upgradednetherite:corrupt_upgraded_netherite_axe',
    'upgradednetherite:feather_upgraded_netherite_axe',
    'upgradednetherite:phantom_upgraded_netherite_axe',
    'upgradednetherite:poison_upgraded_netherite_axe',
    'upgradednetherite:wither_upgraded_netherite_axe',
    'upgradednetherite:water_upgraded_netherite_axe',
    'upgradednetherite:ender_upgraded_netherite_axe',
    'upgradednetherite:fire_upgraded_netherite_axe',
    'upgradednetherite:gold_upgraded_netherite_axe',
    'undergarden:forgotten_axe',
    'undergarden:forgotten_battleaxe',
    'undergarden:utherium_axe',
    'undergarden:froststeel_axe',
    'undergarden:cloggrum_axe',
    'undergarden:cloggrum_battleaxe',
    'twilightforest:knightmetal_axe',
    'twilightforest:steeleaf_axe',
    'twilightforest:ironwood_axe',
    'byg:pendorite_battleaxe',
    'byg:pendorite_axe',
    'mowziesmobs:wrought_axe',
    'malum:soul_stained_steel_axe',
    'immersiveengineering:axe_steel',
    'phantasm:stellium_axe',
    'phantasm:crystalline_axe',
    'alloyed:steel_axe',
    'create_sa:experience_axe',
    'create_sa:copper_axe',
    'create_sa:zinc_axe',
    'create_sa:brass_axe',
    'create_sa:rose_quartz_axe',
    'create_sa:blazing_axe',
    'botania:elementium_axe',
    'botania:manasteel_axe',
    'born_in_chaos_v1:great_reaper_axe',
    'additionaladditions:gilded_netherite_axe',
    'additionaladditions:rose_gold_axe',
    'undergarden:forgotten_hoe',
    'undergarden:utherium_hoe',
    'undergarden:froststeel_hoe',
    'undergarden:cloggrum_hoe',
    'twilightforest:steeleaf_hoe',
    'twilightforest:ironwood_hoe',
    'byg:pendorite_hoe',
    'malum:soul_stained_steel_hoe',
    'immersiveengineering:hoe_steel',
    'phantasm:stellium_hoe',
    'phantasm:crystalline_hoe',
    'alloyed:steel_hoe',
    'create_sa:copper_hoe',
    'create_sa:zinc_hoe',
    'create_sa:brass_hoe',
    'additionaladditions:gilded_netherite_hoe',
    'additionaladditions:rose_gold_hoe',
    'undergarden:forgotten_shovel',
    'undergarden:utherium_shovel',
    'undergarden:froststeel_shovel',
    'undergarden:cloggrum_shovel',
    'twilightforest:ironwood_shovel',
    'byg:pendorite_shovel',
    'malum:soul_stained_steel_shovel',
    'immersiveengineering:shovel_steel',
    'alloyed:steel_shovel',
    'create_sa:experience_shovel',
    'create_sa:copper_shovel',
    'create_sa:zinc_shovel',
    'create_sa:brass_shovel',
    'create_sa:rose_quartz_shovel',
    'create_sa:blazing_shovel',
    'botania:elementium_shovel',
    'botania:manasteel_shovel',
    'additionaladditions:rose_gold_shovel',
    'undergarden:froststeel_sword',
    'undergarden:cloggrum_sword',
    'twilightforest:ice_sword',
    'twilightforest:knightmetal_sword',
    'twilightforest:fiery_sword',
    'byg:pendorite_sword',
    'immersiveengineering:sword_steel',
    'alloyed:steel_sword',
    'create_sa:experience_sword',
    'create_sa:copper_sword',
    'create_sa:zinc_sword',
    'create_sa:brass_sword',
    'create_sa:rose_quartz_sword',
    'botania:elementium_sword',
    'botania:manasteel_sword',
    'born_in_chaos_v1:spiritual_sword',
    'born_in_chaos_v1:sharpened_dark_metal_sword',
    'additionaladditions:rose_gold_sword',
    'undergarden:utherium_pickaxe',
    'undergarden:froststeel_pickaxe',
    'undergarden:cloggrum_pickaxe',
    'twilightforest:knightmetal_pickaxe',
    'twilightforest:fiery_pickaxe',
    'immersiveengineering:pickaxe_steel',
    'alloyed:steel_pickaxe',
    'create_sa:experience_pickaxe',
    'create_sa:copper_pickaxe',
    'create_sa:zinc_pickaxe',
    'create_sa:brass_pickaxe',
    'create_sa:blazing_pickaxe',
    'additionaladditions:rose_gold_pickaxe',
    'additionaladditions:gilded_netherite_shovel',
    'create_sa:experience_shovel',
    'phantasm:crystalline_shovel',
    'phantasm:stellium_shovel',
    'twilightforest:ironwood_shovel',
    'twilightforest:steeleaf_shovel',
    'upgradednetherite:gold_upgraded_netherite_shovel',
    'upgradednetherite:fire_upgraded_netherite_shovel',
    'upgradednetherite:ender_upgraded_netherite_shovel',
    'upgradednetherite:water_upgraded_netherite_shovel',
    'upgradednetherite:phantom_upgraded_netherite_shovel',
    'upgradednetherite:feather_upgraded_netherite_shovel',
    'upgradednetherite:corrupt_upgraded_netherite_shovel',
    'upgradednetherite_ultimate:ultimate_upgraded_netherite_shovel',
    'twilightforest:steeleaf_hoe',
    'twilightforest:ironwood_hoe',
    'create_sa:experience_pickaxe',
    'twilightforest:steeleaf_pickaxe',
    'twilightforest:ironwood_pickaxe',
    'born_in_chaos_v1:spiritual_sword',
    'born_in_chaos_v1:sharpened_dark_metal_sword',
    'twilightforest:steeleaf_sword',
    'twilightforest:ironwood_sword',
    'twilightforest:steeleaf_axe',
    'twilightforest:ironwood_axe',
	'supplementaries:sugar_cube',
    'supplementaries:rope',
    'additionaladditions:rope',
    'additionaladditions:wrench',
    'notreepunching:iron_knife',
    'notreepunching:gold_knife',
    'notreepunching:diamond_knife',
    'notreepunching:netherite_knife',
    'iceandfire:silver_sword',
    'iceandfire:silver_pickaxe',
    'iceandfire:silver_axe',
    'iceandfire:silver_shovel',
    'iceandfire:silver_hoe',
    'iceandfire:copper_sword',
    'iceandfire:copper_pickaxe',
    'iceandfire:copper_axe',
    'iceandfire:copper_shovel',
    'iceandfire:copper_hoe'
];

const categoriesToHide = ['twilightforest:uncrafting'];
