Glow Tulip

From Terraria Wiki
Jump to navigation Jump to search
Desktop versionConsole versionMobile version
Desktop/Console/Mobile-Only Content: This information applies only to the Desktop, Console, and Mobile versions of Terraria.
Glow Tulip
  • Glow Tulip item sprite
  • Glow Tulip placed
Stack digit 1.png
Statistics
Type
Use time20 (Very fast)
TooltipSummons a Caveling Gardener
'Ancient energy in full bloom.'
RarityRarity level: 3
Sell2 GC
Research1 required
Grants Buff
BuffCaveling GardenerCaveling Gardener(Desktop, Console and Mobile versions)
Buff tooltipHuk arrr gruk tu!
Summons Pet
  • Caveling Gardener
    Caveling Gardener
  • Internal Item ID: 5333 (Desktop, Console and Mobile versions)
  • Internal Tile ID: 656
  • Internal Buff ID: 352 (Desktop, Console and Mobile versions)
  • Internal Projectile ID: 1004
Caveling Gardener (flying).gif
The Caveling Gardener flying with a Snare Plant.

The Glow Tulip is a pet-summoning item that spawns a Caveling Gardener to follow the player around. When the player is far enough away or in midair, it flies through solid tiles while holding onto a Snare Plant in order to catch up to them. The Glow Tulip can be found rarely near the left and right edges of the world below the Surface as a plant. Depending on world size, a set amount of Glow Tulips will spawn during world generation: 2 in small worlds, 4 in medium worlds, and 6 in large worlds. Half of them are usually generated on the left side and the other half on the right side of the world.

It can also be detected by the Metal Detector.

Notes

  • Glow Tulips are only generated during the initial world generation. They do not generate during gameplay or regrow after being harvested.
  • Glow Tulips can only be generated below the surface and more than 200 tiles above the bottom of the world. They cannot be generated more than 320 tiles away from the edge of the world, and can only be generated on Dirt Blocks, grass, Mud Blocks, Hives, Stone Blocks, or Ebonstone/Crimstone Blocks. Multiple Glow Tulips always have at least 120 tiles horizontally or vertically between them. See below for the technical details of the generation process.
  • As the name suggests, the Glow Tulip glows in the dark.
    • It has the same light color as Xenon Moss, making it very difficult to spot near patches of Xenon Moss.

Technical details

  • During the initial world generation, Glow Tulips are placed according to the following algorithm:
    • At both edges of the world, the game considers a rectangular area.
      • It extends vertically from the surface line (the border between the Surface and Underground layers) to 200 tiles above the bottom of the world (350 tiles above the bottom in Don't dig up worlds).[1]
      • Horizontally, it starts 100 tiles away from the border of the world and extends 200 tiles, i.e. to 300 tiles away from the border of the world.
    • The game will choose a random tile in this large area, and will then randomly choose a tile within a 21×21-tile square centered on the chosen tile.[2] The chosen tile must fulfill all of the following conditions in order for a Glow Tulip to be generated there:
    • If the chosen tile did not qualify, then the game will choose another random tile within this 21×21-tile square. Counting the first random tile checked, up to 5 attempts will be made in this square to find a valid tile.
    • If all attempts failed, then the game will choose a new random tile in the large rectangular area again, and perform the actions again with that new tile. The generation process will stop after a total of 2/4/6 Glow Tulips are generated, or after 10,000 random tiles in the large rectangular area have been chosen.

Trivia

See also

History

References

  1. Information taken from the Desktop version Desktop 1.4.4.7 source code, method GrowGlowTulips() in Terraria.WorldGen.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
  2. Information taken from the Desktop version Desktop 1.4.4.7 source code, method TryGrowingGlowTulip() in Terraria.WorldGen.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
  3. Information taken from the Desktop version Desktop 1.4.4.5 source code, method NoNearbyGlowTulips() in Terraria.WorldGen.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
  4. Information taken from the Desktop version Desktop 1.4.4.7 source code, method PlaceTile() in Terraria.WorldGen.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
  5. Information taken from the Desktop version Desktop 1.4.4.7 source code, method HasValidGroundForGlowTulipBelowSpot() in Terraria.WorldGen.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.