pcal43 / quicksort

Minecraft mod. Low-effort item sorting to keep your workshop organized.
https://modrinth.com/mod/quicksort
MIT License
7 stars 3 forks source link

Mod chest how to add #51

Closed Arcadioo closed 2 weeks ago

Arcadioo commented 2 weeks ago

I am changing the ID but it doesn't work, please help

'targetContainerIds': ['reinfchest:iron_chest'] }, { // type of the block under the chest 'baseBlockId': 'minecraft:emerald_block',

pcal43 commented 2 weeks ago

I just confirmed that it works fine. This is my quicksort.json5 file.

//
// Quicksort configuration file
//
// Note that this file isn't parsed with a true json5 parser; it's just preprocessed to strip
// lines starting with '//'
//

{
  // List of configurations for quicksort chest types.  A type is determined by the type of the block underneath
  // the chest (baseBlockId).
  //
  // If more than one quicksortChest is defined, each will take default values from the one that preceded it.
  //
  'quicksortChests' : [
    {
      // type of the block under the chest
      'baseBlockId': 'minecraft:diamond_block',

      // range at which target chests will be detected
      'range': 10,

      // number of ticks between items
      'cooldownTicks': 3,

      // number of ticks it takes the item animation to complete.  set to -1 to disable animation.
      'animationTicks': 10,

      // volume of sound
      'soundVolume': 0.75,

      // pitch of sound
      'soundPitch': 2.0,

      // Sorted items with these ids will also have to have matching nbts.  This means that the enchantments
      // will have to line up, which is (probably) desirable if you're sorting enchanted books (where you
      // may want to sort by enchantment) but maybe less so if you're sorting diamond swords (where you probably
      // want to just dump them all in one chest regardless of enchantment).
      'nbtMatchEnabledIds': ['minecraft:enchanted_book'],

      // Ids of blocks that will be considered valid targets for sorting.  Listed blocks must be block entities
      // with an inventory.
      'targetContainerIds': ['minecraft:chest', 'reinfchest:iron_chest']
    },
    {
      // type of the block under the chest
      'baseBlockId': 'minecraft:emerald_block',

      // range at which target chests will be detected
      'range': 5
    }

  ],

  'logLevel' : 'INFO'
}

Going to close this unless you can give me a better repro.

pcal43 commented 2 weeks ago

Also, please don't use github issues for support requests - use the discussion channel:

https://discord.pcal.net