Electroblob77 / Wizardry

Source code for Electroblob's Wizardry, a Minecraft mod about magic, exploration and adventure. Open-source so other aspiring wizards (a.k.a. programmers 😎) can see the real magic! ✨ Just want to download and play? Head over to the CurseForge page via the link below:
https://minecraft.curseforge.com/projects/electroblobs-wizardry
Other
202 stars 106 forks source link

[Bug] Neutral Wizards do not become hostile when blocks are broken in their structure out of their line of sight #862

Open KnightCa opened 9 months ago

KnightCa commented 9 months ago

Is there an existing issue for this?

Observed behaviour

If you go into a Neutral Wizards home (wizard tower) and place blocks (such as dirt) without destroying any blocks.. you can avoid the wizard becoming hostile towards you for subsequently breaking blocks (by blocking his line of sight to you).

Currently, a player can puts blocks around a wizard to block line of sight, then steals everything in the structure without upsetting the wizard (breaking blocks or bookshelves, etc).

Expected behaviour

Neutral Wizards should become hostile towards you for placing/breaking blocks or accessing blocks (outside of optionally arcane workbench) in their structure, even if out of line of sight.

Steps to reproduce

  1. Join a Server
  2. Enter a Neutral Wizard Tower
  3. Place dirt blocks around the Wizard to block line of sight
  4. Break a bookcase
  5. Trade with Wizard as if nothing has happened (Wizard is not hostile)
  6. Break a bookcase where he can see it (Wizard becomes hostile)

Crashlog

No response

Environment (Singleplayer/Server, etc.)

Issue present on both sides

Mod version

4.3.11

Minecraft version

1.12.2

Forge version

1.12.2-forge-14.23.5.2860

Other mods

No response