On this page 6 sections
At a glance
Chat command — below
-
Check mob attribute
/attribute @n[type=!player] minecraft:tempt_range get
By default 10 The player does not have this attribute; the game accepts values from 0 to 2048.
From what distance an animal notices the player's favorite food in hand and follows it: 10 blocks, 16 blocks for a happy ghast.
| Mob | Base |
|---|---|
| 8 | |
| 16 |
Here only mobs with a base different from default (10).
| What | Value |
|---|---|
| ID | minecraft:tempt_range |
| By default | 10 |
| For the player | no |
| Borders | from 0 to 2048 |
| What is measured | blocks |
| Sees the client | no, only on server |
| Name in the English game | Mob Tempt Range |
What does the tempt_range attribute do?
From what distance an animal notices the player's favorite food in hand and follows it: 10 blocks, 16 blocks for a happy ghast.
Does the player have tempt_range?
No — this attribute is only available for mobs. It can be set on a mob using: /attribute <mob> minecraft:tempt_range base set <value>.
What are the limits for tempt_range?
Default: 10. Accepted range: 0 to 2048. The command cannot set a value outside this range.
All attributes Minecraft /attribute Command
Data from Minecraft 26.3: Values, boundaries, and who changes them — from game code and game enchantment files.