Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • 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

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<<

  • 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.