Dynamic Crosshair

Dynamic Crosshair

4M Downloads

shields

Closed this issue ยท 8 comments

commented

if i have a shield in my offhand and look at a entity i dont get the entity crosshair

is there a way to change this with the mod config?

commented

I'm having the same issue as fart-fart. Holding a shield disables the crosshair regardless if you are holding a tool or targeting something. I'm using Fabric 1.21.5, and except for the crosshair styles, all the configs are default.

P.S. This mod rules.

commented

Should be fixed in 9.6, let me know if it isn't

commented

I've updated to 9.6, it still seems to be bugged :(

commented

It works for me on 9.6+1.21.5-fabric :/

What version of Fabric + Minecraft is it broken on for you? What other mods are you using, is this in singleplayer or multiplayer? Can you share your DynamicCrosshair config, if you changed anything?

commented

Image

commented

I'm currently on Fabric 1.21.5, using version 9.6 in multiplayer.
This was the best way I could think to grab the list, The highlighted mods are the ones I think might affect the hud in some way. (Raised does too, but I added that too recently for it to be the problem)

Let me know if you need anything else from me, or if there's a better way I could send this. Thank you for your help :)

Image

{ "dynamicCrosshair": true, "disableDebugCrosshair": false, "thirdPersonCrosshair": false, "hideWithScreen": true, "hideWithMap": true, "fixCenteredCrosshair": false, "crosshairConfig": { "onBlock": true, "onInteractableBlock": true, "onEntity": true, "holdingTool": "Always", "displayCorrectTool": false, "holdingMeleeWeapon": true, "meleeWeaponOnEntity": true, "meleeWeaponOnBreakableBlock": false, "holdingRangedWeapon": "Always", "holdingThrowable": "IfInteractable", "holdingShield": true, "holdingBlock": "IfInteractable", "holdingBlockInOffhand": true, "holdingUsableItem": "IfInteractable", "forceHoldingSpyglass": false }, "color": { "overrideColor": false, "customColor": -5588020, "enableBlend": true }, "dynamicCrosshairStyle": true, "crosshairStyle": { "regular": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "onBlock": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "onEntity": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "holdingTool": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "holdingMeleeWeapon": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "holdingRangedWeapon": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": false }, "holdingThrowable": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "holdingBlock": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": false }, "interact": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "useItem": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true }, "shield": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": false, "customColor": -5588020, "enableBlend": true, "coalesce": true } }, "crosshairModifiers": { "modCorrectTool": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": true, "customColor": -16711936, "enableBlend": false, "coalesce": true }, "modIncorrectTool": { "style": "dynamiccrosshair:crosshair/custom-1", "overrideColor": true, "customColor": -65536, "enableBlend": false, "coalesce": true } }, "enableTweaks": true, "additionalTools": [], "additionalMeleeWeapons": [], "additionalRangedWeapons": [], "additionalThrowables": [], "additionalUsableItems": [], "additionalInteractableBlocks": [] }

commented

Ah, that is a different issue. The crosshair is rendered by inverting the colours behind it. Rendering two crosshairs that overlap will cancel out the overlapping areas. Since you have the same crosshair defined for "shield" and "entity", it tries to render the same crosshair twice, and the result is nothing showing up. I have yet to find a good way to fix this, that's why the "coalesce" option exists. That means the crosshair does not combine with any others (i.e., it will only render the crosshair once).

If you set "coalesce" to "false" for both shield + usable item, it should work as you expect.

commented

I see! Thank you very much!