Headbutt tree - Bulbapedia, the community-driven Pokmon encyclopedia

Publish date: 2024-05-21

Headbutt trees are special trees found in the Johto and Kanto regions that a Pokémon can use Headbutt on to encounter wild Pokémon. They are only found in the games that feature Johto: Pokémon Gold, Silver, and Crystal, and Pokémon HeartGold and SoulSilver.

Generation II

050Diglett.pngThis section is incomplete.
Please feel free to edit this section to add missing information and complete it.
Reason: Confirm that formulas/algorithms apply to both Gold/Silver and Crystal (and not only to one)

In Generation II, most outdoor areas in Johto contain a number of special trees (GSC Headbutt.png) that Pokémon can use Headbutt on. These trees are distinct from other trees that either take up two vertical paces or that have rounded tops. When a Pokémon uses Headbutt on a tree, a wild Pokémon may drop out of the tree. Depending on the time of day, the Pokémon that falls out may be asleep. Some Pokémon can only be caught by this method (e.g., Pineco, Heracross).

All headbuttable trees contain wild Pokémon, but different trees have different chances of creating an encounter after Headbutt is used. The headbuttable trees in an area also generate their encounters from different sets of Pokémon depending on whether they have moderate encounter chances or low encounter chances. For example, on Route 44, trees with moderate encounter chances may only contain Spearow or Aipom, while trees with a high encounter chance may also contain Heracross.

Encounter mechanics

The encounter rate and encounter table of each tree depends on the tree's index and the player's Trainer ID number.

The tree's index is an integer from 0 to 9, which depends on its X and Y coordinates on the map—that is, its distance from the westernmost and northernmost edges, respectively. Specifically, the tree's index is calculated using the following formula.

T r e e I n d e x = ⌊ X ⋅ Y + X + Y 5 ⌋ mod 1 0 {\displaystyle TreeIndex=\left\lfloor {\frac {X\cdot Y+X+Y}{5}}\right\rfloor {\bmod {1}}0}

The encounter rate and tree type depends on the last digit of the player's Trainer ID.

Encounter rate by index and Trainer ID

The following is a table depicting the encounter rate of the tree, based on the tree index and the last digit of the player's Trainer ID. Tree indexes are displayed in rows, while Trainer ID digits are displayed in columns.

An 80% encounter rate indicates the tree is a "high-encounter tree". Otherwise it is a "moderate-encounter tree".

0123456789
080%10%10%10%10%10%50%50%50%50%
150%80%10%10%10%10%10%50%50%50%
250%50%80%10%10%10%10%10%50%50%
350%50%50%80%10%10%10%10%10%50%
450%50%50%50%80%10%10%10%10%10%
510%50%50%50%50%80%10%10%10%10%
610%10%50%50%50%50%80%10%10%10%
710%10%10%50%50%50%50%80%10%10%
810%10%10%10%50%50%50%50%80%10%
910%10%10%10%10%50%50%50%50%80%

Analysis

Since X and Y are interchangeable in the tree index formula, it is possible to "fix" one dimension to consider traveling along the other. Substituting "Z" for the fixed axis and "n" for the axis that will be traversed, the formula becomes:

T r e e I n d e x = ⌊ Z ⋅ n + Z + n 5 ⌋ mod 1 0 = ⌊ ( Z + 1 ) ⋅ n + Z 5 ⌋ mod 1 0 {\displaystyle {\begin{aligned}TreeIndex&=\left\lfloor {\frac {Z\cdot n+Z+n}{5}}\right\rfloor {\bmod {1}}0\\&=\left\lfloor {\frac {(Z+1)\cdot n+Z}{5}}\right\rfloor {\bmod {1}}0\end{aligned}}}

This result shows that, if a single row or column of trees is traversed, moving to an adjacent tree increases the tree's index by Z + 1 5 {\textstyle {\tfrac {Z+1}{5}}} (modulo 10), where Z is the distance of that row or column from its origin edge (north or west). This means that the closer a row or column is to the edge, the slower the indices of those trees change as the row or column is traversed.

Pokémon

Pokémon Gold and Silver

Wild Pokémon encounters from headbuttable trees in Pokémon Gold and Silver fall into three simple groups, the third going unused.

PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1065%
GSC1015%
GSC105%
GSC1065%
GSC1015%
GSC105%
GSC1015%
High-encounter trees
GSC1050%
GSC105%
GSC1050%
GSC105%
GSC1015%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.

(Note: Route 45 and 46 lack headbuttable trees altogether.)

PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1080%
GSC1020%
High-encounter trees
GSC1050%
GSC1020%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.

(Note: Unused group exclusive to Gold and Silver. The encounter data for this group was removed in Crystal, and its pointer now redirects to the Mountain group's encounter data.)

PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1580%
GSC155%
GSC1515%
High-encounter trees
GSC1550%
GSC155%
GSC1515%
GSC1530%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.

Pokémon Crystal

In Pokémon Crystal, wild Pokémon encounters from headbuttable trees fall into six different groups.

(Note: Route 45 and 46 lack headbuttable trees altogether.)

PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1080%
GSC1020%
High-encounter trees
GSC1050%
GSC1020%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1065%
GSC1015%
GSC1020%
High-encounter trees
GSC1050%
GSC1020%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1020%
GSC1050%
GSC1015%
GSC1015%
High-encounter trees
GSC1020%
GSC1050%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1015%
GSC1020%
GSC1065%
High-encounter trees
GSC1020%
GSC1050%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC1015%
GSC1020%
GSC1065%
High-encounter trees
GSC1020%
GSC1050%
GSC1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
Moderate-encounter trees
GSC105%
GSC105%
GSC1050%
GSC1010%
GSC1030%
High-encounter trees
GSC1015%
GSC105%
GSC1015%
GSC105%
GSC1060%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.

Generation IV

In Pokémon HeartGold and SoulSilver, Pokémon are now pre-defined for each eligible location. Due to this, the levels of Pokémon vary between locations, and the player can now find Pokémon in Kanto beyond Routes 26 and 27. The player can Headbutt trees while Surfing, and in fact certain encounter trees are otherwise unreachable.

Each location has a pre-defined list of trees that can contain encounters. Each of these trees can have encounters from one of two encounter tables, or have no encounters at all. Which group the tree falls into depends on the player's Trainer ID and secret ID. Unlike in Generation II, a Headbutt tree that contains encounters will always yield one when headbutted; Repel cannot prevent Pokémon from appearing when headbutting a tree.

In addition to the standard two encounter tables, some locations have a third encounter table assigned to certain trees. These locations are Pewter City, Cherrygrove City, Routes 25, 38, and 47, and National Park; the ones on Route 38 and in Cherrygrove City and National Park require scaling a rocky wall to access.

The amount of designated trees with Pokémon can range from as few as 2, to as many as 44 or 45 in Ilex Forest.

Encounter mechanics

The encounter type of each tree is determined by the player's full ID number and the number of designated trees in the area.

The player's full ID number is a 4-byte number, composed by concatenating their Secret ID (as the upper byte) with their Trainer ID (as the lower byte).

The number of designated trees is the number of trees (except Group C trees) that can possibly have headbutt encounters. The following table details how many designated trees are in each location.

To determine which encounters are used, the value X = I D f u l l mod 10 {\displaystyle X=ID_{full}\mod 10} is derived from the player's full ID. This value (X), the number of designated trees (n), and the ID of the tree within the location's headbutt array (TreeID) are used to determine which encounter table is used.

In the following table, columns refer to the number of designated trees in the area, while rows refer to EncounterID. Cases with no encounters are marked with –.

Tree types
Encounter ID2345
0AA--
1BBAA
2B-AA
3AABB
4A-BB
5BB-B
6BBA-
7AAAA
8A-BA
9BBBB
10B--B
11AAAB
12A-A-
13BABA
14BBBA
15A--A
16ABAB
17BAAB
18BAB-
19ABBA
20N/A--A
21AAA
22-BB
23BAB
24BB-
25A--
26-AA
27BBB
28-AA
29ABB
30N/A-B
31A-
32BA
33AB
34BA
35-A
36AB
37B-
38AA
39BB
40N/AB
41A
42B
43-
44A
45A
46B
47A
48B
49-

Due to the way the trees are assigned encounters, certain IDs have one less tree with encounters. For example, locations with 4 potential encounter trees have one tree with no encounters unless the ID combination results in X of 4 and 9. Similarly, in Ilex Forest, if an ID combination results in 0 or 5, there will be 12 trees without encounters instead of 11.

Example

For Trainer ID of 19410 (0x4BD2) and secret ID of 21243 (0x52FB):

I D f u l l = I D s e c r e t | | I D t r a i n e r I D f u l l = 52 F B 4 B D 2 16 I D f u l l = 1392200658 10 {\displaystyle {\begin{aligned}ID_{full}&=ID_{secret}||ID_{trainer}\\ID_{full}&=52FB4BD2_{16}\\ID_{full}&=1392200658_{10}\end{aligned}}} X = I D f u l l mod 10 X = 1392200658 mod 10 X = 8 {\displaystyle {\begin{aligned}X&=ID_{full}\mod 10\\X&=1392200658\mod 10\\X&=8\end{aligned}}}

With X of 8, EncounterID for first tree in the location is 16 for areas with 2 potential encounter trees, 24 for areas with 3, 32 for areas with 4, and 40 for areas with more than 4. In the first case, the tree has encounter group A; in all other cases it has encounter group B.

Pokémon

PokémonGamesLocationLevelsRate
MorningDayNight
Group A
New Bark Town, Routes 29 and 30: Lv. 2-3
Ecruteak City and Route 37: Lv. 12-14
Safari Zone Gate: Lv. 14-16
Routes 26 and 27: Lv. 28-29
Route 31: Lv. 3-4
Route 34: Lv. 9-10
Route 35: Lv. 10-11
Route 36: Lv. 4-5
Route 39: Lv. 14-15
Route 48: Lv. 15-16
HGSSVaries20%
HGSSVaries50%
HGSSVaries30%
Group B
New Bark Town, Routes 29 and 30: Lv. 4-5
Ecruteak City and Route 37: Lv. 15-17
Safari Zone Gate: Lv. 17-19
Routes 26 and 27: Lv. 31-32
Route 31: Lv. 5-6
Route 34: Lv. 11-12
Route 35: Lv. 13-14
Route 36: Lv. 6-7
Route 39: Lv. 16-17
Route 48: Lv. 17-18
HGSSVaries20%
HGSSVaries50%
HGSSVaries30%
HGSSVaries30%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS2-320%
HGSS2-350%
HGSS2-330%
Group B
HGSS4-520%
HGSS4-550%
HGSS4-530%
HGSS4-530%
Group C
The four trees on the hill by the sea. Accessible by surfing west into the water, then using Rock Climb.
HGSS18-2065%
HGSS18-2030%
HGSS21-255%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS1020%
HGSS2-350%
HGSS1030%
Group B
HGSS1020%
HGSS4-550%
HGSS1030%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Azalea Town and Route 33: Lv. 3-5
Route 42: Lv. 13-14
Route 44: 21-22
Route 46: Lv. 2-3
HGSSVaries50%
HGSSVaries20%
HGSSVaries30%
Group B
Azalea Town and Route 33: Lv. 6-8
Route 42: Lv. 15-16
Route 44: 23-24
Route 46: Lv. 4-5
HGSSVaries80%
HGSSVaries20%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Pallet Town and Route 1: Lv. 2-3
Viridian City and Routes 2 and 22: Lv. 3-4
HGSSVaries50%
HGSSVaries30%
HGSSVaries20%
Group B
Pallet Town and Route 1: Lv. 5-6
Viridian City and Routes 2 and 22: Lv. 5-7
HGSSVaries50%
HGSSVaries30%
HGSSVaries30%
HGSSVaries20%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS3-550%
HGSS3-530%
HGSS3-520%
Group B
HGSS7-980%
HGSS7-920%
Group C
Two uppermost trees by the fence, reachable from Route 2
HGSS5-965%
HGSS5-930%
HGSS8-125%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Cerulean City, Routes 5 and 6: Lv. 11-13
Route 8: Lv. 16-17
HGSSVaries50%
HGSSVaries30%
HGSSVaries20%
Group B
Cerulean City, Routes 5 and 6: Lv. 14-16
Route 8: Lv. 18-19
HGSSVaries80%
HGSSVaries20%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Vermilion City: Lv. 11-13
Celadon City and Route 7: 15-17
Route 11: Lv. 13-14
Route 16: Lv. 26-27
HGSSVaries50%
HGSSVaries30%
HGSSVaries20%
Group B
Vermilion City: Lv. 14-16
Celadon City and Route 7: 18-20
Route 11: Lv. 15-16
Route 16: Lv. 29-30
HGSSVaries80%
HGSSVaries20%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Fuchsia City and Route 15: Lv. 21-23
Routes 12 and 13: Lv. 22-23
Routes 14 and 18: Lv. 26-27
Route 21: Lv. 24-26
HGSSVaries50%
HGSSVaries30%
HGSSVaries30%
HGSSVaries20%
Group B
Fuchsia City: Lv. 26-34
Routes 12 and 13: Lv. 24-25
Routes 14 and 18: Lv. 29-30
Route 15: Lv. 24-26
Route 21: Lv. 27-30
HGSSVaries15%
HGSSVaries65%
HGSSVaries20%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS6-750%
HGSS6-730%
HGSS6-720%
Group B
HGSS9-1080%
HGSS9-1020%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS10-1150%
HGSS10-1130%
HGSS10-1120%
Group B
HGSS13-1480%
HGSS13-1420%
Group C
The four trees at the northwest corner of Route 25.
HGSS10-1430%
HGSS15-185%
HGSS10-1465%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Route 28 and Mt. Silver: Lv. 39-40
Mt. Silver Cave: Lv. 42-44
HGSSVaries20%
HGSSVaries30%
HGSSVaries50%
Group B
Route 28 and Mt. Silver: Lv. 41-43
Mt. Silver Cave: Lv. 45-48
HGSSVaries20%
HGSSVaries30%
HGSSVaries50%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS4-520%
HGSS4-550%
HGSS4-530%
Group B
HGSS6-720%
HGSS6-780%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS13-1420%
HGSS13-1450%
HGSS13-1430%
Group B
HGSS15-1620%
HGSS15-1650%
HGSS15-1630%
HGSS15-1630%
Group C
The easternmost tree at top of the hill accessible via Route 39 by Rock Climb.
HGSS18-2065%
HGSS18-2030%
HGSS21-255%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
Route 43: Lv. 15-16
Lake of Rage: Lv. 14-16
HGSSVaries20%
HGSSVaries50%
HGSSVaries30%
Group B
Route 43: Lv. 17-18
Lake of Rage: Lv. 17-19
HGSSVaries15%
HGSSVaries20%
HGSSVaries65%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS23-2450%
HGSS23-2420%
HGSS23-2415%
HGSS23-2515%
Group B
HGSS26-2780%
HGSS26-2720%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS15-1620%
HGSS15-1650%
HGSS15-1630%
Group B
HGSS17-1820%
HGSS17-1850%
HGSS17-1830%
HGSS17-1830%
Group C
Leftmost and rightmost trees at top of the east waterfall and the two upmost trees on top of the hill on the western side
HGSS25-2850%
HGSS25-2830%
HGSS25-2850%
HGSS25-2830%
HGSS25-2815%
HGSS27-305%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS3-530%
HGSS3-510%
HGSS3-530%
HGSS3-510%
HGSS3-560%
Group B
HGSS6-810%
HGSS6-810%
HGSS6-850%
HGSS6-810%
HGSS6-830%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS10-1220%
HGSS10-1250%
HGSS10-1230%
Group B
HGSS13-1520%
HGSS13-1550%
HGSS13-1530%
HGSS13-1530%
Group C
Five trees at top of the hill in the north-east section. Requires Rock Climb.
HGSS18-2065%
HGSS18-2030%
HGSS21-255%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.
PokémonGamesLocationLevelsRate
MorningDayNight
Group A
HGSS3-450%
HGSS3-410%
HGSS3-410%
HGSS3-430%
HGSS3-45%
HGSS3-45%
HGSS3-430%
Group B
HGSS5-750%
HGSS5-710%
HGSS5-710%
HGSS5-730%
HGSS5-75%
HGSS5-75%
HGSS5-730%
A colored background means that the Pokémon can be found in this location in the specified game. A white background with a colored letter means that the Pokémon cannot be found here.

External Links

ncG1vNJzZmiapaGvorzEnaCaZpKquaOtxpqpnZ2eY7umwI6woKShX32yorDBrqutl6SnsqY%3D