Talk:Blinkroot

From Terraria Wiki
Jump to navigation Jump to search

It seems that ever plant has very specific means of making it bloom. It seems odd that this one just randomly blooms. Is there anything that might contribute to it blooming that we might be missing? --71.55.138.194 14:45, 25 June 2011 (UTC)

ive found out that blinkroots planted in dirt blooms faster that potted, or it stays in blooming state longer. 195.90.102.181 23:24, 19 September 2011 (UTC)

Not Just Underground?

found it while walking on a dirt skywalk. Seems like it'll grow on any dirt/stone block. Anyone else confirm this?

Yup, it will grow at any depth regardless of background. It's the same with all alchemy plants.--GauHelldragon 04:55, 19 July 2011 (UTC)

Blinkroot seems to grow underground faster than above ground. I have a sky bridge of dirt and it does pop up there from time to time but when I tested it, it seems to grow faster underground. I made 15 rows above ground, 12 below and one at level to test this. I left it on for 24 hours and none appeared above ground but 11 grew below the level mark. As for caverns, I wasn't going to test that deep....yet. Considering it is a fungus and fungus grows well in damp and dark places, this make logical sense.

http://terraria.gamepedia.com/File:Blinkroot_test_shad.png#

Edited: added png file to wiki instead of http link

I went into the source code to check this, and it seems you're correct. Herbs are given a 1/40 chance of being planted only the underworld, otherwise they have a 1/10 chance being planted anywhere in the world. If both of these chances fail, the plant will be placed anywhere from the underground to the bottom of the world, so the odds are in favor of them showing up underground. I'm pretty sure this would be worth noting on the page. --KM100 (talk) 22:18, 23 June 2015 (UTC)
The author posted this question in 3 places: see User talk:Gearzein#Blinkroot and this forum thread for the various replies. Equazcion (talk) 22:32, 23 Jun 2015 (UTC)
In your experiment, I can't help but notice there are 12 rows above the surface but only 9 rows below. At the forums, nobody really posted any statistical data, although critcodedtuna brought up that the surface could be selected by RNG more than underground, so the PlantAlch method alone might not be sufficient for finding out which is faster. I guess it would be better to wait for more information, then. --KM100 (talk) 23:06, 23 June 2015 (UTC)
It was semi-on-purpose, I have 9 above ground, 9 below zero, and 3 in the surface below ground with the natural dirt wall backing. None of the circumstances seemed to make any difference in my test. If you found the relevant bits of code though, you can update the info -- if this applies to all harvested plants, it should probably go on the Herbs page. If you're not sure you could paste the code snippet you found here first so others can possibly weigh in. Equazcion (talk) 23:12, 23 Jun 2015 (UTC)
I'm fairly sure the code (found in PlantAlch of WorldGen) is doing what it should, but I'm not sure if the rest of the world's RNG is doing what I think it is, so I'll wait for something else to come up. --KM100 (talk) 23:30, 23 June 2015 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Putting the relevant PlantAlch bit up here in case anyone wants to offer an opinion:

public static void PlantAlch() {
	int num = WorldGen.genRand.Next(20, Main.maxTilesX - 20);
	int num2;
	if (WorldGen.genRand.Next(40) == 0) {
		num2 = WorldGen.genRand.Next((int)(Main.rockLayer + (double)Main.maxTilesY) / 2, Main.maxTilesY - 20);
	} else if (WorldGen.genRand.Next(10) == 0) {
		num2 = WorldGen.genRand.Next(0, Main.maxTilesY - 20);
	} else {
		num2 = WorldGen.genRand.Next((int)Main.worldSurface, Main.maxTilesY - 20);
	}

Equazcion (talk) 23:42, 23 Jun 2015 (UTC)


Current decompiled code suggests that blinkroot grows fastest underground. Source is Terraria.WorldGen.GrowAlch:

		else if ((double)y > Main.worldSurface && Main.tile[x, y].type == 82 && Main.tile[x, y].frameX == 36 && genRand.Next(50) == 0)
		{
			Main.tile[x, y].type = 83;
			if (Main.netMode == 2)
			{
				NetMessage.SendTileSquare(-1, x, y);
			}
			SquareTileFrame(x, y);
		}

Wait, it grows faster in a dark room and when its on dirt?

Huh, that's weird, I thought it grows underground and cavern regardless of light level. And someone here said that it grows faster on dirt than in Planter Boxes. Can anyone try to prove or debunk these two things?ThreepleX (talk) 18:06, 3 January 2022 (UTC)