1. Wiki
  2. /Entities
  3. /minecraft:behavior.float_tempt

minecraft:behavior.float_tempt

Don't want to write this by hand? GodCraft sets minecraft:behavior.float_tempt for you with a switch.Get GodCraft

Overview

minecraft:behavior.float_tempt is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes a floating mob follow a player holding an item it likes, moving straight through the air. Made for mobs with minecraft:navigation.float.

Fields

FieldTypeDefaultDescription
can_get_scaredBoolean"false"If true, the mob stops following when the player moves too fast nearby.
can_tempt_verticallyBoolean"false"If true, height difference to the player is counted too.
can_tempt_while_riddenBoolean"false"If true, the mob can be tempted even with a rider on it.
itemsArray"[]"Items that tempt the mob.
sound_intervalRange [a, b]"[0.0, 0.0]"Random range of ticks between tempt sounds.
speed_multiplierDecimal"1.0"Speed multiplier while following.
stop_distanceDecimal"1.5"How close the mob gets before it stops following.
tempt_soundStringnoneSound played while the mob is tempted.
within_radiusDecimal"0.0"How close, in blocks, the player must be to tempt the mob.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:behavior.float_tempt": {
    "can_get_scared": "false",
    "can_tempt_vertically": "false",
    "can_tempt_while_ridden": "false",
    "items": "[]",
    "sound_interval": "[0.0, 0.0]",
    "speed_multiplier": "1.0",
    "stop_distance": "1.5",
    "tempt_sound": ""
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more