Traveler's Backpack [Fabric]

Traveler's Backpack [Fabric]

11M Downloads

Problem When Whitelisting Modded Items For Tool Slots

Emma-at-1nce opened this issue · 4 comments

commented

Game Version: 1.20.1
Modloader: Quilt Loader 0.23.1
Mod Version: 1.20.1-9.1.9

  1. Describe the bug

When attempting to whitelist the create wrench, it will only intermittently work and allow you to equip to tool slots.
Whitelist will always work for vanilla items. Have not tried to use other modded items (such as the apple, which works fine)

  1. Write steps to reproduce the bug

Edit the config file as follows:

		"toolSlotsAcceptableItems": [
			"create:wrench",
			"minecraft:apple"
		]

after whitelisting items:

Start the game, and try to place the wrench in a slot. It may work, but only very rarely.

When trying to place an apple in a slot, it works as expected.

  1. What is expected behaviour

The create wrench should be able to be placed in the tool slot and swappable with other tools after being whitelisted.

  1. Screenshots (If applicable)

The edited portion of the config file:
Screenshot 2024-02-20 at 10 32 44 AM

Apple works as expected:
Screenshot 2024-02-20 at 10 45 39 AM

Dragging wrench to slot:
Screenshot 2024-02-20 at 10 47 29 AM

On click, wrench is not placed in slot:
Screenshot 2024-02-20 at 10 48 49 AM

Double-checking to confirm item ID:
Screenshot 2024-02-20 at 10 59 27 AM

Attempting with Macaw's Bridges Pliers:
Screenshot 2024-02-20 at 11 06 44 AM
Screenshot 2024-02-20 at 11 08 53 AM

Same issue, pliers cannot be placed in slot:
Screenshot 2024-02-20 at 11 10 04 AM

Full contents of config file:

{
	"backpackSettings": {
		"enableTierUpgrades": true,
		"disableCrafting": false,
		// Enables wearing backpack directly from ground
		"enableBackpackBlockQuickEquip": true,
		// Enables unequipping the backpack when player clicks with empty hand on the ground
		"enableBackpackRightClickUnequip": false,
		// Backpack immune to any damage source (lava, fire), can't be destroyed, never disappears as floating item
		"invulnerableBackpack": true,
		// List of items that can be put in tool slots (Use registry names, for example: minecraft:apple, minecraft:flint)
		"toolSlotsAcceptableItems": [
			"create:wrench",
			"minecraft:apple",
			"mcwbridges:pliers"
		],
		// List of items that can't be put in backpack inventory (Use registry names, for example: minecraft:apple, minecraft:flint)
		"blacklistedItems": [],
		"allowShulkerBoxes": false,
		"tanksCapacity": [
			162000,
			243000,
			324000,
			405000,
			486000
		],
		// Prevents backpack disappearing in void
		"voidProtection": true,
		// Places backpack at place where player died
		"backpackDeathPlace": true,
		// Places backpack at place where player died, replacing all blocks that are breakable and do not have inventory (backpackDeathPlace must be true in order to work)
		"backpackForceDeathPlace": false,
		"enableSleepingBagSpawnPoint": false,
		/* If true, backpack can only be worn by placing it in curios 'Back' slot
		   WARNING - Remember to TAKE OFF BACKPACK BEFORE enabling or disabling this integration!! - if not you'll lose your backpack
		*/
		"trinketsIntegration": false
	},
	"world": {
		// Enables backpacks spawning in loot chests
		"enableLoot": true,
		// Enables chance to spawn Zombie, Skeleton, Wither Skeleton, Piglin or Enderman with random backpack equipped
		"spawnEntitiesWithBackpack": true,
		// List of overworld entity types that can spawn with equipped backpack. DO NOT ADD anything to this list, because the game will crash, remove entries if mob should not spawn with backpack
		"possibleOverworldEntityTypes": [
			"minecraft:zombie",
			"minecraft:skeleton",
			"minecraft:enderman"
		],
		// List of nether entity types that can spawn with equipped backpack. DO NOT ADD anything to this list, because the game will crash, remove entries if mob should not spawn with backpack
		"possibleNetherEntityTypes": [
			"minecraft:wither_skeleton",
			"minecraft:piglin"
		],
		// Defines spawn chance of entity with backpack (1 in [selected value])
		"spawnChance": 500,
		// List of backpacks that can spawn on overworld mobs
		"overworldBackpacks": [
			"travelersbackpack:standard",
			"travelersbackpack:diamond",
			"travelersbackpack:gold",
			"travelersbackpack:emerald",
			"travelersbackpack:iron",
			"travelersbackpack:lapis",
			"travelersbackpack:redstone",
			"travelersbackpack:coal",
			"travelersbackpack:bookshelf",
			"travelersbackpack:sandstone",
			"travelersbackpack:snow",
			"travelersbackpack:sponge",
			"travelersbackpack:cake",
			"travelersbackpack:cactus",
			"travelersbackpack:hay",
			"travelersbackpack:melon",
			"travelersbackpack:pumpkin",
			"travelersbackpack:creeper",
			"travelersbackpack:enderman",
			"travelersbackpack:skeleton",
			"travelersbackpack:spider",
			"travelersbackpack:bee",
			"travelersbackpack:wolf",
			"travelersbackpack:fox",
			"travelersbackpack:ocelot",
			"travelersbackpack:horse",
			"travelersbackpack:cow",
			"travelersbackpack:pig",
			"travelersbackpack:sheep",
			"travelersbackpack:chicken",
			"travelersbackpack:squid"
		],
		// List of backpacks that can spawn on nether mobs
		"netherBackpacks": [
			"travelersbackpack:quartz",
			"travelersbackpack:nether",
			"travelersbackpack:blaze",
			"travelersbackpack:ghast",
			"travelersbackpack:magma_cube",
			"travelersbackpack:wither"
		],
		// Enables trade for Villager Backpack in Librarian villager trades
		"enableVillagerTrade": true
	},
	"backpackAbilities": {
		"enableBackpackAbilities": true,
		"forceAbilityEnabled": false,
		// List of backpacks that are allowed to have an ability. DO NOT ADD anything to this list, because the game will crash, remove entries if backpack should not have ability
		"allowedAbilities": [
			"travelersbackpack:netherite",
			"travelersbackpack:diamond",
			"travelersbackpack:gold",
			"travelersbackpack:emerald",
			"travelersbackpack:iron",
			"travelersbackpack:lapis",
			"travelersbackpack:redstone",
			"travelersbackpack:bookshelf",
			"travelersbackpack:sponge",
			"travelersbackpack:cake",
			"travelersbackpack:cactus",
			"travelersbackpack:melon",
			"travelersbackpack:pumpkin",
			"travelersbackpack:creeper",
			"travelersbackpack:dragon",
			"travelersbackpack:enderman",
			"travelersbackpack:blaze",
			"travelersbackpack:ghast",
			"travelersbackpack:magma_cube",
			"travelersbackpack:spider",
			"travelersbackpack:wither",
			"travelersbackpack:bat",
			"travelersbackpack:bee",
			"travelersbackpack:ocelot",
			"travelersbackpack:cow",
			"travelersbackpack:chicken",
			"travelersbackpack:squid"
		]
	},
	"slownessDebuff": {
		// Player gets slowness effect, if carries too many backpacks in inventory
		"tooManyBackpacksSlowness": true,
		// Maximum number of backpacks, which can be carried in inventory, without slowness effect
		"maxNumberOfBackpacks": 3,
		"slownessPerExcessedBackpack": 1
	},
	"client": {
		// Enables tool cycling via keybind (Default Z) + scroll combination, while backpack is worn
		"enableToolCycling": true,
		// Allows tool cycling using keybinding only (Default Z)
		"disableScrollWheel": false,
		// Enables tip, how to obtain a backpack, if there's no crafting recipe for it
		"obtainTips": true,
		// Render tools in tool slots on the backpack, while worn
		"renderTools": true,
		// Render backpack if elytra is present
		"renderBackpackWithElytra": true,
		// Disable backpack rendering
		"disableBackpackRender": false,
		"overlay": {
			// Enables tanks and tool slots overlay, while backpack is worn
			"enableOverlay": true,
			// Offsets to left side
			"offsetX": 20,
			// Offsets to up
			"offsetY": 30
		}
	}
}
commented
commented

I know what's the issue and it'll be fixed in upcoming update