#creative tab removal

10 messages · Page 1 of 1 (latest)

brazen summit
#

I wanted to remove the Traveler's Compass tab because it litterally only has one item

and I'm replacing it with all the compasses available in my modpack

the problem is it does not seem to be removing the travelers compass tab from the game.

Any idea why?

// Compasses Tab
StartupEvents.modifyCreativeTab('travelerscompass:tab', event => {
  event.remove
})

StartupEvents.registry('creative_mode_tab', e => {
  e.create('compasses')
  .icon(() => 'travelerscompass:travelerscompass')
  .content(() => [
    'recovery_compass',
    'travelerscompass:travelerscompass',
    'naturescompass:naturescompass',
    'explorerscompass:explorerscompass',
    'irons_spellbooks:wayward_compass'
  ])
  .displayName('Special Compasses')
})```
gusty galeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

brazen summit
#

So I discovered if I do /kubejs dump_registry minecraft:creative_mode_tabs then that will put into chat and in the logs all creative mode tabs available in the game

#

im going to replace the modify creative tab event with the one I found for traveler's compass and hope that works

#

well im sure it would have worked but the tab is still here....

brazen summit
#

if anyone can help out that would be greatly appreciated

tropic kindle
#

you need to empty the tab with this:

StartupEvents.modifyCreativeTab('travelerscompass:creative_tc_tab', event => {
  event.remove('travelerscompass:travelerscompass')
})

but it leaves a empty space where the creative tab was
it is a solution but not the perfect one^^

brazen summit
#

hmm... tad annoying.

#

what if I added all the other compasses to the Travelers tab?

something like this?

StartupEvents.modifyCreativeTab('travelerscompass:creative_tc_tab', event => {
  event.add([ 
    'recovery_compass',
    'naturescompass:naturescompass',
    'explorerscompass:explorerscompass',
    'irons_spellbooks:wayward_compass'
  ])
})```
tropic kindle
#

just try and see