LightningBolt

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.type.misc.LightningBolt;

Extends

LightningBolt extends Entity.

Implements

LightningBolt implements the following interfaces:

Nameable,EntityAccess,CommandSource,IAttachmentHolder

Undocumented Interfaces

ScoreHolder,IEntityExtension,INBTSerializable<CompoundTag>

Members

Getter
script.zs
// LightningBolt.acceptsFailure as bool
myLightningBolt.acceptsFailure

Return Type: bool

acceptsFailure() as bool
script.zs
// LightningBolt.acceptsFailure() as bool;
myLightningBolt.acceptsFailure();

Return Type: bool

Getter
script.zs
// LightningBolt.acceptsSuccess as bool
myLightningBolt.acceptsSuccess

Return Type: bool

acceptsSuccess() as bool
script.zs
// LightningBolt.acceptsSuccess() as bool;
myLightningBolt.acceptsSuccess();

Return Type: bool

addTag(tagName as string) as bool
script.zs
// LightningBolt.addTag(tagName as string) as bool;
myLightningBolt.addTag(myString);

Parameters:

tagName Type: string

Return Type: bool

Getter
script.zs
// LightningBolt.airSupply as int
myLightningBolt.airSupply

Return Type: int

airSupply() as int
script.zs
// LightningBolt.airSupply() as int;
myLightningBolt.airSupply();

Return Type: int

Getter
script.zs
// LightningBolt.allSlots as Iterable<ItemStack>
myLightningBolt.allSlots

Return Type: Iterable<ItemStack>

allSlots() as Iterable<ItemStack>
script.zs
// LightningBolt.allSlots() as Iterable<ItemStack>;
myLightningBolt.allSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// LightningBolt.alwaysAccepts as bool
myLightningBolt.alwaysAccepts

Return Type: bool

alwaysAccepts() as bool
script.zs
// LightningBolt.alwaysAccepts() as bool;
myLightningBolt.alwaysAccepts();

Return Type: bool

Getter
script.zs
// LightningBolt.armorSlots as Iterable<ItemStack>
myLightningBolt.armorSlots

Return Type: Iterable<ItemStack>

armorSlots() as Iterable<ItemStack>
script.zs
// LightningBolt.armorSlots() as Iterable<ItemStack>;
myLightningBolt.armorSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// LightningBolt.bbHeight as float
myLightningBolt.bbHeight

Return Type: float

bbHeight() as float
script.zs
// LightningBolt.bbHeight() as float;
myLightningBolt.bbHeight();

Return Type: float

Getter
script.zs
// LightningBolt.bbWidth as float
myLightningBolt.bbWidth

Return Type: float

bbWidth() as float
script.zs
// LightningBolt.bbWidth() as float;
myLightningBolt.bbWidth();

Return Type: float

Getter
script.zs
// LightningBolt.blockPosiion as BlockPos
myLightningBolt.blockPosiion

Return Type: BlockPos

blockPosiion() as BlockPos
script.zs
// LightningBolt.blockPosiion() as BlockPos;
myLightningBolt.blockPosiion();

Return Type: BlockPos

Getter
script.zs
// LightningBolt.blockPosition as BlockPos
myLightningBolt.blockPosition

Return Type: BlockPos

blockPosition() as BlockPos
script.zs
// LightningBolt.blockPosition() as BlockPos;
myLightningBolt.blockPosition();

Return Type: BlockPos

Getter
script.zs
// LightningBolt.blocksSetOnFire as int
myLightningBolt.blocksSetOnFire

Return Type: int

blocksSetOnFire() as int
script.zs
// LightningBolt.blocksSetOnFire() as int;
myLightningBolt.blocksSetOnFire();

Return Type: int

Getter
script.zs
// LightningBolt.blockX as int
myLightningBolt.blockX

Return Type: int

blockX() as int
script.zs
// LightningBolt.blockX() as int;
myLightningBolt.blockX();

Return Type: int

Getter
script.zs
// LightningBolt.blockY as int
myLightningBolt.blockY

Return Type: int

blockY() as int
script.zs
// LightningBolt.blockY() as int;
myLightningBolt.blockY();

Return Type: int

Getter
script.zs
// LightningBolt.blockZ as int
myLightningBolt.blockZ

Return Type: int

blockZ() as int
script.zs
// LightningBolt.blockZ() as int;
myLightningBolt.blockZ();

Return Type: int

Getter
script.zs
// LightningBolt.boundingBox as AABB
myLightningBolt.boundingBox

Return Type: AABB

boundingBox() as AABB
script.zs
// LightningBolt.boundingBox() as AABB;
myLightningBolt.boundingBox();

Return Type: AABB

Getter
script.zs
// LightningBolt.boundingBoxForCulling as AABB
myLightningBolt.boundingBoxForCulling

Return Type: AABB

boundingBoxForCulling() as AABB
script.zs
// LightningBolt.boundingBoxForCulling() as AABB;
myLightningBolt.boundingBoxForCulling();

Return Type: AABB

Getter
script.zs
// LightningBolt.canBeCollidedWith as bool
myLightningBolt.canBeCollidedWith

Return Type: bool

canBeCollidedWith() as bool
script.zs
// LightningBolt.canBeCollidedWith() as bool;
myLightningBolt.canBeCollidedWith();

Return Type: bool

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

Parameters:

other Type: Entity

Return Type: bool

Getter
script.zs
// LightningBolt.canFreeze as bool
myLightningBolt.canFreeze

Return Type: bool

canFreeze() as bool
script.zs
// LightningBolt.canFreeze() as bool;
myLightningBolt.canFreeze();

Return Type: bool

Getter
script.zs
// LightningBolt.cause as ServerPlayer
myLightningBolt.cause

Return Type: ServerPlayer

cause() as ServerPlayer
script.zs
// LightningBolt.cause() as ServerPlayer;
myLightningBolt.cause();

Return Type: ServerPlayer

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

Parameters:

other Type: Entity
distance Type: double

Return Type: bool

Getter
script.zs
// LightningBolt.commandSenderWorld as Level
myLightningBolt.commandSenderWorld

Return Type: Level

commandSenderWorld() as Level
script.zs
// LightningBolt.commandSenderWorld() as Level;
myLightningBolt.commandSenderWorld();

Return Type: Level

Getter
script.zs
// LightningBolt.controllingPassenger as Entity
myLightningBolt.controllingPassenger

Return Type: Entity

controllingPassenger() as Entity
script.zs
// LightningBolt.controllingPassenger() as Entity;
myLightningBolt.controllingPassenger();

Return Type: Entity

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

Return Type: MapData

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

Returns: The custom data for this Entity.

script.zs
// LightningBolt.customData() as MapData;
myLightningBolt.customData();

Return Type: MapData

Getter
script.zs
// LightningBolt.customName as Component
myLightningBolt.customName

Return Type: Component

Getter
script.zs
// LightningBolt.customName as Component
myLightningBolt.customName

Return Type: Component

customName() as Component
script.zs
// LightningBolt.customName() as Component;
myLightningBolt.customName();

Return Type: Component

customName() as Component
script.zs
// LightningBolt.customName() as Component;
myLightningBolt.customName();

Return Type: Component

Getter
script.zs
// LightningBolt.dampensVibrations as bool
myLightningBolt.dampensVibrations

Return Type: bool

dampensVibrations() as bool
script.zs
// LightningBolt.dampensVibrations() as bool;
myLightningBolt.dampensVibrations();

Return Type: bool

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

Return Type: MapData

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

Returns: The NBT data of this Entity.

script.zs
// LightningBolt.data() as MapData;
myLightningBolt.data();

Return Type: MapData

Getter
script.zs
// LightningBolt.deltaMovement as Vec3
myLightningBolt.deltaMovement

Return Type: Vec3

Setter
script.zs
// LightningBolt.deltaMovement = (deltaMovement as Vec3);
myLightningBolt.deltaMovement = myVec3;

Parameters:

deltaMovement Type: Vec3
deltaMovement() as Vec3
script.zs
// LightningBolt.deltaMovement() as Vec3;
myLightningBolt.deltaMovement();

Return Type: Vec3

deltaMovement(deltaMovement as Vec3)
script.zs
// LightningBolt.deltaMovement(deltaMovement as Vec3);
myLightningBolt.deltaMovement(myVec3);

Parameters:

deltaMovement Type: Vec3
Getter
script.zs
// LightningBolt.dimensionChangingDelay as int
myLightningBolt.dimensionChangingDelay

Return Type: int

dimensionChangingDelay() as int
script.zs
// LightningBolt.dimensionChangingDelay() as int;
myLightningBolt.dimensionChangingDelay();

Return Type: int

Getter
script.zs
// LightningBolt.direction as Direction
myLightningBolt.direction

Return Type: Direction

direction() as Direction
script.zs
// LightningBolt.direction() as Direction;
myLightningBolt.direction();

Return Type: Direction

discard()
script.zs
// LightningBolt.discard();
myLightningBolt.discard();
Getter
script.zs
// LightningBolt.dismountsUnderwater as bool
myLightningBolt.dismountsUnderwater

Return Type: bool

Getter
script.zs
// LightningBolt.displayName as Component
myLightningBolt.displayName

Return Type: Component

Getter
script.zs
// LightningBolt.displayName as Component
myLightningBolt.displayName

Return Type: Component

displayName() as Component
script.zs
// LightningBolt.displayName() as Component;
myLightningBolt.displayName();

Return Type: Component

displayName() as Component
script.zs
// LightningBolt.displayName() as Component;
myLightningBolt.displayName();

Return Type: Component

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

Parameters:

entity Type: Entity

Return Type: float

distanceToSqr(x as double, y as double, z as double) as double
script.zs
// LightningBolt.distanceToSqr(x as double, y as double, z as double) as double;
myLightningBolt.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
// LightningBolt.distanceToSqr(entity as Entity) as double;
myLightningBolt.distanceToSqr(myEntity);

Parameters:

entity Type: Entity

Return Type: double

distanceToSqr(vec as Vec3) as double
script.zs
// LightningBolt.distanceToSqr(vec as Vec3) as double;
myLightningBolt.distanceToSqr(myVec3);

Parameters:

vec Type: Vec3

Return Type: double

ejectPassengers()
script.zs
// LightningBolt.ejectPassengers();
myLightningBolt.ejectPassengers();
Getter
script.zs
// LightningBolt.eyeHeight as float
myLightningBolt.eyeHeight

Return Type: float

eyeHeight() as float
script.zs
// LightningBolt.eyeHeight() as float;
myLightningBolt.eyeHeight();

Return Type: float

Getter
script.zs
// LightningBolt.eyePosition as Vec3
myLightningBolt.eyePosition

Return Type: Vec3

eyePosition() as Vec3
script.zs
// LightningBolt.eyePosition() as Vec3;
myLightningBolt.eyePosition();

Return Type: Vec3

Getter
script.zs
// LightningBolt.eyeY as double
myLightningBolt.eyeY

Return Type: double

eyeY() as double
script.zs
// LightningBolt.eyeY() as double;
myLightningBolt.eyeY();

Return Type: double

Getter
script.zs
// LightningBolt.feetBlockState as BlockState
myLightningBolt.feetBlockState

Return Type: BlockState

feetBlockState() as BlockState
script.zs
// LightningBolt.feetBlockState() as BlockState;
myLightningBolt.feetBlockState();

Return Type: BlockState

Getter
script.zs
// LightningBolt.fireImmune as bool
myLightningBolt.fireImmune

Return Type: bool

fireImmune() as bool
script.zs
// LightningBolt.fireImmune() as bool;
myLightningBolt.fireImmune();

Return Type: bool

Getter
script.zs
// LightningBolt.firstPassenger as Entity
myLightningBolt.firstPassenger

Return Type: Entity

firstPassenger() as Entity
script.zs
// LightningBolt.firstPassenger() as Entity;
myLightningBolt.firstPassenger();

Return Type: Entity

Getter
script.zs
// LightningBolt.fluidJumpThreshold as double
myLightningBolt.fluidJumpThreshold

Return Type: double

fluidJumpThreshold() as double
script.zs
// LightningBolt.fluidJumpThreshold() as double;
myLightningBolt.fluidJumpThreshold();

Return Type: double

Getter
script.zs
// LightningBolt.forward as Vec3
myLightningBolt.forward

Return Type: Vec3

forward() as Vec3
script.zs
// LightningBolt.forward() as Vec3;
myLightningBolt.forward();

Return Type: Vec3

getAttachmentData(type as AttachmentType<T>) as T
script.zs
// LightningBolt.getAttachmentData<T>(type as AttachmentType<T>) as T;
myLightningBolt.getAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: T

getAttachmentData(type as Supplier<AttachmentType<T>>) as T
script.zs
// LightningBolt.getAttachmentData<T>(type as Supplier<AttachmentType<T>>) as T;
myLightningBolt.getAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: T

getEyePosition(partialTicks as float) as Vec3
script.zs
// LightningBolt.getEyePosition(partialTicks as float) as Vec3;
myLightningBolt.getEyePosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getPosition(partialTicks as float) as Vec3
script.zs
// LightningBolt.getPosition(partialTicks as float) as Vec3;
myLightningBolt.getPosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getUpVector(partialTicks as float) as Vec3
script.zs
// LightningBolt.getUpVector(partialTicks as float) as Vec3;
myLightningBolt.getUpVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getViewVector(partialTicks as float) as Vec3
script.zs
// LightningBolt.getViewVector(partialTicks as float) as Vec3;
myLightningBolt.getViewVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getX(scale as double) as double
script.zs
// LightningBolt.getX(scale as double) as double;
myLightningBolt.getX(myDouble);

Parameters:

scale Type: double

Return Type: double

getY(scale as double) as double
script.zs
// LightningBolt.getY(scale as double) as double;
myLightningBolt.getY(myDouble);

Parameters:

scale Type: double

Return Type: double

getZ(scale as double) as double
script.zs
// LightningBolt.getZ(scale as double) as double;
myLightningBolt.getZ(myDouble);

Parameters:

scale Type: double

Return Type: double

Getter
script.zs
// LightningBolt.handSlots as Iterable<ItemStack>
myLightningBolt.handSlots

Return Type: Iterable<ItemStack>

handSlots() as Iterable<ItemStack>
script.zs
// LightningBolt.handSlots() as Iterable<ItemStack>;
myLightningBolt.handSlots();

Return Type: Iterable<ItemStack>

hasAttachmentData(type as AttachmentType<T>) as bool
script.zs
// LightningBolt.hasAttachmentData<T>(type as AttachmentType<T>) as bool;
myLightningBolt.hasAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: bool

hasAttachmentData(type as Supplier<AttachmentType<T>>) as bool
script.zs
// LightningBolt.hasAttachmentData<T>(type as Supplier<AttachmentType<T>>) as bool;
myLightningBolt.hasAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: bool

Getter
script.zs
// LightningBolt.hasCustomName as bool
myLightningBolt.hasCustomName

Return Type: bool

Getter
script.zs
// LightningBolt.hasCustomName as bool
myLightningBolt.hasCustomName

Return Type: bool

hasCustomName() as bool
script.zs
// LightningBolt.hasCustomName() as bool;
myLightningBolt.hasCustomName();

Return Type: bool

hasCustomName() as bool
script.zs
// LightningBolt.hasCustomName() as bool;
myLightningBolt.hasCustomName();

Return Type: bool

Getter
script.zs
// LightningBolt.hasExactlyOnePlayerPassenger as bool
myLightningBolt.hasExactlyOnePlayerPassenger

Return Type: bool

hasExactlyOnePlayerPassenger() as bool
script.zs
// LightningBolt.hasExactlyOnePlayerPassenger() as bool;
myLightningBolt.hasExactlyOnePlayerPassenger();

Return Type: bool

Getter
script.zs
// LightningBolt.hasGlowingTag as bool
myLightningBolt.hasGlowingTag

Return Type: bool

hasGlowingTag() as bool
script.zs
// LightningBolt.hasGlowingTag() as bool;
myLightningBolt.hasGlowingTag();

Return Type: bool

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

Parameters:

entity Type: Entity

Return Type: bool

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

Parameters:

entity Type: Entity

Return Type: bool

hasPassenger(predicate as function(t as Entity) as bool) as bool
script.zs
// LightningBolt.hasPassenger(predicate as function(t as Entity) as bool) as bool;
myLightningBolt.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
// LightningBolt.hurt(source as DamageSource, amount as float) as bool;
myLightningBolt.hurt(myDamageSource, myFloat);

Parameters:

source Type: DamageSource
amount Type: float

Return Type: bool

Getter
script.zs
// LightningBolt.id as int
myLightningBolt.id

Return Type: int

id() as int
script.zs
// LightningBolt.id() as int;
myLightningBolt.id();

Return Type: int

Getter
script.zs
// LightningBolt.isAlive as bool
myLightningBolt.isAlive

Return Type: bool

isAlive() as bool
script.zs
// LightningBolt.isAlive() as bool;
myLightningBolt.isAlive();

Return Type: bool

Getter
script.zs
// LightningBolt.isAlwaysTicking as bool
myLightningBolt.isAlwaysTicking

Return Type: bool

isAlwaysTicking() as bool
script.zs
// LightningBolt.isAlwaysTicking() as bool;
myLightningBolt.isAlwaysTicking();

Return Type: bool

Getter
script.zs
// LightningBolt.isAttackable as bool
myLightningBolt.isAttackable

Return Type: bool

isAttackable() as bool
script.zs
// LightningBolt.isAttackable() as bool;
myLightningBolt.isAttackable();

Return Type: bool

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

Parameters:

pos Type: BlockPos
state Type: BlockState

Return Type: bool

Getter
script.zs
// LightningBolt.isCrouching as bool
myLightningBolt.isCrouching

Return Type: bool

isCrouching() as bool
script.zs
// LightningBolt.isCrouching() as bool;
myLightningBolt.isCrouching();

Return Type: bool

Getter
script.zs
// LightningBolt.isCurrentlyGlowing as bool
myLightningBolt.isCurrentlyGlowing

Return Type: bool

isCurrentlyGlowing() as bool
script.zs
// LightningBolt.isCurrentlyGlowing() as bool;
myLightningBolt.isCurrentlyGlowing();

Return Type: bool

Getter
script.zs
// LightningBolt.isCustomNameVisible as bool
myLightningBolt.isCustomNameVisible

Return Type: bool

isCustomNameVisible() as bool
script.zs
// LightningBolt.isCustomNameVisible() as bool;
myLightningBolt.isCustomNameVisible();

Return Type: bool

Getter
script.zs
// LightningBolt.isDescending as bool
myLightningBolt.isDescending

Return Type: bool

isDescending() as bool
script.zs
// LightningBolt.isDescending() as bool;
myLightningBolt.isDescending();

Return Type: bool

Getter
script.zs
// LightningBolt.isDiscrete as bool
myLightningBolt.isDiscrete

Return Type: bool

isDiscrete() as bool
script.zs
// LightningBolt.isDiscrete() as bool;
myLightningBolt.isDiscrete();

Return Type: bool

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

Parameters:

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

Return Type: bool

Getter
script.zs
// LightningBolt.isFullyFrozen as bool
myLightningBolt.isFullyFrozen

Return Type: bool

isFullyFrozen() as bool
script.zs
// LightningBolt.isFullyFrozen() as bool;
myLightningBolt.isFullyFrozen();

Return Type: bool

Getter
script.zs
// LightningBolt.isInLava as bool
myLightningBolt.isInLava

Return Type: bool

isInLava() as bool
script.zs
// LightningBolt.isInLava() as bool;
myLightningBolt.isInLava();

Return Type: bool

Getter
script.zs
// LightningBolt.isInvisible as bool
myLightningBolt.isInvisible

Return Type: bool

isInvisible() as bool
script.zs
// LightningBolt.isInvisible() as bool;
myLightningBolt.isInvisible();

Return Type: bool

isInvisibleTo(player as Player) as bool
script.zs
// LightningBolt.isInvisibleTo(player as Player) as bool;
myLightningBolt.isInvisibleTo(myPlayer);

Parameters:

player Type: Player

Return Type: bool

Getter
script.zs
// LightningBolt.isInvulnerable as bool
myLightningBolt.isInvulnerable

Return Type: bool

isInvulnerable() as bool
script.zs
// LightningBolt.isInvulnerable() as bool;
myLightningBolt.isInvulnerable();

Return Type: bool

isInvulnerableTo(source as DamageSource) as bool
script.zs
// LightningBolt.isInvulnerableTo(source as DamageSource) as bool;
myLightningBolt.isInvulnerableTo(myDamageSource);

Parameters:

source Type: DamageSource

Return Type: bool

Getter
script.zs
// LightningBolt.isInWall as bool
myLightningBolt.isInWall

Return Type: bool

isInWall() as bool
script.zs
// LightningBolt.isInWall() as bool;
myLightningBolt.isInWall();

Return Type: bool

Getter
script.zs
// LightningBolt.isInWater as bool
myLightningBolt.isInWater

Return Type: bool

isInWater() as bool
script.zs
// LightningBolt.isInWater() as bool;
myLightningBolt.isInWater();

Return Type: bool

Getter
script.zs
// LightningBolt.isInWaterOrBubble as bool
myLightningBolt.isInWaterOrBubble

Return Type: bool

isInWaterOrBubble() as bool
script.zs
// LightningBolt.isInWaterOrBubble() as bool;
myLightningBolt.isInWaterOrBubble();

Return Type: bool

Getter
script.zs
// LightningBolt.isInWaterOrRain as bool
myLightningBolt.isInWaterOrRain

Return Type: bool

isInWaterOrRain() as bool
script.zs
// LightningBolt.isInWaterOrRain() as bool;
myLightningBolt.isInWaterOrRain();

Return Type: bool

Getter
script.zs
// LightningBolt.isInWaterRainOrBubble as bool
myLightningBolt.isInWaterRainOrBubble

Return Type: bool

isInWaterRainOrBubble() as bool
script.zs
// LightningBolt.isInWaterRainOrBubble() as bool;
myLightningBolt.isInWaterRainOrBubble();

Return Type: bool

Getter
script.zs
// LightningBolt.isNoGravity as bool
myLightningBolt.isNoGravity

Return Type: bool

isNoGravity() as bool
script.zs
// LightningBolt.isNoGravity() as bool;
myLightningBolt.isNoGravity();

Return Type: bool

Getter
script.zs
// LightningBolt.isOnFire as bool
myLightningBolt.isOnFire

Return Type: bool

isOnFire() as bool
script.zs
// LightningBolt.isOnFire() as bool;
myLightningBolt.isOnFire();

Return Type: bool

Getter
script.zs
// LightningBolt.isOnPortalCooldown as bool
myLightningBolt.isOnPortalCooldown

Return Type: bool

isOnPortalCooldown() as bool
script.zs
// LightningBolt.isOnPortalCooldown() as bool;
myLightningBolt.isOnPortalCooldown();

Return Type: bool

Getter
script.zs
// LightningBolt.isPassenger as bool
myLightningBolt.isPassenger

Return Type: bool

isPassenger() as bool
script.zs
// LightningBolt.isPassenger() as bool;
myLightningBolt.isPassenger();

Return Type: bool

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

Parameters:

entity Type: Entity

Return Type: bool

Getter
script.zs
// LightningBolt.isPickable as bool
myLightningBolt.isPickable

Return Type: bool

isPickable() as bool
script.zs
// LightningBolt.isPickable() as bool;
myLightningBolt.isPickable();

Return Type: bool

Getter
script.zs
// LightningBolt.isPushable as bool
myLightningBolt.isPushable

Return Type: bool

isPushable() as bool
script.zs
// LightningBolt.isPushable() as bool;
myLightningBolt.isPushable();

Return Type: bool

Getter
script.zs
// LightningBolt.isPushedByFluid as bool
myLightningBolt.isPushedByFluid

Return Type: bool

isPushedByFluid() as bool
script.zs
// LightningBolt.isPushedByFluid() as bool;
myLightningBolt.isPushedByFluid();

Return Type: bool

Getter
script.zs
// LightningBolt.isRemoved as bool
myLightningBolt.isRemoved

Return Type: bool

isRemoved() as bool
script.zs
// LightningBolt.isRemoved() as bool;
myLightningBolt.isRemoved();

Return Type: bool

Getter
script.zs
// LightningBolt.isShiftKeyDown as bool
myLightningBolt.isShiftKeyDown

Return Type: bool

isShiftKeyDown() as bool
script.zs
// LightningBolt.isShiftKeyDown() as bool;
myLightningBolt.isShiftKeyDown();

Return Type: bool

Getter
script.zs
// LightningBolt.isSilent as bool
myLightningBolt.isSilent

Return Type: bool

isSilent() as bool
script.zs
// LightningBolt.isSilent() as bool;
myLightningBolt.isSilent();

Return Type: bool

Getter
script.zs
// LightningBolt.isSpectator as bool
myLightningBolt.isSpectator

Return Type: bool

isSpectator() as bool
script.zs
// LightningBolt.isSpectator() as bool;
myLightningBolt.isSpectator();

Return Type: bool

Getter
script.zs
// LightningBolt.isSprinting as bool
myLightningBolt.isSprinting

Return Type: bool

isSprinting() as bool
script.zs
// LightningBolt.isSprinting() as bool;
myLightningBolt.isSprinting();

Return Type: bool

Getter
script.zs
// LightningBolt.isSteppingCarefully as bool
myLightningBolt.isSteppingCarefully

Return Type: bool

isSteppingCarefully() as bool
script.zs
// LightningBolt.isSteppingCarefully() as bool;
myLightningBolt.isSteppingCarefully();

Return Type: bool

Getter
script.zs
// LightningBolt.isSuppressingBounce as bool
myLightningBolt.isSuppressingBounce

Return Type: bool

isSuppressingBounce() as bool
script.zs
// LightningBolt.isSuppressingBounce() as bool;
myLightningBolt.isSuppressingBounce();

Return Type: bool

Getter
script.zs
// LightningBolt.isSwimming as bool
myLightningBolt.isSwimming

Return Type: bool

isSwimming() as bool
script.zs
// LightningBolt.isSwimming() as bool;
myLightningBolt.isSwimming();

Return Type: bool

Getter
script.zs
// LightningBolt.isUnderWater as bool
myLightningBolt.isUnderWater

Return Type: bool

isUnderWater() as bool
script.zs
// LightningBolt.isUnderWater() as bool;
myLightningBolt.isUnderWater();

Return Type: bool

Getter
script.zs
// LightningBolt.isVehicle as bool
myLightningBolt.isVehicle

Return Type: bool

isVehicle() as bool
script.zs
// LightningBolt.isVehicle() as bool;
myLightningBolt.isVehicle();

Return Type: bool

Getter
script.zs
// LightningBolt.isVisuallyCrawling as bool
myLightningBolt.isVisuallyCrawling

Return Type: bool

isVisuallyCrawling() as bool
script.zs
// LightningBolt.isVisuallyCrawling() as bool;
myLightningBolt.isVisuallyCrawling();

Return Type: bool

Getter
script.zs
// LightningBolt.isVisuallySwimming as bool
myLightningBolt.isVisuallySwimming

Return Type: bool

isVisuallySwimming() as bool
script.zs
// LightningBolt.isVisuallySwimming() as bool;
myLightningBolt.isVisuallySwimming();

Return Type: bool

kill()
script.zs
// LightningBolt.kill();
myLightningBolt.kill();
lavaHurt()
script.zs
// LightningBolt.lavaHurt();
myLightningBolt.lavaHurt();
Getter
script.zs
// LightningBolt.level as Level
myLightningBolt.level

Return Type: Level

Getter
script.zs
// LightningBolt.lookAngle as Vec3
myLightningBolt.lookAngle

Return Type: Vec3

lookAngle() as Vec3
script.zs
// LightningBolt.lookAngle() as Vec3;
myLightningBolt.lookAngle();

Return Type: Vec3

Getter
script.zs
// LightningBolt.maxAirSupply as int
myLightningBolt.maxAirSupply

Return Type: int

maxAirSupply() as int
script.zs
// LightningBolt.maxAirSupply() as int;
myLightningBolt.maxAirSupply();

Return Type: int

Getter
script.zs
// LightningBolt.maxFallDistance as int
myLightningBolt.maxFallDistance

Return Type: int

maxFallDistance() as int
script.zs
// LightningBolt.maxFallDistance() as int;
myLightningBolt.maxFallDistance();

Return Type: int

Getter
script.zs
// LightningBolt.motionDirection as Direction
myLightningBolt.motionDirection

Return Type: Direction

motionDirection() as Direction
script.zs
// LightningBolt.motionDirection() as Direction;
myLightningBolt.motionDirection();

Return Type: Direction

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

Parameters:

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

Parameters:

vec Type: Vec3
moveTo(x as double, y as double, z as double)
script.zs
// LightningBolt.moveTo(x as double, y as double, z as double);
myLightningBolt.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
// LightningBolt.moveTo(pos as BlockPos, yaw as float, pitch as float);
myLightningBolt.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
// LightningBolt.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);
myLightningBolt.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
// LightningBolt.name as Component
myLightningBolt.name

Return Type: Component

Getter
script.zs
// LightningBolt.name as Component
myLightningBolt.name

Return Type: Component

name() as Component
script.zs
// LightningBolt.name() as Component;
myLightningBolt.name();

Return Type: Component

name() as Component
script.zs
// LightningBolt.name() as Component;
myLightningBolt.name();

Return Type: Component

Getter
script.zs
// LightningBolt.onGround as bool
myLightningBolt.onGround

Return Type: bool

Getter
script.zs
// LightningBolt.onPos as BlockPos
myLightningBolt.onPos

Return Type: BlockPos

onPos() as BlockPos
script.zs
// LightningBolt.onPos() as BlockPos;
myLightningBolt.onPos();

Return Type: BlockPos

Getter
script.zs
// LightningBolt.passengers as List<Entity>
myLightningBolt.passengers

Return Type: List<Entity>

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

Return Type: List<Entity>

Getter
script.zs
// LightningBolt.percentFrozen as float
myLightningBolt.percentFrozen

Return Type: float

percentFrozen() as float
script.zs
// LightningBolt.percentFrozen() as float;
myLightningBolt.percentFrozen();

Return Type: float

Getter
script.zs
// LightningBolt.pistonPushReaction as PushReaction
myLightningBolt.pistonPushReaction

Return Type: PushReaction

pistonPushReaction() as PushReaction
script.zs
// LightningBolt.pistonPushReaction() as PushReaction;
myLightningBolt.pistonPushReaction();

Return Type: PushReaction

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

Parameters:

sound Type: SoundEvent
volume Type: float
pitch Type: float
Getter
script.zs
// LightningBolt.portalWaitTime as int
myLightningBolt.portalWaitTime

Return Type: int

portalWaitTime() as int
script.zs
// LightningBolt.portalWaitTime() as int;
myLightningBolt.portalWaitTime();

Return Type: int

Getter
script.zs
// LightningBolt.position as Vec3
myLightningBolt.position

Return Type: Vec3

position() as Vec3
script.zs
// LightningBolt.position() as Vec3;
myLightningBolt.position();

Return Type: Vec3

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

Parameters:

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

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// LightningBolt.registryName() as ResourceLocation;
myLightningBolt.registryName();

Return Type: ResourceLocation

Getter
script.zs
// LightningBolt.remainingFireTicks as int
myLightningBolt.remainingFireTicks

Return Type: int

remainingFireTicks() as int
script.zs
// LightningBolt.remainingFireTicks() as int;
myLightningBolt.remainingFireTicks();

Return Type: int

removeTag(tagName as string) as bool
script.zs
// LightningBolt.removeTag(tagName as string) as bool;
myLightningBolt.removeTag(myString);

Parameters:

tagName Type: string

Return Type: bool

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

Return Type: Entity

rootVehicle() as Entity
script.zs
// LightningBolt.rootVehicle() as Entity;
myLightningBolt.rootVehicle();

Return Type: Entity

sendMessage(component as Component)
script.zs
// LightningBolt.sendMessage(component as Component);
myLightningBolt.sendMessage(myComponent);

Parameters:

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

Parameters:

air Type: int
setAttachmentData(type as AttachmentType<T>, data as T) as T?
script.zs
// LightningBolt.setAttachmentData<T>(type as AttachmentType<T>, data as T) as T?;
myLightningBolt.setAttachmentData<T>(myAttachmentType, myT);

Parameters:

type Type: AttachmentType<T>
data Type: T

Return Type: T?

setAttachmentData(type as Supplier<AttachmentType<T>>, data as T) as T?
script.zs
// LightningBolt.setAttachmentData<T>(type as Supplier<AttachmentType<T>>, data as T) as T?;
myLightningBolt.setAttachmentData<T>(mySupplier, myT);

Parameters:

type Type: Supplier<AttachmentType<T>>
data Type: T

Return Type: T?

setCustomName(name as Component)
script.zs
// LightningBolt.setCustomName(name as Component);
myLightningBolt.setCustomName(myComponent);

Parameters:

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

Parameters:

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

Parameters:

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

Parameters:

glowing Type: bool
setInvisible(invisible as bool)
script.zs
// LightningBolt.setInvisible(invisible as bool);
myLightningBolt.setInvisible(myBool);

Parameters:

invisible Type: bool
setInvulnerable(invulnerable as bool)
script.zs
// LightningBolt.setInvulnerable(invulnerable as bool);
myLightningBolt.setInvulnerable(myBool);

Parameters:

invulnerable Type: bool
setIsInPowderSnow(inPowderSnow as bool)
script.zs
// LightningBolt.setIsInPowderSnow(inPowderSnow as bool);
myLightningBolt.setIsInPowderSnow(myBool);

Parameters:

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

Parameters:

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

Parameters:

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

Parameters:

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

Parameters:

position Type: Vec3
setPos(x as double, y as double, z as double)
script.zs
// LightningBolt.setPos(x as double, y as double, z as double);
myLightningBolt.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
// LightningBolt.setPosRaw(x as double, y as double, z as double);
myLightningBolt.setPosRaw(myDouble, myDouble, myDouble);

Parameters:

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

Parameters:

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

Parameters:

setSecondsOnFire(seconds as int)
script.zs
// LightningBolt.setSecondsOnFire(seconds as int);
myLightningBolt.setSecondsOnFire(myInt);

Parameters:

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

Parameters:

keyDown Type: bool
setSilent(silent as bool)
script.zs
// LightningBolt.setSilent(silent as bool);
myLightningBolt.setSilent(myBool);

Parameters:

silent Type: bool
setSprinting(sprinting as bool)
script.zs
// LightningBolt.setSprinting(sprinting as bool);
myLightningBolt.setSprinting(myBool);

Parameters:

sprinting Type: bool
setSwimming(swimming as bool)
script.zs
// LightningBolt.setSwimming(swimming as bool);
myLightningBolt.setSwimming(myBool);

Parameters:

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

Parameters:

ticks Type: int
Getter
script.zs
// LightningBolt.shouldBeSaved as bool
myLightningBolt.shouldBeSaved

Return Type: bool

shouldBeSaved() as bool
script.zs
// LightningBolt.shouldBeSaved() as bool;
myLightningBolt.shouldBeSaved();

Return Type: bool

Getter
script.zs
// LightningBolt.shouldInformAdmins as bool
myLightningBolt.shouldInformAdmins

Return Type: bool

shouldInformAdmins() as bool
script.zs
// LightningBolt.shouldInformAdmins() as bool;
myLightningBolt.shouldInformAdmins();

Return Type: bool

Getter
script.zs
// LightningBolt.shouldShowName as bool
myLightningBolt.shouldShowName

Return Type: bool

shouldShowName() as bool
script.zs
// LightningBolt.shouldShowName() as bool;
myLightningBolt.shouldShowName();

Return Type: bool

Getter
script.zs
// LightningBolt.showVehicleHealth as bool
myLightningBolt.showVehicleHealth

Return Type: bool

showVehicleHealth() as bool
script.zs
// LightningBolt.showVehicleHealth() as bool;
myLightningBolt.showVehicleHealth();

Return Type: bool

Getter
script.zs
// LightningBolt.soundSource as SoundSource
myLightningBolt.soundSource

Return Type: SoundSource

soundSource() as SoundSource
script.zs
// LightningBolt.soundSource() as SoundSource;
myLightningBolt.soundSource();

Return Type: SoundSource

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

Parameters:

entity Type: Entity

Return Type: bool

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

Parameters:

entity Type: Entity
force Type: bool

Return Type: bool

stopRiding()
script.zs
// LightningBolt.stopRiding();
myLightningBolt.stopRiding();
Getter
script.zs
// LightningBolt.stringUUID as string
myLightningBolt.stringUUID

Return Type: string

stringUUID() as string
script.zs
// LightningBolt.stringUUID() as string;
myLightningBolt.stringUUID();

Return Type: string

Getter
script.zs
// LightningBolt.tags as Set<string>
myLightningBolt.tags

Return Type: Set<string>

tags() as Set<string>
script.zs
// LightningBolt.tags() as Set<string>;
myLightningBolt.tags();

Return Type: Set<string>

Getter
script.zs
// LightningBolt.teamColor as int
myLightningBolt.teamColor

Return Type: int

teamColor() as int
script.zs
// LightningBolt.teamColor() as int;
myLightningBolt.teamColor();

Return Type: int

teleportTo(x as double, y as double, z as double)
script.zs
// LightningBolt.teleportTo(x as double, y as double, z as double);
myLightningBolt.teleportTo(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
Getter
script.zs
// LightningBolt.ticksFrozen as int
myLightningBolt.ticksFrozen

Return Type: int

ticksFrozen() as int
script.zs
// LightningBolt.ticksFrozen() as int;
myLightningBolt.ticksFrozen();

Return Type: int

Getter
script.zs
// LightningBolt.ticksRequiredToFreeze as int
myLightningBolt.ticksRequiredToFreeze

Return Type: int

ticksRequiredToFreeze() as int
script.zs
// LightningBolt.ticksRequiredToFreeze() as int;
myLightningBolt.ticksRequiredToFreeze();

Return Type: int

turn(yaw as double, pitch as double)
script.zs
// LightningBolt.turn(yaw as double, pitch as double);
myLightningBolt.turn(myDouble, myDouble);

Parameters:

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

Return Type: EntityType<Entity>

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

Return Type: EntityType<Entity>

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

Parameters:

data Type: MapData - The custom data to store.
updateCustomEntityTag(level as Level, player as Player, data as MapData)
script.zs
// LightningBolt.updateCustomEntityTag(level as Level, player as Player, data as MapData);
myLightningBolt.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
// LightningBolt.updateData(data as MapData);
myLightningBolt.updateData({key: "value"});

Parameters:

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

Return Type: UUID

uuid() as UUID
script.zs
// LightningBolt.uuid() as UUID;
myLightningBolt.uuid();

Return Type: UUID

Getter
script.zs
// LightningBolt.vehicle as Entity
myLightningBolt.vehicle

Return Type: Entity

vehicle() as Entity
script.zs
// LightningBolt.vehicle() as Entity;
myLightningBolt.vehicle();

Return Type: Entity

Getter
script.zs
// LightningBolt.visualOnly as bool
myLightningBolt.visualOnly

Return Type: bool

Setter
script.zs
// LightningBolt.visualOnly = (visualOnly as bool);
myLightningBolt.visualOnly = myBool;

Parameters:

visualOnly Type: bool
visualOnly(visualOnly as bool)
script.zs
// LightningBolt.visualOnly(visualOnly as bool);
myLightningBolt.visualOnly(myBool);

Parameters:

visualOnly Type: bool
visualOnly() as bool
script.zs
// LightningBolt.visualOnly() as bool;
myLightningBolt.visualOnly();

Return Type: bool

Getter
script.zs
// LightningBolt.x as double
myLightningBolt.x

Return Type: double

x() as double
script.zs
// LightningBolt.x() as double;
myLightningBolt.x();

Return Type: double

Getter
script.zs
// LightningBolt.y as double
myLightningBolt.y

Return Type: double

y() as double
script.zs
// LightningBolt.y() as double;
myLightningBolt.y();

Return Type: double

Getter
script.zs
// LightningBolt.z as double
myLightningBolt.z

Return Type: double

z() as double
script.zs
// LightningBolt.z() as double;
myLightningBolt.z();

Return Type: double