Posted August 15, 20241 yr StartupEvents.modifyCreativeTab('gtceu:hazmat_headpiece', event => { event.removeDisplay('gtceu:hazmat_headpiece'); }) StartupEvents.modifyCreativeTab('gtceu:hazmat_boots', event => { event.removeDisplay('gtceu:hazmat_boots'); }) StartupEvents.modifyCreativeTab('gtceu:hazmat_leggings', event => { event.removeDisplay('gtceu:hazmat_leggings'); }) StartupEvents.modifyCreativeTab('gtceu:hazmat_chestpiece', event => { event.removeDisplay('gtceu:hazmat_chestpiece'); }) How Do I fix This Code? Edited August 15, 20241 yr by FoxyWoxy
August 15, 20241 yr Author This Is for modifying the items in the creative inventory so no BUT there is great documentation for what you are looking for! Because GregTech 1.19.2 has a bug where the hazmat suit shows up in the wrong places and they are to lazy to fix it so i am doing it myself
August 15, 20241 yr Did some research, there is a alternative mod that might help I have not used this mod myself but this could work. The mod name is "Advanced Creative Tab (Forge)" here is the link. https://www.curseforge.com/minecraft/mc-mods/advanced-extended-creative-mode Tell me if it doesn't work.
August 16, 20241 yr For KubeJS, use the serverevents (yes also for singleplayer) At kubejs/server_scripts/ create a new .js file: reciperemoval.js Paste: ServerEvents.recipes(event => { let toRemove = [ {output: 'gtceu:hazmat_headpiece'}, {output: 'gtceu:hazmat_boots'}, {output: 'gtceu:hazmat_leggings'}, {output: 'gtceu:hazmat_chestpiece'}, ]; for (const remove of toRemove) { event.remove(remove); } }) Restart the game and test it again Try my Modpack >>Link to Curseforge<<
August 16, 20241 yr Author It sadly didnt work and the greg tech hazard suits are everywhere still But it dosent effect survival
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.