EntityLootModifiers
Expands
This class expands
crafttweaker.api.entity.EntityType<crafttweaker.api.entity.Entity>
, meaning that the content found on this page can be called on that type directly.
Description
Additional methods for easier modification of entity-related loot tables.Members
ILootModifier
to the current entity. Parameters:
name: string
Type: string
- The name of the loot modifier. ILootModifier
to the current entity that fires only if the entity was killed by a player. Parameters:
name: string
Type: string
- The name of the loot modifier. ILootModifier
to the current entity that fires only if the entity was killed by a player with the given weapon.Additional parameters that further specify the weapon, such as NBT, count, or damage, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. ILootModifier
to the current entity that fires only if the entity was killed by a player with the given weapon, optionally considering its damage.Additional parameters that further specify the weapon, such as NBT, or count, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. matchDamage: bool
Type: bool
- Whether to consider damage or not when identifying the weapon. ILootModifier
to the current entity that fires only if the entity was killed by a player with the given weapon, optionally considering its damage and NBT data.Additional parameters that further specify the weapon, such as count, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. matchDamage: bool
Type: bool
- Whether to consider damage or not when identifying the weapon. matchNbt: bool
Type: bool
- Whether to consider NBT data or not when identifying the weapon. ILootModifier
to the current entity that fires only if the entity was killed with the given weapon.Additional parameters that further specify the weapon, such as NBT, count, or damage, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. ILootModifier
to the current entity that fires only if the entity was killed with the given weapon, optionally considering its damage.Additional parameters that further specify the weapon, such as NBT, or count, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. matchDamage: bool
Type: bool
- Whether to consider damage or not when identifying the weapon. ILootModifier
to the current entity that fires only if the entity was killed with the given weapon, optionally considering its damage and NBT data.Additional parameters that further specify the weapon, such as count, are ignored.
Parameters:
name: string
Type: string
- The name of the loot modifier. matchDamage: bool
Type: bool
- Whether to consider damage or not when identifying the weapon. matchNbt: bool
Type: bool
- Whether to consider NBT data or not when identifying the weapon.