Topic category: Help with Minecraft modding (Java Edition)
(I am translating this using DeepL as English is not my native language.)
I want to be able to detect and execute a procedure to this entity, even behind walls, using a wallhack (this will be built into my mod, too), when I right-click on a specific item, the Living entity I am looking at (exactly the same way as the Cannibal Attack targeting method in the game Dread Hunger I want to be able to detect and execute the procedure on the axis of this entity even behind a wall (exactly the same way as the Cannibal Attack target specification in the game Dread hunger), but if I use the “X/Y/Z coordinates that [entity] is looking at” block, the decision is blocked by the terrain.
What should I do?
I am using Mcreator 2024.3 as my development environment, Neoforge with Minecraft 1.21.1.