Adaptive Crosshair based off Curios Slot (Iron's Spellbooks)
Kewz4 opened this issue · 3 comments
Description
Hi, would it be possible to support this?
The latest version of Iron's Spellbooks changed how spellbooks work—they now attach to a Curios slot, and you can cast spells with any item in hand since the spellbook is now an active item in the Curios slot. I've tried setting the spellbooks in the config for Adaptive Crosshair, but they still don’t work since the item is not technically “held” or “used.”
Thank you! This mod is amazing.
Minecraft version
1.21.1 Neoforge
Incompatible mod name
It is compatible, just a few tweaks needed - Iron's Spellbooks
Incompatible mod version
1.21.1-3.13.1
Game Logs
No logs
Thanks for the suggestion! The next version of Shoulder Surfing Reloaded will have dedicated options for curios slots. However, it would be nicer when Iron's Spellbook would support Shoulder Surfing Reloaded directly, but it looks like that would require a lot of work on their side.
I'm not sure if the Curios integration feature can fix this issue. There are three main problems:
- When a spell is cast via a spellbook (using a keybind rather than using the item), the player does not turn to look at the crosshair target. The same issue occurs when using quick cast.
- When casting a long or continuous spell, the camera should be temporarily coupled if it was previously decoupled.
- When casting a spell using a spell item with a controller, Shoulder Surfing won't call
lookAtCrosshairTarget.
Adding the following:
[integrations]
[integrations.curios]
adaptive_crosshair_items = ["spellbook@irons_spellbooks:.*_book", "spellbook@*"]This will always force camera decoupling when the spellbook is equipped, so this feature might still be useful for solving other issues.
I was able to fix these issues by developing a simple utility mod (should be available on Modrinth soon). I would be happy to drop support for this mod and submit a PR to make this functionality built-in to the Shoulder Surfing Reloaded mod instead.
