Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Entity

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.Entity;

Extends

Entity extends CapabilityProvider<Entity>.

Implements

Entity implements the following interfaces:

Nameable,EntityAccess,CommandSource,ICapabilityProviderImpl<ICapabilityProviderImpl>,ICapabilityProvider

Undocumented Interfaces

IEntityExtension,ICapabilitySerializable<CompoundTag>,INBTSerializable<Tag>

Members

Getter
script.zs
// Entity.acceptsFailure as bool
myEntity.acceptsFailure

Return Type: bool

acceptsFailure() as bool
script.zs
// Entity.acceptsFailure() as bool;
myEntity.acceptsFailure();

Return Type: bool

Getter
script.zs
// Entity.acceptsSuccess as bool
myEntity.acceptsSuccess

Return Type: bool

acceptsSuccess() as bool
script.zs
// Entity.acceptsSuccess() as bool;
myEntity.acceptsSuccess();

Return Type: bool

addTag(tagName as string) as bool
script.zs
// Entity.addTag(tagName as string) as bool;
myEntity.addTag(myString);

Parameters:

tagName Type: string

Return Type: bool

Getter
script.zs
// Entity.airSupply as int
myEntity.airSupply

Return Type: int

airSupply() as int
script.zs
// Entity.airSupply() as int;
myEntity.airSupply();

Return Type: int

Getter
script.zs
// Entity.allSlots as Iterable<ItemStack>
myEntity.allSlots

Return Type: Iterable<ItemStack>

allSlots() as Iterable<ItemStack>
script.zs
// Entity.allSlots() as Iterable<ItemStack>;
myEntity.allSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// Entity.alwaysAccepts as bool
myEntity.alwaysAccepts

Return Type: bool

alwaysAccepts() as bool
script.zs
// Entity.alwaysAccepts() as bool;
myEntity.alwaysAccepts();

Return Type: bool

Getter
script.zs
// Entity.armorSlots as Iterable<ItemStack>
myEntity.armorSlots

Return Type: Iterable<ItemStack>

armorSlots() as Iterable<ItemStack>
script.zs
// Entity.armorSlots() as Iterable<ItemStack>;
myEntity.armorSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// Entity.bbHeight as float
myEntity.bbHeight

Return Type: float

bbHeight() as float
script.zs
// Entity.bbHeight() as float;
myEntity.bbHeight();

Return Type: float

Getter
script.zs
// Entity.bbWidth as float
myEntity.bbWidth

Return Type: float

bbWidth() as float
script.zs
// Entity.bbWidth() as float;
myEntity.bbWidth();

Return Type: float

Getter
script.zs
// Entity.blockPosition as BlockPos
myEntity.blockPosition

Return Type: BlockPos

blockPosition() as BlockPos
script.zs
// Entity.blockPosition() as BlockPos;
myEntity.blockPosition();

Return Type: BlockPos

Getter
script.zs
// Entity.blockX as int
myEntity.blockX

Return Type: int

blockX() as int
script.zs
// Entity.blockX() as int;
myEntity.blockX();

Return Type: int

Getter
script.zs
// Entity.blockY as int
myEntity.blockY

Return Type: int

blockY() as int
script.zs
// Entity.blockY() as int;
myEntity.blockY();

Return Type: int

Getter
script.zs
// Entity.blockZ as int
myEntity.blockZ

Return Type: int

blockZ() as int
script.zs
// Entity.blockZ() as int;
myEntity.blockZ();

Return Type: int

Getter
script.zs
// Entity.boundingBox as AABB
myEntity.boundingBox

Return Type: AABB

boundingBox() as AABB
script.zs
// Entity.boundingBox() as AABB;
myEntity.boundingBox();

Return Type: AABB

Getter
script.zs
// Entity.boundingBoxForCulling as AABB
myEntity.boundingBoxForCulling

Return Type: AABB

boundingBoxForCulling() as AABB
script.zs
// Entity.boundingBoxForCulling() as AABB;
myEntity.boundingBoxForCulling();

Return Type: AABB

Getter
script.zs
// Entity.canBeCollidedWith as bool
myEntity.canBeCollidedWith

Return Type: bool

canBeCollidedWith() as bool
script.zs
// Entity.canBeCollidedWith() as bool;
myEntity.canBeCollidedWith();

Return Type: bool

canCollideWith(other as Entity) as bool
script.zs
// Entity.canCollideWith(other as Entity) as bool;
myEntity.canCollideWith(myEntity);

Parameters:

other Type: Entity

Return Type: bool

Getter
script.zs
// Entity.canFreeze as bool
myEntity.canFreeze

Return Type: bool

canFreeze() as bool
script.zs
// Entity.canFreeze() as bool;
myEntity.canFreeze();

Return Type: bool

clearFire()
script.zs
// Entity.clearFire();
myEntity.clearFire();
closerThan(other as Entity, distance as double) as bool
script.zs
// Entity.closerThan(other as Entity, distance as double) as bool;
myEntity.closerThan(myEntity, myDouble);

Parameters:

other Type: Entity
distance Type: double

Return Type: bool

Getter
script.zs
// Entity.commandSenderWorld as Level
myEntity.commandSenderWorld

Return Type: Level

commandSenderWorld() as Level
script.zs
// Entity.commandSenderWorld() as Level;
myEntity.commandSenderWorld();

Return Type: Level

Getter
script.zs
// Entity.controllingPassenger as Entity
myEntity.controllingPassenger

Return Type: Entity

controllingPassenger() as Entity
script.zs
// Entity.controllingPassenger() as Entity;
myEntity.controllingPassenger();

Return Type: Entity

Getter
Gets the custom NBT data for this Entity.
script.zs
// Entity.customData as MapData
myEntity.customData

Return Type: MapData

customData() as MapData
Gets the custom NBT data for this Entity.

Returns: The custom data for this Entity.

script.zs
// Entity.customData() as MapData;
myEntity.customData();

Return Type: MapData

Getter
script.zs
// Entity.customName as Component
myEntity.customName

Return Type: Component

customName() as Component
script.zs
// Entity.customName() as Component;
myEntity.customName();

Return Type: Component

Getter
script.zs
// Entity.dampensVibrations as bool
myEntity.dampensVibrations

Return Type: bool

dampensVibrations() as bool
script.zs
// Entity.dampensVibrations() as bool;
myEntity.dampensVibrations();

Return Type: bool

Getter
Gets the NBT data of this Entity.
script.zs
// Entity.data as MapData
myEntity.data

Return Type: MapData

data() as MapData
Gets the NBT data of this Entity.

Returns: The NBT data of this Entity.

script.zs
// Entity.data() as MapData;
myEntity.data();

Return Type: MapData

Getter
script.zs
// Entity.deltaMovement as Vec3
myEntity.deltaMovement

Return Type: Vec3

Setter
script.zs
// Entity.deltaMovement = (deltaMovement as Vec3);
myEntity.deltaMovement = myVec3;

Parameters:

deltaMovement Type: Vec3
deltaMovement() as Vec3
script.zs
// Entity.deltaMovement() as Vec3;
myEntity.deltaMovement();

Return Type: Vec3

deltaMovement(deltaMovement as Vec3)
script.zs
// Entity.deltaMovement(deltaMovement as Vec3);
myEntity.deltaMovement(myVec3);

Parameters:

deltaMovement Type: Vec3
Getter
script.zs
// Entity.dimensionChangingDelay as int
myEntity.dimensionChangingDelay

Return Type: int

dimensionChangingDelay() as int
script.zs
// Entity.dimensionChangingDelay() as int;
myEntity.dimensionChangingDelay();

Return Type: int

Getter
script.zs
// Entity.direction as Direction
myEntity.direction

Return Type: Direction

direction() as Direction
script.zs
// Entity.direction() as Direction;
myEntity.direction();

Return Type: Direction

discard()
script.zs
// Entity.discard();
myEntity.discard();
Getter
script.zs
// Entity.dismountsUnderwater as bool
myEntity.dismountsUnderwater

Return Type: bool

Getter
script.zs
// Entity.displayName as Component
myEntity.displayName

Return Type: Component

displayName() as Component
script.zs
// Entity.displayName() as Component;
myEntity.displayName();

Return Type: Component

distanceTo(entity as Entity) as float
script.zs
// Entity.distanceTo(entity as Entity) as float;
myEntity.distanceTo(myEntity);

Parameters:

entity Type: Entity

Return Type: float

distanceToSqr(x as double, y as double, z as double) as double
script.zs
// Entity.distanceToSqr(x as double, y as double, z as double) as double;
myEntity.distanceToSqr(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: double

distanceToSqr(entity as Entity) as double
script.zs
// Entity.distanceToSqr(entity as Entity) as double;
myEntity.distanceToSqr(myEntity);

Parameters:

entity Type: Entity

Return Type: double

distanceToSqr(vec as Vec3) as double
script.zs
// Entity.distanceToSqr(vec as Vec3) as double;
myEntity.distanceToSqr(myVec3);

Parameters:

vec Type: Vec3

Return Type: double

ejectPassengers()
script.zs
// Entity.ejectPassengers();
myEntity.ejectPassengers();
Getter
script.zs
// Entity.eyeHeight as float
myEntity.eyeHeight

Return Type: float

eyeHeight() as float
script.zs
// Entity.eyeHeight() as float;
myEntity.eyeHeight();

Return Type: float

Getter
script.zs
// Entity.eyePosition as Vec3
myEntity.eyePosition

Return Type: Vec3

eyePosition() as Vec3
script.zs
// Entity.eyePosition() as Vec3;
myEntity.eyePosition();

Return Type: Vec3

Getter
script.zs
// Entity.eyeY as double
myEntity.eyeY

Return Type: double

eyeY() as double
script.zs
// Entity.eyeY() as double;
myEntity.eyeY();

Return Type: double

Getter
script.zs
// Entity.feetBlockState as BlockState
myEntity.feetBlockState

Return Type: BlockState

feetBlockState() as BlockState
script.zs
// Entity.feetBlockState() as BlockState;
myEntity.feetBlockState();

Return Type: BlockState

Getter
script.zs
// Entity.fireImmune as bool
myEntity.fireImmune

Return Type: bool

fireImmune() as bool
script.zs
// Entity.fireImmune() as bool;
myEntity.fireImmune();

Return Type: bool

Getter
script.zs
// Entity.firstPassenger as Entity
myEntity.firstPassenger

Return Type: Entity

firstPassenger() as Entity
script.zs
// Entity.firstPassenger() as Entity;
myEntity.firstPassenger();

Return Type: Entity

Getter
script.zs
// Entity.fluidJumpThreshold as double
myEntity.fluidJumpThreshold

Return Type: double

fluidJumpThreshold() as double
script.zs
// Entity.fluidJumpThreshold() as double;
myEntity.fluidJumpThreshold();

Return Type: double

Getter
script.zs
// Entity.forward as Vec3
myEntity.forward

Return Type: Vec3

forward() as Vec3
script.zs
// Entity.forward() as Vec3;
myEntity.forward();

Return Type: Vec3

getCapability(cap as Capability<T>, side as Direction) as T?
Gets the capability for the given side.

Returns: The found capability or null.

script.zs
// Entity.getCapability<T>(cap as Capability<T>, side as Direction) as T?;
myEntity.getCapability<T>(Capabilities.ENERGY, <constant:minecraft:direction:north>);

Parameters:

cap Type: Capability<T> - The capability to get.
side Type: Direction - The side to get the capability from, can be null.

Return Type: T?

getCapability(cap as Capability<T>) as T?
Gets the capability.

Returns: The found capability or null.

script.zs
// Entity.getCapability<T>(cap as Capability<T>) as T?;
myEntity.getCapability<T>(Capabilities.ENERGY);

Parameters:

cap Type: Capability<T> - The capability to get.

Return Type: T?

getEyePosition(partialTicks as float) as Vec3
script.zs
// Entity.getEyePosition(partialTicks as float) as Vec3;
myEntity.getEyePosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getPosition(partialTicks as float) as Vec3
script.zs
// Entity.getPosition(partialTicks as float) as Vec3;
myEntity.getPosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getUpVector(partialTicks as float) as Vec3
script.zs
// Entity.getUpVector(partialTicks as float) as Vec3;
myEntity.getUpVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getViewVector(partialTicks as float) as Vec3
script.zs
// Entity.getViewVector(partialTicks as float) as Vec3;
myEntity.getViewVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getX(scale as double) as double
script.zs
// Entity.getX(scale as double) as double;
myEntity.getX(myDouble);

Parameters:

scale Type: double

Return Type: double

getY(scale as double) as double
script.zs
// Entity.getY(scale as double) as double;
myEntity.getY(myDouble);

Parameters:

scale Type: double

Return Type: double

getZ(scale as double) as double
script.zs
// Entity.getZ(scale as double) as double;
myEntity.getZ(myDouble);

Parameters:

scale Type: double

Return Type: double

Getter
script.zs
// Entity.handSlots as Iterable<ItemStack>
myEntity.handSlots

Return Type: Iterable<ItemStack>

handSlots() as Iterable<ItemStack>
script.zs
// Entity.handSlots() as Iterable<ItemStack>;
myEntity.handSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// Entity.hasCustomName as bool
myEntity.hasCustomName

Return Type: bool

hasCustomName() as bool
script.zs
// Entity.hasCustomName() as bool;
myEntity.hasCustomName();

Return Type: bool

Getter
script.zs
// Entity.hasExactlyOnePlayerPassenger as bool
myEntity.hasExactlyOnePlayerPassenger

Return Type: bool

hasExactlyOnePlayerPassenger() as bool
script.zs
// Entity.hasExactlyOnePlayerPassenger() as bool;
myEntity.hasExactlyOnePlayerPassenger();

Return Type: bool

Getter
script.zs
// Entity.hasGlowingTag as bool
myEntity.hasGlowingTag

Return Type: bool

hasGlowingTag() as bool
script.zs
// Entity.hasGlowingTag() as bool;
myEntity.hasGlowingTag();

Return Type: bool

hasIndirectPassenger(entity as Entity) as bool
script.zs
// Entity.hasIndirectPassenger(entity as Entity) as bool;
myEntity.hasIndirectPassenger(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

hasPassenger(entity as Entity) as bool
script.zs
// Entity.hasPassenger(entity as Entity) as bool;
myEntity.hasPassenger(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

hasPassenger(predicate as function(t as Entity) as bool) as bool
script.zs
// Entity.hasPassenger(predicate as function(t as Entity) as bool) as bool;
myEntity.hasPassenger(myPredicate);

Parameters:

predicate Type: function(t as Entity) as bool

Return Type: bool

hurt(source as DamageSource, amount as float) as bool
script.zs
// Entity.hurt(source as DamageSource, amount as float) as bool;
myEntity.hurt(myDamageSource, myFloat);

Parameters:

source Type: DamageSource
amount Type: float

Return Type: bool

Getter
script.zs
// Entity.id as int
myEntity.id

Return Type: int

id() as int
script.zs
// Entity.id() as int;
myEntity.id();

Return Type: int

Getter
script.zs
// Entity.isAlive as bool
myEntity.isAlive

Return Type: bool

isAlive() as bool
script.zs
// Entity.isAlive() as bool;
myEntity.isAlive();

Return Type: bool

Getter
script.zs
// Entity.isAlwaysTicking as bool
myEntity.isAlwaysTicking

Return Type: bool

isAlwaysTicking() as bool
script.zs
// Entity.isAlwaysTicking() as bool;
myEntity.isAlwaysTicking();

Return Type: bool

Getter
script.zs
// Entity.isAttackable as bool
myEntity.isAttackable

Return Type: bool

isAttackable() as bool
script.zs
// Entity.isAttackable() as bool;
myEntity.isAttackable();

Return Type: bool

isColliding(pos as BlockPos, state as BlockState) as bool
script.zs
// Entity.isColliding(pos as BlockPos, state as BlockState) as bool;
myEntity.isColliding(myBlockPos, myBlockState);

Parameters:

pos Type: BlockPos
state Type: BlockState

Return Type: bool

Getter
script.zs
// Entity.isCrouching as bool
myEntity.isCrouching

Return Type: bool

isCrouching() as bool
script.zs
// Entity.isCrouching() as bool;
myEntity.isCrouching();

Return Type: bool

Getter
script.zs
// Entity.isCurrentlyGlowing as bool
myEntity.isCurrentlyGlowing

Return Type: bool

isCurrentlyGlowing() as bool
script.zs
// Entity.isCurrentlyGlowing() as bool;
myEntity.isCurrentlyGlowing();

Return Type: bool

Getter
script.zs
// Entity.isCustomNameVisible as bool
myEntity.isCustomNameVisible

Return Type: bool

isCustomNameVisible() as bool
script.zs
// Entity.isCustomNameVisible() as bool;
myEntity.isCustomNameVisible();

Return Type: bool

Getter
script.zs
// Entity.isDescending as bool
myEntity.isDescending

Return Type: bool

isDescending() as bool
script.zs
// Entity.isDescending() as bool;
myEntity.isDescending();

Return Type: bool

Getter
script.zs
// Entity.isDiscrete as bool
myEntity.isDiscrete

Return Type: bool

isDiscrete() as bool
script.zs
// Entity.isDiscrete() as bool;
myEntity.isDiscrete();

Return Type: bool

isFree(x as double, y as double, z as double) as bool
script.zs
// Entity.isFree(x as double, y as double, z as double) as bool;
myEntity.isFree(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: bool

Getter
script.zs
// Entity.isFullyFrozen as bool
myEntity.isFullyFrozen

Return Type: bool

isFullyFrozen() as bool
script.zs
// Entity.isFullyFrozen() as bool;
myEntity.isFullyFrozen();

Return Type: bool

Getter
script.zs
// Entity.isInLava as bool
myEntity.isInLava

Return Type: bool

isInLava() as bool
script.zs
// Entity.isInLava() as bool;
myEntity.isInLava();

Return Type: bool

Getter
script.zs
// Entity.isInvisible as bool
myEntity.isInvisible

Return Type: bool

isInvisible() as bool
script.zs
// Entity.isInvisible() as bool;
myEntity.isInvisible();

Return Type: bool

isInvisibleTo(player as Player) as bool
script.zs
// Entity.isInvisibleTo(player as Player) as bool;
myEntity.isInvisibleTo(myPlayer);

Parameters:

player Type: Player

Return Type: bool

Getter
script.zs
// Entity.isInvulnerable as bool
myEntity.isInvulnerable

Return Type: bool

isInvulnerable() as bool
script.zs
// Entity.isInvulnerable() as bool;
myEntity.isInvulnerable();

Return Type: bool

isInvulnerableTo(source as DamageSource) as bool
script.zs
// Entity.isInvulnerableTo(source as DamageSource) as bool;
myEntity.isInvulnerableTo(myDamageSource);

Parameters:

source Type: DamageSource

Return Type: bool

Getter
script.zs
// Entity.isInWall as bool
myEntity.isInWall

Return Type: bool

isInWall() as bool
script.zs
// Entity.isInWall() as bool;
myEntity.isInWall();

Return Type: bool

Getter
script.zs
// Entity.isInWater as bool
myEntity.isInWater

Return Type: bool

isInWater() as bool
script.zs
// Entity.isInWater() as bool;
myEntity.isInWater();

Return Type: bool

Getter
script.zs
// Entity.isInWaterOrBubble as bool
myEntity.isInWaterOrBubble

Return Type: bool

isInWaterOrBubble() as bool
script.zs
// Entity.isInWaterOrBubble() as bool;
myEntity.isInWaterOrBubble();

Return Type: bool

Getter
script.zs
// Entity.isInWaterOrRain as bool
myEntity.isInWaterOrRain

Return Type: bool

isInWaterOrRain() as bool
script.zs
// Entity.isInWaterOrRain() as bool;
myEntity.isInWaterOrRain();

Return Type: bool

Getter
script.zs
// Entity.isInWaterRainOrBubble as bool
myEntity.isInWaterRainOrBubble

Return Type: bool

isInWaterRainOrBubble() as bool
script.zs
// Entity.isInWaterRainOrBubble() as bool;
myEntity.isInWaterRainOrBubble();

Return Type: bool

Getter
script.zs
// Entity.isNoGravity as bool
myEntity.isNoGravity

Return Type: bool

isNoGravity() as bool
script.zs
// Entity.isNoGravity() as bool;
myEntity.isNoGravity();

Return Type: bool

Getter
script.zs
// Entity.isOnFire as bool
myEntity.isOnFire

Return Type: bool

isOnFire() as bool
script.zs
// Entity.isOnFire() as bool;
myEntity.isOnFire();

Return Type: bool

Getter
script.zs
// Entity.isOnPortalCooldown as bool
myEntity.isOnPortalCooldown

Return Type: bool

isOnPortalCooldown() as bool
script.zs
// Entity.isOnPortalCooldown() as bool;
myEntity.isOnPortalCooldown();

Return Type: bool

Getter
script.zs
// Entity.isPassenger as bool
myEntity.isPassenger

Return Type: bool

isPassenger() as bool
script.zs
// Entity.isPassenger() as bool;
myEntity.isPassenger();

Return Type: bool

isPassengerOfSameVehicle(entity as Entity) as bool
script.zs
// Entity.isPassengerOfSameVehicle(entity as Entity) as bool;
myEntity.isPassengerOfSameVehicle(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

Getter
script.zs
// Entity.isPickable as bool
myEntity.isPickable

Return Type: bool

isPickable() as bool
script.zs
// Entity.isPickable() as bool;
myEntity.isPickable();

Return Type: bool

Getter
script.zs
// Entity.isPushable as bool
myEntity.isPushable

Return Type: bool

isPushable() as bool
script.zs
// Entity.isPushable() as bool;
myEntity.isPushable();

Return Type: bool

Getter
script.zs
// Entity.isPushedByFluid as bool
myEntity.isPushedByFluid

Return Type: bool

isPushedByFluid() as bool
script.zs
// Entity.isPushedByFluid() as bool;
myEntity.isPushedByFluid();

Return Type: bool

Getter
script.zs
// Entity.isRemoved as bool
myEntity.isRemoved

Return Type: bool

isRemoved() as bool
script.zs
// Entity.isRemoved() as bool;
myEntity.isRemoved();

Return Type: bool

Getter
script.zs
// Entity.isShiftKeyDown as bool
myEntity.isShiftKeyDown

Return Type: bool

isShiftKeyDown() as bool
script.zs
// Entity.isShiftKeyDown() as bool;
myEntity.isShiftKeyDown();

Return Type: bool

Getter
script.zs
// Entity.isSilent as bool
myEntity.isSilent

Return Type: bool

isSilent() as bool
script.zs
// Entity.isSilent() as bool;
myEntity.isSilent();

Return Type: bool

Getter
script.zs
// Entity.isSpectator as bool
myEntity.isSpectator

Return Type: bool

isSpectator() as bool
script.zs
// Entity.isSpectator() as bool;
myEntity.isSpectator();

Return Type: bool

Getter
script.zs
// Entity.isSprinting as bool
myEntity.isSprinting

Return Type: bool

isSprinting() as bool
script.zs
// Entity.isSprinting() as bool;
myEntity.isSprinting();

Return Type: bool

Getter
script.zs
// Entity.isSteppingCarefully as bool
myEntity.isSteppingCarefully

Return Type: bool

isSteppingCarefully() as bool
script.zs
// Entity.isSteppingCarefully() as bool;
myEntity.isSteppingCarefully();

Return Type: bool

Getter
script.zs
// Entity.isSuppressingBounce as bool
myEntity.isSuppressingBounce

Return Type: bool

isSuppressingBounce() as bool
script.zs
// Entity.isSuppressingBounce() as bool;
myEntity.isSuppressingBounce();

Return Type: bool

Getter
script.zs
// Entity.isSwimming as bool
myEntity.isSwimming

Return Type: bool

isSwimming() as bool
script.zs
// Entity.isSwimming() as bool;
myEntity.isSwimming();

Return Type: bool

Getter
script.zs
// Entity.isUnderWater as bool
myEntity.isUnderWater

Return Type: bool

isUnderWater() as bool
script.zs
// Entity.isUnderWater() as bool;
myEntity.isUnderWater();

Return Type: bool

Getter
script.zs
// Entity.isVehicle as bool
myEntity.isVehicle

Return Type: bool

isVehicle() as bool
script.zs
// Entity.isVehicle() as bool;
myEntity.isVehicle();

Return Type: bool

Getter
script.zs
// Entity.isVisuallyCrawling as bool
myEntity.isVisuallyCrawling

Return Type: bool

isVisuallyCrawling() as bool
script.zs
// Entity.isVisuallyCrawling() as bool;
myEntity.isVisuallyCrawling();

Return Type: bool

Getter
script.zs
// Entity.isVisuallySwimming as bool
myEntity.isVisuallySwimming

Return Type: bool

isVisuallySwimming() as bool
script.zs
// Entity.isVisuallySwimming() as bool;
myEntity.isVisuallySwimming();

Return Type: bool

kill()
script.zs
// Entity.kill();
myEntity.kill();
lavaHurt()
script.zs
// Entity.lavaHurt();
myEntity.lavaHurt();
Getter
script.zs
// Entity.level as Level
myEntity.level

Return Type: Level

Getter
script.zs
// Entity.lookAngle as Vec3
myEntity.lookAngle

Return Type: Vec3

lookAngle() as Vec3
script.zs
// Entity.lookAngle() as Vec3;
myEntity.lookAngle();

Return Type: Vec3

Getter
script.zs
// Entity.maxAirSupply as int
myEntity.maxAirSupply

Return Type: int

maxAirSupply() as int
script.zs
// Entity.maxAirSupply() as int;
myEntity.maxAirSupply();

Return Type: int

Getter
script.zs
// Entity.maxFallDistance as int
myEntity.maxFallDistance

Return Type: int

maxFallDistance() as int
script.zs
// Entity.maxFallDistance() as int;
myEntity.maxFallDistance();

Return Type: int

Getter
script.zs
// Entity.motionDirection as Direction
myEntity.motionDirection

Return Type: Direction

motionDirection() as Direction
script.zs
// Entity.motionDirection() as Direction;
myEntity.motionDirection();

Return Type: Direction

moveRelative(amount as float, relative as Vec3)
script.zs
// Entity.moveRelative(amount as float, relative as Vec3);
myEntity.moveRelative(myFloat, myVec3);

Parameters:

amount Type: float
relative Type: Vec3
moveTo(vec as Vec3)
script.zs
// Entity.moveTo(vec as Vec3);
myEntity.moveTo(myVec3);

Parameters:

vec Type: Vec3
moveTo(x as double, y as double, z as double)
script.zs
// Entity.moveTo(x as double, y as double, z as double);
myEntity.moveTo(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
moveTo(pos as BlockPos, yaw as float, pitch as float)
script.zs
// Entity.moveTo(pos as BlockPos, yaw as float, pitch as float);
myEntity.moveTo(myBlockPos, myFloat, myFloat);

Parameters:

pos Type: BlockPos
yaw Type: float
pitch Type: float
moveTo(x as double, y as double, z as double, yaw as float, pitch as float)
script.zs
// Entity.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);
myEntity.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);

Parameters:

x Type: double
y Type: double
z Type: double
yaw Type: float
pitch Type: float
Getter
script.zs
// Entity.name as Component
myEntity.name

Return Type: Component

name() as Component
script.zs
// Entity.name() as Component;
myEntity.name();

Return Type: Component

Getter
script.zs
// Entity.onGround as bool
myEntity.onGround

Return Type: bool

Getter
script.zs
// Entity.onPos as BlockPos
myEntity.onPos

Return Type: BlockPos

onPos() as BlockPos
script.zs
// Entity.onPos() as BlockPos;
myEntity.onPos();

Return Type: BlockPos

Getter
script.zs
// Entity.passengers as List<Entity>
myEntity.passengers

Return Type: List<Entity>

passengers() as List<Entity>
script.zs
// Entity.passengers() as List<Entity>;
myEntity.passengers();

Return Type: List<Entity>

Getter
script.zs
// Entity.percentFrozen as float
myEntity.percentFrozen

Return Type: float

percentFrozen() as float
script.zs
// Entity.percentFrozen() as float;
myEntity.percentFrozen();

Return Type: float

Getter
script.zs
// Entity.pistonPushReaction as PushReaction
myEntity.pistonPushReaction

Return Type: PushReaction

pistonPushReaction() as PushReaction
script.zs
// Entity.pistonPushReaction() as PushReaction;
myEntity.pistonPushReaction();

Return Type: PushReaction

playSound(sound as SoundEvent, volume as float, pitch as float)
script.zs
// Entity.playSound(sound as SoundEvent, volume as float, pitch as float);
myEntity.playSound(mySoundEvent, myFloat, myFloat);

Parameters:

sound Type: SoundEvent
volume Type: float
pitch Type: float
Getter
script.zs
// Entity.portalWaitTime as int
myEntity.portalWaitTime

Return Type: int

portalWaitTime() as int
script.zs
// Entity.portalWaitTime() as int;
myEntity.portalWaitTime();

Return Type: int

Getter
script.zs
// Entity.position as Vec3
myEntity.position

Return Type: Vec3

position() as Vec3
script.zs
// Entity.position() as Vec3;
myEntity.position();

Return Type: Vec3

positionRider(entity as Entity)
script.zs
// Entity.positionRider(entity as Entity);
myEntity.positionRider(myEntity);

Parameters:

entity Type: Entity
Getter
script.zs
// Entity.registryName as ResourceLocation
myEntity.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// Entity.registryName() as ResourceLocation;
myEntity.registryName();

Return Type: ResourceLocation

Getter
script.zs
// Entity.remainingFireTicks as int
myEntity.remainingFireTicks

Return Type: int

remainingFireTicks() as int
script.zs
// Entity.remainingFireTicks() as int;
myEntity.remainingFireTicks();

Return Type: int

removeTag(tagName as string) as bool
script.zs
// Entity.removeTag(tagName as string) as bool;
myEntity.removeTag(myString);

Parameters:

tagName Type: string

Return Type: bool

removeVehicle()
script.zs
// Entity.removeVehicle();
myEntity.removeVehicle();
Getter
script.zs
// Entity.rootVehicle as Entity
myEntity.rootVehicle

Return Type: Entity

rootVehicle() as Entity
script.zs
// Entity.rootVehicle() as Entity;
myEntity.rootVehicle();

Return Type: Entity

sendMessage(component as Component)
script.zs
// Entity.sendMessage(component as Component);
myEntity.sendMessage(myComponent);

Parameters:

component Type: Component
setAirSupply(air as int)
script.zs
// Entity.setAirSupply(air as int);
myEntity.setAirSupply(myInt);

Parameters:

air Type: int
setCustomName(name as Component)
script.zs
// Entity.setCustomName(name as Component);
myEntity.setCustomName(myComponent);

Parameters:

name Type: Component
setCustomNameVisible(visible as bool)
script.zs
// Entity.setCustomNameVisible(visible as bool);
myEntity.setCustomNameVisible(myBool);

Parameters:

visible Type: bool
setDeltaMovement(xDelta as double, yDelta as double, zDelta as double)
script.zs
// Entity.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);
myEntity.setDeltaMovement(myDouble, myDouble, myDouble);

Parameters:

xDelta Type: double
yDelta Type: double
zDelta Type: double
setGlowingTag(glowing as bool)
script.zs
// Entity.setGlowingTag(glowing as bool);
myEntity.setGlowingTag(myBool);

Parameters:

glowing Type: bool
setInvisible(invisible as bool)
script.zs
// Entity.setInvisible(invisible as bool);
myEntity.setInvisible(myBool);

Parameters:

invisible Type: bool
setInvulnerable(invulnerable as bool)
script.zs
// Entity.setInvulnerable(invulnerable as bool);
myEntity.setInvulnerable(myBool);

Parameters:

invulnerable Type: bool
setIsInPowderSnow(inPowderSnow as bool)
script.zs
// Entity.setIsInPowderSnow(inPowderSnow as bool);
myEntity.setIsInPowderSnow(myBool);

Parameters:

inPowderSnow Type: bool
setItemSlot(slot as EquipmentSlot, stack as ItemStack)
script.zs
// Entity.setItemSlot(slot as EquipmentSlot, stack as ItemStack);
myEntity.setItemSlot(myEquipmentSlot, myItemStack);

Parameters:

stack Type: ItemStack
setNoGravity(noGravity as bool)
script.zs
// Entity.setNoGravity(noGravity as bool);
myEntity.setNoGravity(myBool);

Parameters:

noGravity Type: bool
setOldPosAndRot()
script.zs
// Entity.setOldPosAndRot();
myEntity.setOldPosAndRot();
setOnGround(onGround as bool)
script.zs
// Entity.setOnGround(onGround as bool);
myEntity.setOnGround(myBool);

Parameters:

onGround Type: bool
setPortalCooldown()
script.zs
// Entity.setPortalCooldown();
myEntity.setPortalCooldown();
setPos(position as Vec3)
script.zs
// Entity.setPos(position as Vec3);
myEntity.setPos(myVec3);

Parameters:

position Type: Vec3
setPos(x as double, y as double, z as double)
script.zs
// Entity.setPos(x as double, y as double, z as double);
myEntity.setPos(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
setPosRaw(x as double, y as double, z as double)
script.zs
// Entity.setPosRaw(x as double, y as double, z as double);
myEntity.setPosRaw(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
setRemainingFireTicks(ticks as int)
script.zs
// Entity.setRemainingFireTicks(ticks as int);
myEntity.setRemainingFireTicks(myInt);

Parameters:

ticks Type: int
setRemoved(var1 as RemovalReason)
script.zs
// Entity.setRemoved(var1 as RemovalReason);
myEntity.setRemoved(myRemovalReason);

Parameters:

setSecondsOnFire(seconds as int)
script.zs
// Entity.setSecondsOnFire(seconds as int);
myEntity.setSecondsOnFire(myInt);

Parameters:

seconds Type: int
setShiftKeyDown(keyDown as bool)
script.zs
// Entity.setShiftKeyDown(keyDown as bool);
myEntity.setShiftKeyDown(myBool);

Parameters:

keyDown Type: bool
setSilent(silent as bool)
script.zs
// Entity.setSilent(silent as bool);
myEntity.setSilent(myBool);

Parameters:

silent Type: bool
setSprinting(sprinting as bool)
script.zs
// Entity.setSprinting(sprinting as bool);
myEntity.setSprinting(myBool);

Parameters:

sprinting Type: bool
setSwimming(swimming as bool)
script.zs
// Entity.setSwimming(swimming as bool);
myEntity.setSwimming(myBool);

Parameters:

swimming Type: bool
setTicksFrozen(ticks as int)
script.zs
// Entity.setTicksFrozen(ticks as int);
myEntity.setTicksFrozen(myInt);

Parameters:

ticks Type: int
Getter
script.zs
// Entity.shouldBeSaved as bool
myEntity.shouldBeSaved

Return Type: bool

shouldBeSaved() as bool
script.zs
// Entity.shouldBeSaved() as bool;
myEntity.shouldBeSaved();

Return Type: bool

Getter
script.zs
// Entity.shouldInformAdmins as bool
myEntity.shouldInformAdmins

Return Type: bool

shouldInformAdmins() as bool
script.zs
// Entity.shouldInformAdmins() as bool;
myEntity.shouldInformAdmins();

Return Type: bool

Getter
script.zs
// Entity.shouldShowName as bool
myEntity.shouldShowName

Return Type: bool

shouldShowName() as bool
script.zs
// Entity.shouldShowName() as bool;
myEntity.shouldShowName();

Return Type: bool

Getter
script.zs
// Entity.showVehicleHealth as bool
myEntity.showVehicleHealth

Return Type: bool

showVehicleHealth() as bool
script.zs
// Entity.showVehicleHealth() as bool;
myEntity.showVehicleHealth();

Return Type: bool

Getter
script.zs
// Entity.soundSource as SoundSource
myEntity.soundSource

Return Type: SoundSource

soundSource() as SoundSource
script.zs
// Entity.soundSource() as SoundSource;
myEntity.soundSource();

Return Type: SoundSource

startRiding(entity as Entity) as bool
script.zs
// Entity.startRiding(entity as Entity) as bool;
myEntity.startRiding(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

startRiding(entity as Entity, force as bool) as bool
script.zs
// Entity.startRiding(entity as Entity, force as bool) as bool;
myEntity.startRiding(myEntity, myBool);

Parameters:

entity Type: Entity
force Type: bool

Return Type: bool

stopRiding()
script.zs
// Entity.stopRiding();
myEntity.stopRiding();
Getter
script.zs
// Entity.stringUUID as string
myEntity.stringUUID

Return Type: string

stringUUID() as string
script.zs
// Entity.stringUUID() as string;
myEntity.stringUUID();

Return Type: string

Getter
script.zs
// Entity.tags as Set<string>
myEntity.tags

Return Type: Set<string>

tags() as Set<string>
script.zs
// Entity.tags() as Set<string>;
myEntity.tags();

Return Type: Set<string>

Getter
script.zs
// Entity.teamColor as int
myEntity.teamColor

Return Type: int

teamColor() as int
script.zs
// Entity.teamColor() as int;
myEntity.teamColor();

Return Type: int

teleportTo(x as double, y as double, z as double)
script.zs
// Entity.teleportTo(x as double, y as double, z as double);
myEntity.teleportTo(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
Getter
script.zs
// Entity.ticksFrozen as int
myEntity.ticksFrozen

Return Type: int

ticksFrozen() as int
script.zs
// Entity.ticksFrozen() as int;
myEntity.ticksFrozen();

Return Type: int

Getter
script.zs
// Entity.ticksRequiredToFreeze as int
myEntity.ticksRequiredToFreeze

Return Type: int

ticksRequiredToFreeze() as int
script.zs
// Entity.ticksRequiredToFreeze() as int;
myEntity.ticksRequiredToFreeze();

Return Type: int

turn(yaw as double, pitch as double)
script.zs
// Entity.turn(yaw as double, pitch as double);
myEntity.turn(myDouble, myDouble);

Parameters:

yaw Type: double
pitch Type: double
Getter
script.zs
// Entity.type as EntityType<Entity>
myEntity.type

Return Type: EntityType<Entity>

type() as EntityType<Entity>
script.zs
// Entity.type() as EntityType<Entity>;
myEntity.type();

Return Type: EntityType<Entity>

unRide()
script.zs
// Entity.unRide();
myEntity.unRide();
updateCustomData(data as MapData)
Updates the custom NBT data for this Entity.
script.zs
// Entity.updateCustomData(data as MapData);
myEntity.updateCustomData({custom: "data"});

Parameters:

data Type: MapData - The custom data to store.
updateCustomEntityTag(level as Level, player as Player, data as MapData)
script.zs
// Entity.updateCustomEntityTag(level as Level, player as Player, data as MapData);
myEntity.updateCustomEntityTag(myLevel, myPlayer, myMapData);

Parameters:

level Type: Level
player Type: Player
data Type: MapData
updateData(data as MapData)
Updates the NBT data of this Entity.
script.zs
// Entity.updateData(data as MapData);
myEntity.updateData({key: "value"});

Parameters:

data Type: MapData - The new Data for this Entity
Getter
script.zs
// Entity.uuid as UUID
myEntity.uuid

Return Type: UUID

uuid() as UUID
script.zs
// Entity.uuid() as UUID;
myEntity.uuid();

Return Type: UUID

Getter
script.zs
// Entity.vehicle as Entity
myEntity.vehicle

Return Type: Entity

vehicle() as Entity
script.zs
// Entity.vehicle() as Entity;
myEntity.vehicle();

Return Type: Entity

Getter
script.zs
// Entity.x as double
myEntity.x

Return Type: double

x() as double
script.zs
// Entity.x() as double;
myEntity.x();

Return Type: double

Getter
script.zs
// Entity.y as double
myEntity.y

Return Type: double

y() as double
script.zs
// Entity.y() as double;
myEntity.y();

Return Type: double

Getter
script.zs
// Entity.z as double
myEntity.z

Return Type: double

z() as double
script.zs
// Entity.z() as double;
myEntity.z();

Return Type: double