GM4_Datapacks icon indicating copy to clipboard operation
GM4_Datapacks copied to clipboard

Lumos Shamir placing torches inside water*

Open jackythejack13 opened this issue 2 years ago • 1 comments

Describe the bug Places torches while holding a Pickaxe with Lumos. Replacing torches inside water in the dark

To Reproduce Steps to reproduce the behavior:

  1. Cover yourself in water
  2. Hold a pickaxe with Lumos with torches in your inventory
  3. Torches keep getting replaced and broken by water

Expected behavior Torches should not be placed in water at a darkness level

Fix Add a if the player is in water, not to place torch

Environment

  • Minecraft version: 1.18.1
  • Server version: Gamemode 4 Public server 8
  • Installed Datapacks: Lumos
  • Installed Mods: Fabric

jackythejack13 avatar Mar 24 '22 11:03 jackythejack13

This is caused by the block tag #gm4:replaceable, which contains all blocks the player can directly replace with blocks (like torches). It's intended to copy the same behaviour as a player trying to place the torch, so technically it's working as intended, but I can see this should be prevented.

Note that Crossbow Cartridges should use the same conditions for placing a torch. It currently places the torch in water as well, but it's not too big of a problem because it's not repeatedly like with lumos.

Dennis-0 avatar Mar 24 '22 12:03 Dennis-0