-
Notifications
You must be signed in to change notification settings - Fork 7
[2.4.0] NBT Tags
Alberto Del Villano edited this page Apr 1, 2024
·
2 revisions
All the following NBT Tags are stored in the ForgeData
tag with the "enhancedai" prefix.
E.g. for a miner the nbt would look like {ForgeData:{"enhancedai:miner": 1b}, ...}
.
- These nbt tags will only work if the mob is tagged in the proper Entity type tag
- (As long as the mob is tagged to be a fisher or pearler) Mobs are always given the Fishing and Pearling AI, but they will use it only if they have a fishing rod or an Ender Pearl equipped.
-
can_attack_back
: If true, the animal will fight back -
player_scared
: If true, the animal will flee from players.can_attack_back
has priority over this. -
not_tempted
: If true, the animal will not follow players with the food in the hand.
-
time_between_fireballs
: How many ticks pass between shooting fireballs. Vanilla is 6 -
fireballs_shot
: How many fireballs blazes shoot. Vanilla is 3 -
recharge_time
: Time (in ticks) taken by the blaze to recharge (before setting himself on fire). Vanilla is 100 -
charge_time
: Time (in ticks) taken by the blaze to charge (while on fire before shooting fireballs). Vanilla is 60 -
fireballs_per_shot
: How many fireballs are shot per shot. Vanilla is 1 -
inaccuracy
: The higher the more spread up shots will be. Setting both to -1 will use the vanilla behaviour which is based off the distance from the target (more distance = more inaccuracy)
-
walking_fuse
: If true creeper will keep walking while exploding instead of standing still -
ignore_walls
: If true creeper will ignore walls and blow up even if they can't see the target -
breach
: If true creeper will try to open an hole in the wall to let mobs in -
beta
: If true the creeper will walk around the target like pre-1.2 -
launch
: If true creeper will try ignite and throw themselves at the target -
angry
: If true the creeper is an Angry Creeper (Bigger explosion)
-
get_over_here
: If true, enderman will be able to teleport the target. This feature is disabled by
-
attack_cooldown
: How many ticks pass between shooting fireballs. Vanilla is 40 -
fireballs_shot
: How many fireballs ghast shoot in rapid succession. Vanilla is 1 -
shoot_when_not_seen
: If true the Ghast can't see the target, he will shoot 4 times as fast to breach
- Pillagers
- Shooting
-
shooting_range
: How many blocks away is the pillager able to shoot the target. Vanilla is 16 -
shooting_cooldown
: Ticks between each shoot. Halved in Hard difficulty. -
inaccuracy
: The higher the more spread up shots will be
-
-
avoid_target
: If true pillagers will avoid the target by fleeing-
attack_when_avoiding
: If true pillagers will still attack the target while fleeing -
flee_distance_far
: Distance from the target that will make the pillagers run away -
flee_distance_near
: Distance from a player that counts as near and will make the pillagers run away faster -
flee_speed_far
: Speed multiplier when the pillagers avoids the target and it's farther than 'flee_distance_far' blocks from him -
flee_speed_near
: Speed multiplier when the pillagers avoids the target and it's within 'flee_distance_near' blocks from him
-
- Shooting
-
has_fishing_rod_been_given
: [INTERNAL] If true, a fisher mob will not be equipped with a fishing rod -
miner
: If true the mob can break blocks-
time_to_break_multiplier
: Multiplier for the time it takes for the mob to break blocks -
tool_only
: If true, miner will break blocks only if they have any tool in the off-hand -
proper_tool_only
: If true, miner will break blocks only if their off-hand tool can mine the block (e.g. zombies with shovels will not mine stone). Blocks that require no tool (e.g. planks) will be minable regardless of proper tool or not, unlessalways_require_proper_tool
is set to true. -
always_require_proper_tool
: If true, miners will break blocks ONLY if they have the proper tool, even if the block can be mined with bare hands
-
-
has_ender_pearl_been_given
: [INTERNAL] If true, a pearler mob will not be equipped with a ender pearl -
can_search_mount
: If true, the mob can search for a mount-
suffocation_while_riding
: [INTERNAL] Used to keep track of the suffocation damage taken when riding something, to allow dismounting
-
-
is_neutral
: If true the mob will only attack if provoked -
follow_range_processed
: [INTERNAL] Used to keep track if the mob's follow range changes have been processed -
item_disruption_chance
: Chance (0~1) for the mob to disrupt the target item when attacked
-
shooting_cooldown
: Ticks between snowballs shot -
snow_golems_on_spawn_processed
: [INTERNAL] Used to keep track if the snow golem has been processed to prevent adding armor twice
-
wolves_on_spawn_processed
: [INTERNAL] Used to keep track if the wolf's attributes changes have been processed
-
base_attack_speed
: Base attack speed of shulkers in ticks -
attack_speed_bonus_half_seconds
: Half seconds up to this value are added to the final attack cooldown of shulkers
- Shooting
-
strafe
: If true, skeletons will strafe like vanilla. -
shooting_range
: How many blocks away is the skeleton able to shoot the target. Vanilla is 16 -
shooting_cooldown
: Ticks between each shoot. Halved in Hard difficulty. -
bow_charge_ticks
: How many ticks does the skeleton charge the bow before shooting -
inaccuracy
: The higher the more spread up shots will be -
spammer
: If true, skeleton will be set to be a spammer.shooting_cooldown
is set to 30,bow_charge_ticks
is set to 1 andinaccuracy
is multiplied by 2.5
-
-
avoid_target
: If true skeleton will avoid the target by fleeing-
attack_when_avoiding
: If true skeleton will still attack the target while fleeing -
flee_distance_far
: Distance from the target that will make the skeleton run away -
flee_distance_near
: Distance from a player that counts as near and will make the skeleton run away faster -
flee_speed_far
: Speed multiplier when the skeleton avoids the target and it's farther than 'flee_distance_far' blocks from him -
flee_speed_near
: Speed multiplier when the skeleton avoids the target and it's within 'flee_distance_near' blocks from him
-
-
wither_skeletons_on_spawn_processed
: [INTERNAL] Used to keep track if the wither skeleton's item in hand has been processed
-
web_thrower
: If true, spider's able to shoot cobwebs to the target
-
dark_arts
: If true, witch's able to perform dark arts and summon a new witch from a villager-
performing_dark_arts
: [INTERNAL] Used to keep track if the Witch is performing the dark arts
-
- Potion Throwing
-
apprentice
: If true, the witch will throw random potions instead of in order, and have a chance to throw a wrong (good) potion. -
attack_speed
: How many ticks will the witch take to throw another potion -
attack_range
: How many blocks away is the witch is able to throw potions at the target -
lingering_chance
: Chance (0~1) for the potions thrown by the Witch to be lingering -
another_throw_chance
: Chance (0~1) for the Witch to throw another random potion right after she threw one
-
-
avoid_target
: If true witch will avoid the target by fleeing-
attack_when_avoiding
: If true witch will still attack the target while fleeing -
flee_distance_far
: Distance from the target that will make the witch run away -
flee_distance_near
: Distance from a player that counts as near and will make the witch run away faster -
flee_speed_far
: Speed multiplier when the witch avoids the target and it's farther than 'flee_distance_far' blocks from him -
flee_speed_near
: Speed multiplier when the witch avoids the target and it's within 'flee_distance_near' blocks from him
-