Talk:Guardian

Split
Should the page be split into a page for the Guardian and the Elder Guardian? At the moment it seems like a mess of information intertwined for both. –Goandgoo ᐸ Talk Contribs Edits 07:58, 19 June 2014 (UTC)


 * Yes. –Matt ᐸ Talk Contribs ⎜ 11:01, 19 June 2014 (UTC)
 * I don't think it is a good idea. The Elder Guardian and the normal Guardian have too much in common. The pages are identical. —  Itouchmasterpro  d  c 12:53, 19 June 2014 (UTC)
 * Could we factor out the duplicate information, and just describe how the Elder is different from the regular Guardian, and make it clear at the top that's what is going on? – Sealbudsman (Aaron) (talk) – 16:19, 19 June 2014 (UTC)

Raw fish- both common and rare drop?
OK, stupid question here: In the "Drops" section of the guardian the raw fish is listed under both common and rare drops, and in the edit page there is this comment next to it: "The guardian has raw fish as both a common drop *and* a rare drop.". Can somebody shed some light on this? –Preceding unsigned comment was added by 92.80.146.185 (talk) at 05:33, 20 June 2014 (UTC). Please sign your posts with
 * The "common drops" function is called on every death, and drops 0-2 Prismarine Shards (max increased with Looting), 1 raw fish (33% chance, chance improved with looting) or 1 Prismarine Crystal (33% chance if the fish drop failed, chance improved with looting), and 1 sponge if it was an Elder and registered as a player kill. The "rare drops" function, which is only called 2.5% of the time (improved with Looting) on player kills, does basically the same thing that a fishing rod does when you're catching a fish (not junk or treasure). Anomie x (talk) 17:24, 20 June 2014 (UTC)

texture
When I open up the texture files in paint.net, the word "jeb" is in the bottom right corner. Should that be added to trivia? PlasmicPyrotechnic (talk) 01:26, 30 June 2014 (UTC)

Guardian Spawning
It is said on this Wiki that the Guardians only spawn in the Ocean Monuments, but I know of one instance where they spawn otherwise. See Etho's SSP LP https://www.youtube.com/watch?v=dho3KHcerYs. He has a River biome that he's building up a Guardian Farm. The way he talks about it, it sounds as though there's certain chunks that spawn them. Any verification for this? ~ChaseNetwork –Preceding unsigned comment was added by 70.180.229.81 (talk) at 01:05, 27 July 2014 (UTC). Please sign your posts with


 * I watched the video, and it actually seems he is in old 1.6 terrain, and he is in the location where a ocean monument would be in 1.8. For some reason, it may not load the ocean monument based on the new structure code, or it just adds it upon starting the world, instead of adding it from generation. He even refereed to the area as a temple --KnightMiner  (t 02:02, 27 July 2014 (UTC)


 * Do these spawn only in water source blocks, or will they spawn in downward-pouring water as well? --72.223.80.114 01:09, 23 September 2014 (UTC)


 * Based on several farm designs I've seen, they will spawn in downwards flowing water. --KnightMiner  (t 01:17, 23 September 2014 (UTC)

"Specifically, spawning will fail 95% of the time if the spawning water block is below Y=63, all blocks between the spawning water block and Y=63 are liquid or fully transparent, and the block at Y=63 has a view of the sky. Above Y=63, spawning will fail 95% of the time if the spawning water block has a view of the sky." These two sentences are very confusing. The way it is worded, it states that spawning fails 95% of the time if there is a view of the sky, in either situation. The authors intent seems to be that this is not the case. Is there a way to restate this by saying what needs to happen to be successful? –Preceding unsigned comment was added by Qqtpie (talk • contribs) at 15:22, 3 January 2015 (UTC). Please sign your posts with
 * The quoted text is correct. If Y=63 or above, the game checks if the block itself has a view of the sky. Otherwise it checks whether the block at Y=63 can see sky and that all blocks between the spawning block and Y=63 are fully transparent or liquid. From MCP:

 public boolean getCanSpawnHere { return (this.rand.nextInt(20) == 0 || !this.worldObj.canBlockSeeSky(new BlockPos(this))) && super.getCanSpawnHere; }
 * How does this make any sense? Guardians can't spawn above Y=61! This implies that not only are spawn attempts happening above Y=63 (which is impossible), but that they are successful 5% of the time! --71.114.70.87 01:17, 11 June 2021 (UTC)
 * Spawning succeeds if a 5% chance passes or if there is not a view of the sky. The somewhat-misnamed "canBlockSeeSky" implements the stuff about above and below Y=63. Anomie x (talk) 16:41, 3 January 2015 (UTC)

Updating to 1.9
The drops section is confusing to me; someone other than myself may have to tackle it. – Sealbudsman talk/contr 18:55, 29 February 2016 (UTC)

Guardians target fish?
A few months ago I was cruising along over the ocean in creative mode, when I came across a monument. I dove in and started exploring it. When I returned to the surface to fly back to a nearby island, I noticed a large area of dead fish floating on the surface. Curious, I dove back into the water, and saw the monument guardians firing their lasers at random fish. It was a sight to behold. Lines of bubbles shooting every couple of seconds, each one lined up on a fish.

I'm playing Bedrock. This was a while back, 1.4 or 1.5 I recall, before the aquatic update (it's now at 1.7 as I write this).

Since then, I've sought out other ocean monuments to see this phenomenon again, hoping to capture a video, but it hasn't happened.

Was this a glitch? Or has anyone else seen guardians shooting at fish (Bedrock or Java), and not just squid? ~Amatulić (talk) 06:19, 6 November 2018 (UTC)


 * Next time, if you are lucky enough to encounter that situation again, immediately press then you can paste it in an image editor. Lê Duy Quang (Make some words | Contributions) at 10h49:08 | 10/11/2018 (UTC)

"The guardian's laser is able to penetrate armor to some extent"
(Guardian) What exactly does this mean technically? Does armor reduce less damage from guardian attacks than it does other forms of damage? More details and possibly the math involved with this would be helpful.--Madminecrafter12 (Talk to me 15:16, 28 October 2019 (UTC)
 * I think it simply means that armor gives you some protection from lasers, the same way it gives you some protection from any other attack. All attacks penetrate armor "to some extent". Amatulic (talk) 04:12, 26 July 2021 (UTC)

Laser and transparent blocks
Does a guardian fire at a target through transparent blocks like air or glass, or must the laser pass only through water blocks? The article doesn't say. I'm wondering if I conquer a monument and make a glass observation room at the top, would guardians fire through it? I do recall getting hit by something while standing on the edge of a floating dirt platform over a monument, suggesting that a guardian fired at me from underwater while I was above water, but I didn't see it happen, I just heard a 'hit' sound and saw my hearts go down a bit. Amatulic (talk) 05:11, 13 January 2021 (UTC)
 * Update: I built a glass observation room at the top of a monument in creative and then switched to survival. The guardians swam around and occasionally came up to the glass and looked in, but didn't seem to notice me at all. Amatulic (talk) 05:29, 13 January 2021 (UTC)

Pathfinding behavior with light
The Light section states that "guardians flock around light sources"; however this is a piece of information that I've been questioning for a while. They do appear to have a higher tendency to move towards light sources in Java, which is supported by a quick look through pathfinding code; however they don't seem to "flock around" them, and most other mobs have similar code where pathfinding preferences are affected by light (animals generally preferring higher light levels and most monsters preferring lower light). I'm not sure what the best way to describe this pathfinding behavior is, as "flocking around light sources" seems inaccurate and doesn't match what I'm seeing in-game. – Sonicwave talk  06:15, 22 July 2022 (UTC)
 * Curious where you saw the light source attraction in the code. None of the goals seem to involve light or conduits. It's mostly random stroll, looking around, and targeting players, squids and axolotls. - AD OffKilter (talk) 06:33, 22 July 2022 (UTC)
 * It took me a while to find it, but in the random stroll goal, the function to get a random position to move to eventually calls "getWalkTargetValue" which includes light level as a factor for guardians and certain other mobs. It looks like this value is also used to determine where the mob should move to and not just for pathfinding, though I haven't looked at these functions too in-depth yet to know exactly how they work. – Sonicwave talk  06:53, 22 July 2022 (UTC)
 * Interesting, it was right in front of me the whole time :-/ Thanks for the pointer. I just wrote a quick test and it actually seems to do the opposite: the cost goes up as it gets brighter. In pitch dark the cost seems to be 9.5 and right next to a sea lantern the cost is about 10.2. I am assuming higher costs are less desirable so if anything it would seem they favor darker places over lighter (if the cost direction assumption is correct). But in any case the range is not that vast. There might be a slight tendency to favor one of the other, but nothing that I think would result in "flocking" as to your original point in all of this. - AD OffKilter (talk) 15:20, 22 July 2022 (UTC)
 * I think higher values are actually more desirable; in RandomPos.generateRandomPos it appears to take 10 random positions (I haven't checked how they're generated), apply the pathfinding cost to each and keep the one with the highest value. Regardless, I'll go ahead and remove or reword the mention in the article, as it seems safe to assume that the light level preference is a subtle behavior (that may or may not be noticeable to the average player) and not an obvious "flocking". – Sonicwave talk  05:34, 23 July 2022 (UTC)
 * Ooh, I think you're right about the higher values being more desirable. This of course goes against any past cost-function pathfinding I've done before, but it also might explain why guardians tend to gravitate towards the surface of the water and/or stay near the monument. Interesting. But as you mention, probably not noteworthy. - AD OffKilter (talk) 05:50, 23 July 2022 (UTC)