Skip to main content

Projectiles

Mutate Projectile​

projectile.mutate

Changes the properties of a Projectile that are given, the others stay as they are, and gives every property's value after the change

InTypeWhat it is
ProjectileProjectileRepresents a shootable entity.
Has Been Shot (optional)BooleanSets whether the projectile has been shot into the world and has sent a projectile shot game event in the next tick.
Has Left Shooter (optional)BooleanSets whether the projectile has left the hitbox of their shooter and can now hit entities.
Custom Name Visible (optional)BooleanSets whether or not to display the mob's custom name client side.
Fall Distance (optional)FloatSets the fall distance for this entity
Fire Ticks (optional)IntegerSets the entity's current fire ticks (ticks before the entity stops being on fire).
Freeze Ticks (optional)IntegerSets the entity's current freeze ticks (amount of ticks the entity has been in powdered snow).
Glowing (optional)BooleanSets whether the entity has a team colored (default: white) glow.
Gravity (optional)BooleanSets whether gravity applies to this entity.
Invisible (optional)BooleanSets whether the entity is invisible or not.
Invulnerable (optional)BooleanSets whether the entity is invulnerable or not.
No Physics (optional)BooleanSets this entity no physics status.
Op (optional)BooleanSets the operator status of this object
Persistent (optional)BooleanSets whether or not the entity gets persisted.
Portal Cooldown (optional)IntegerSets the period of time (in ticks) before this entity can use a portal.
Pose (optional)PoseSets the entity's current Pose.
Silent (optional)BooleanSets whether the entity is silent or not.
Sneaking (optional)BooleanSets the sneak mode the entity.
Ticks Lived (optional)IntegerSets the amount of ticks this entity has lived for.
Velocity (optional)VectorSets this entity's velocity in meters per tick
Visible By Default (optional)BooleanSets whether or not this entity is visible by default.
Visual Fire (optional)TriStateSets if the entity has visual fire (it will always appear to be on fire).
OutTypeWhat it is
Owner Unique IdUUIDGets the owner's UUID
As StringTextGet this entity as an NBT string.
Custom Name VisibleBooleanGets whether or not the mob's custom name is displayed client side.
DeadBooleanReturns true if this entity has been marked for removal.
EmptyBooleanCheck if a vehicle has passengers.
Entity IdIntegerReturns the network protocol ID for this entity.
Entity Spawn ReasonSpawnReason{@return the org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason that initially spawned this entity or null if not yet spawned}
FacingBlockFaceGet the closest cardinal BlockFace direction an entity is currently facing.
Fall DistanceFloatReturns the distance this entity has fallen
Fire TicksIntegerReturns the entity's current fire ticks (ticks before the entity stops being on fire).
Freeze Ticking LockedBooleanGets if the entity currently has its freeze ticks locked to a set amount.
Freeze TicksIntegerReturns the entity's current freeze ticks (amount of ticks the entity has been in powdered snow).
FrozenBooleanGets if the entity is fully frozen (it has been in powdered snow for max freeze ticks).
GlowingBooleanGets whether the entity is glowing or not.
HeightNumberGets the entity's height
In LavaBooleanCheck if entity is in lava
In Powdered SnowBooleanCheck if entity is inside powdered snow.
In RainBooleanCheck if entity is in rain
In WaterBooleanReturns true if the entity is in water.
In WorldBooleanChecks if this entity has been spawned in a world.
Inside VehicleBooleanReturns whether this entity is inside a vehicle.
InvisibleBooleanGets whether the entity is invisible or not.
InvulnerableBooleanGets whether the entity is invulnerable or not.
LocationLocationGets the entity's current position
Max Fire TicksIntegerReturns the entity's maximum fire ticks.
Max Freeze TicksIntegerReturns the entity's maximum freeze ticks (amount of ticks before it will be fully frozen)
NameTextGets the name of this command sender
On GroundBooleanReturns true if the entity is supported by a block.
OpBooleanChecks if this object is a server operator
OriginLocationGets the location where this entity originates from.
PassengersList<Entity>Gets a list of passengers of this vehicle.
PersistentBooleanReturns true if the entity gets persisted.
Pick Item StackItemGets the ItemStack that a player would select / create (in creative mode) when using the pick block action on this entity.
Piston Move ReactionPistonMoveReactionReturns the reaction of the entity when moved by a piston.
PitchFloatGets this entity's pitch
Portal CooldownIntegerGets the period of time (in ticks) before this entity can use a portal.
PosePoseGets the entity's current pose.
Removal ReasonRemovalReason{@return the reason this entity was removed}
Remove Event CauseCauseGets the cause used for this entity's remove event.
Scoreboard Entry NameTextGets the string name of the entity used to track it in Scoreboards.
Scoreboard TagsSet<Text>Returns a set of tags for this entity.
SilentBooleanGets whether the entity is silent or not.
SneakingBooleanReturns if the entity is in sneak mode
Sound CategorySoundCategoryGet the SoundCategory this entity will use when playing its sounds.
Spawn CategorySpawnCategoryGet the category of spawn to which this entity belongs.
Swim High Speed Splash SoundSoundGet the Sound this entity makes when splashing in water at high speeds.
Swim SoundSoundGet the Sound this entity makes while swimming.
Swim Splash SoundSoundGet the Sound this entity makes when splashing in water.
TickingBooleanCheck if entity is inside a ticking chunk
Ticks LivedIntegerGets the amount of ticks this entity has lived for.
Tracked BySet<Player>Get all players that are currently tracking this entity.
TypeEntity TypeGet the type of the entity.
Under WaterBooleanCheck if entity is underwater
Unique IdUUIDReturns a unique and persistent id for this entity
ValidBooleanReturns false if the entity has died, been despawned for some other reason, or has not been added to the world.
VehicleEntityGet the vehicle that this entity is inside.
VelocityVectorGets this entity's current velocity
Visible By DefaultBooleanGets whether or not this entity is visible by default.
Visual FireTriStateRetrieves the visual fire state of the entity.
WidthNumberGets the entity's width
WorldWorldGets the current world this entity resides in
XNumberGets the x-coordinate of this entity
YNumberGets the y-coordinate of this entity
YawFloatGets this entity's yaw
ZNumberGets the z-coordinate of this entity

Goes on with: Next

Read Projectile​

projectile.read

Reads the properties of a Projectile

InTypeWhat it is
ProjectileProjectileRepresents a shootable entity.
OutTypeWhat it is
Owner Unique IdUUIDGets the owner's UUID
As StringTextGet this entity as an NBT string.
Custom Name VisibleBooleanGets whether or not the mob's custom name is displayed client side.
DeadBooleanReturns true if this entity has been marked for removal.
EmptyBooleanCheck if a vehicle has passengers.
Entity IdIntegerReturns the network protocol ID for this entity.
Entity Spawn ReasonSpawnReason{@return the org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason that initially spawned this entity or null if not yet spawned}
FacingBlockFaceGet the closest cardinal BlockFace direction an entity is currently facing.
Fall DistanceFloatReturns the distance this entity has fallen
Fire TicksIntegerReturns the entity's current fire ticks (ticks before the entity stops being on fire).
Freeze Ticking LockedBooleanGets if the entity currently has its freeze ticks locked to a set amount.
Freeze TicksIntegerReturns the entity's current freeze ticks (amount of ticks the entity has been in powdered snow).
FrozenBooleanGets if the entity is fully frozen (it has been in powdered snow for max freeze ticks).
GlowingBooleanGets whether the entity is glowing or not.
HeightNumberGets the entity's height
In LavaBooleanCheck if entity is in lava
In Powdered SnowBooleanCheck if entity is inside powdered snow.
In RainBooleanCheck if entity is in rain
In WaterBooleanReturns true if the entity is in water.
In WorldBooleanChecks if this entity has been spawned in a world.
Inside VehicleBooleanReturns whether this entity is inside a vehicle.
InvisibleBooleanGets whether the entity is invisible or not.
InvulnerableBooleanGets whether the entity is invulnerable or not.
LocationLocationGets the entity's current position
Max Fire TicksIntegerReturns the entity's maximum fire ticks.
Max Freeze TicksIntegerReturns the entity's maximum freeze ticks (amount of ticks before it will be fully frozen)
NameTextGets the name of this command sender
On GroundBooleanReturns true if the entity is supported by a block.
OpBooleanChecks if this object is a server operator
OriginLocationGets the location where this entity originates from.
PassengersList<Entity>Gets a list of passengers of this vehicle.
PersistentBooleanReturns true if the entity gets persisted.
Pick Item StackItemGets the ItemStack that a player would select / create (in creative mode) when using the pick block action on this entity.
Piston Move ReactionPistonMoveReactionReturns the reaction of the entity when moved by a piston.
PitchFloatGets this entity's pitch
Portal CooldownIntegerGets the period of time (in ticks) before this entity can use a portal.
PosePoseGets the entity's current pose.
Removal ReasonRemovalReason{@return the reason this entity was removed}
Remove Event CauseCauseGets the cause used for this entity's remove event.
Scoreboard Entry NameTextGets the string name of the entity used to track it in Scoreboards.
Scoreboard TagsSet<Text>Returns a set of tags for this entity.
SilentBooleanGets whether the entity is silent or not.
SneakingBooleanReturns if the entity is in sneak mode
Sound CategorySoundCategoryGet the SoundCategory this entity will use when playing its sounds.
Spawn CategorySpawnCategoryGet the category of spawn to which this entity belongs.
Swim High Speed Splash SoundSoundGet the Sound this entity makes when splashing in water at high speeds.
Swim SoundSoundGet the Sound this entity makes while swimming.
Swim Splash SoundSoundGet the Sound this entity makes when splashing in water.
TickingBooleanCheck if entity is inside a ticking chunk
Ticks LivedIntegerGets the amount of ticks this entity has lived for.
Tracked BySet<Player>Get all players that are currently tracking this entity.
TypeEntity TypeGet the type of the entity.
Under WaterBooleanCheck if entity is underwater
Unique IdUUIDReturns a unique and persistent id for this entity
ValidBooleanReturns false if the entity has died, been despawned for some other reason, or has not been added to the world.
VehicleEntityGet the vehicle that this entity is inside.
VelocityVectorGets this entity's current velocity
Visible By DefaultBooleanGets whether or not this entity is visible by default.
Visual FireTriStateRetrieves the visual fire state of the entity.
WidthNumberGets the entity's width
WorldWorldGets the current world this entity resides in
XNumberGets the x-coordinate of this entity
YNumberGets the y-coordinate of this entity
YawFloatGets this entity's yaw
ZNumberGets the z-coordinate of this entity