Jump to content

Recommended Posts

Posted (edited)

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 by FoxyWoxy
Posted

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

Posted

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

spacer.png

>>Link to Curseforge<<

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.