GM4_Datapacks
GM4_Datapacks copied to clipboard
Lumos Shamir placing torches inside water*
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:
- Cover yourself in water
- Hold a pickaxe with Lumos with torches in your inventory
- 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
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.