4

Detecting invisible mobs

Cra-Zy's Avatar Cra-Zy2/6/22 1:19 pm history
2/8/2022 1:40 am
Dewaynea's Avatar Dewaynea

{-Solved-}


I made a minigame where you need to escape from a ghostlike mob. for this I used an invisible zombie with armour and particle effects.

I decided to add some extra's and here's where I found a problem in the design.
I have made a snow golem turret, the golem slows the zombie down and gives you a headstart. except here's the problem.

Snow golems can't detect invisible zombies. which is a problem because the "Ghost" looks stupid if I don't turn the zombie invisible but if the zombie is invisible the golem won't attack him.

Is there a way to make a snow golem detect an invisible zombie?

Personally, i was thinking towards an entity riding the zombie that the golem can detect or involving raytracing and making the snow golem "shoot" snowballs in the direction of the zombie if there's one in range.

But honestly, I wouldn't know where to start, can anyone help with this problem?
Posted by Cra-Zy's Avatar
Cra-Zy
Level 20 : Expert Architect
12

Create an account or sign in to comment.

2

Dewaynea
02/08/2022 1:40 am
Level 1 : New Miner
history
Dewaynea's Avatar
Invisibility is a Status Effect that makes a player temporarily invisible to other players or mobs. ... However, for every piece of armor worn, it lessens the effectiveness of the invisibility effect.

MyBalanceNow
1
Cra-Zy
02/07/2022 3:04 am
Level 20 : Expert Architect
Cra-Zy's Avatar
Solved, turns out the snow golem was able to detect the zombie, but wouldn't attack him because he was invulnerable, snow golem started attacking once I removed the invulnerable tag
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome