Skip to content

Action

Syntax

Action syntax is as follows:

target:Action(arguments){tags};

Arguments

Arguments are values seperated by commas.

default:SendMessage("Hello","world!");

Tags

Tag syntax can be thought of as a dictionary:

default:SendMessage("Tags!"){"Alignment Mode" = "Centered", "Inherit Styles" = "True"};
To use a variable as the tag value, a default must be provided immediately after:
default:SendMessage("Tags!"){"Alignment Mode" = global messageMode ? "Centered"};
If you are using the VSCode extension, you can use the autocomplete shortcut (ctrl+space by default) to quickly insert tag names and values.

Arguments and tags are both optional and can be left out, making all of these valid action calls:

default:StopSounds(snd("Pling"));
default:StopSounds{"Sound Source" = "Jukebox/Note Blocks"};
default:StopSounds;

Player Actions

Player actions use the following targets:

  • default
  • killer
  • damager
  • shooter
  • victim
  • allPlayers
  • selected
All player action names
DiamondFire Sign Name Terracotta Name
ActionBar SendActionBar
AddInvRow AddInventoryMenuRow
AdventureMode SetToAdventureMode
AttackAnimation SendAttackAnimation
BlockDisguise DisguiseAsBlock
BoostElytra BoostElytra
ChatStyle SetChatStyle
ClearDispBlock ClearDisplayBlock
ClearInv ClearInventory
ClearItems ClearItems
ClearPotions ClearPotionEffects
ClearScoreboard ClearScoreboard
CloseInv CloseInventory
CombatAttribute SetCombatAttribute
CreativeMode SetToCreativeMode
Damage Damage
DisableBlocks DisableBlockModification
DispHeadTexture DisplayHeadTexture
DisplayBellRing DisplayBellRing
DisplayBlock DisplayBlock
DisplayBlockOpen DisplayBlockOpenedState
DisplayEquipment DisplayEquipmentChange
DisplayFracture DisplayBlockFracture
DisplayGateway DisplayGatewayBeam
DisplayHologram DisplayHologram
DisplayLightning DisplayLightningBolt
DisplayPickup DisplayPickUpAnimation
DisplaySignText DisplaySignText
EnableBlocks EnableBlockModification
ExpandInv ExpandInventoryMenu
FaceLocation FaceLocation
FallingAttribute SetFallingAttribute
ForceFlight ForceFlightMode
GetItemCooldown GetItemCooldown
GiveExhaustion GiveExhaustion
GiveExp GiveExperience
GiveFood GiveFood
GiveItems GiveItems
GivePotion GivePotionEffect
GiveSaturation GiveSaturation
Heal Heal
HealthAttribute SetHealthAttribute
HurtAnimation SendHurtAnimation
InstantRespawn SetInstantRespawn
KBAttribute SetKnockbackAttribute
Kick Kick
LaunchFwd LaunchForward
LaunchProj LaunchProjectile
LaunchToward LaunchTowardLocation
LaunchUp LaunchUp
LoadInv LoadSavedInventory
MiscAttribute SetMiscellaneousAttribute
MobDisguise DisguiseAsMob
MovementAttribute SetMovementAttribute
OpenBlockInv OpenContainerInventory
OpenBook OpenBook
Particle DisplayParticleEffect
ParticleCircle DisplayParticleCircle
ParticleCircleA DisplayAnimatedParticleCircle
ParticleCuboid DisplayParticleCuboid
ParticleCuboidA DisplayAnimatedParticleCuboid
ParticleLine DisplayParticleLine
ParticleLineA DisplayAnimatedParticleLine
ParticleRay DisplayParticleRay
ParticleSphere DisplayParticleSphere
ParticleSpiral DisplayParticleSpiral
ParticleSpiralA DisplayAnimatedParticleSpiral
PlayEntitySound PlaySoundFromEntity
PlaySound PlaySound
PlaySoundSeq PlaySoundSequence
PlayerDisguise DisguiseAsPlayer
RemoveBossBar RemoveBossBar
RemoveInvRow RemoveInventoryMenuRow
RemoveItems RemoveItems
RemovePotion RemovePotionEffect
RemoveScore RemoveScoreboardScore
ReplaceItems ReplaceItems
ResourcePack SendResourcePack
RideEntity RideEntity
RmWorldBorder RemoveWorldBorder
RngTeleport RandomizedTeleport
RollbackBlocks RollBackBlockChanges
SaveInv SaveCurrentInventory
ScoreDefFormat SetScoreboardDefaultNumberFormat
ScoreLineFormat SetScoreboardLineNumberFormat
SendAdvancement SendAdvancement
SendMessage SendMessage
SendMessageSeq SendMessageSequence
SendTitle SendTitle
SendToPlot SendToPlot
SetAbsorption SetAbsorptionHealth
SetAirTicks SetRemainingAir
SetAllowFlight SetAllowFlight
SetAllowPVP SetPvPAllowed
SetArmor SetArmorItems
SetArrowsStuck SetArrowsStuck
SetBossBar SetBossBar
SetChatTag SetChatTag
SetCollidable SetCollidable
SetCompass SetCompassTarget
SetCursorItem SetCursorItem
SetDisguiseVisible SetOwnDisguiseVisibility
SetDropsEnabled SetDeathDropsEnabled
SetEntityHidden SetEntityHidden
SetEquipment SetEquipmentItem
SetExhaustion SetExhaustionLevel
SetExp SetExperience
SetFallDistance SetFallDistance
SetFireTicks SetFireTicks
SetFlying SetFlying
SetFogDistance SetFogDistance
SetFoodLevel SetFoodLevel
SetFreezeTicks SetFreezeTicks
SetGliding SetGliding
SetHandCrafting SetAllowHandCrafting
SetHealth SetCurrentHealth
SetHotbar SetHotbarItems
SetInvName SetInventoryMenuName
SetInventory SetInventoryItems
SetInventoryKept SetInventoryKept
SetInvulTicks SetInvulnerabilityTicks
SetItemCooldown SetItemCooldown
SetMaxHealth SetMaximumHealth
SetMenuItem SetInventoryMenuItem
SetNameColor SetNameColor
SetNamePrefix SetNameAffix
SetNameVisible SetNameTagVisible
SetPlayerTime SetTime
SetPlayerWeather SetWeather
SetRainLevel SetRainLevel
SetReducedDebug SetReducedDebugInfoEnabled
SetRotation SetRotation
SetSaturation SetSaturationLevel
SetScore SetScoreboardScore
SetScoreObj SetScoreboardObjectiveName
SetShoulder SetVisualShoulderParrot
SetSidebar SetSidebarVisible
SetSkin SetSkin
SetSlot SetHotbarSlot
SetSlotItem SetItemInSlot
SetSpawnPoint SetSpawnPoint
SetStatus SetStatus
SetStingsStuck SetBeeStingsStuck
SetTabListInfo SetTabListInfo
SetTickRate SetTickRate
SetVelocity SetVelocity
SetVisualFire SetVisualFire
SetWorldBorder SetWorldBorder
SetXPProg SetXPProgress
ShiftWorldBorder ShiftWorldBorder
ShowInv ShowInventoryMenu
SpectateTarget SpectateTarget
SpectatorCollision SetSpectatorCollision
SpectatorMode SetToSpectatorMode
StopSound StopSounds
SurvivalMode SetToSurvivalMode
Teleport Teleport
TpSequence TeleportSequence
Undisguise Undisguise
Vibration DisplayVibrationEffect
WakeUpAnimation SendWakeUpAnimation
WalkSpeed SetWalkSpeed
Examples
default:GivePotionEffect(pot("Saturation")){"Effect Particles" = "None", "Overwrite Effect" = "False"};

default:SetVisualShoulderParrot{"Shoulder" = "Left", "Type" = "Cyan"};

allPlayers:SendMessage(s"<green>%default<white>has joined!");

selected:SetToCreativeMode;

victim:Heal(game.EventDamage/2);

shooter:GiveItems(item("Arrow"));

Entity Actions

Entity actions use the following targets:

  • selectedEntity
  • defaultEntity
  • killerEntity
  • damagerEntity
  • shooterEntity
  • victimEntity
  • allEntities
  • allMobs
  • projectile
  • lastEntity
All entity action names
DiamondFire Name Terracotta Name
ArmorStandParts SetArmorStandParts
ArmorStandPose SetArmorStandPose
ArmorStandSlots SetArmorStandSlotInteractions
AttachLead AttachLead
AttackAnimation SendAttackAnimation
BDisplayBlock SetBlockDisplayBlock
BlockDisguise DisguiseAsBlock
ClearPotions ClearPotionEffects
CombatAttribute SetCombatAttribute
CreeperCharged SetCreeperCharged
Damage Damage
DispInterpolation SetDisplayInterpolation
DispRotAxisAngle SetDisplayRotationFromAxisAngle
DispRotationEuler SetDisplayRotationFromEulerAngles
DispTPDuration SetDisplayTeleportDuration
DispTranslation SetDisplayTranslation
DisplayBillboard SetDisplayBillboard
DisplayBrightness SetDisplayBrightness
DisplayCullingSize SetDisplayCullingSize
DisplayGlowColor SetDisplayGlowColor
DisplayMatrix SetDisplayTransformationMatrix
DisplayScale SetDisplayScale
DisplayShadow SetDisplayShadow
DisplayViewRange SetDisplayViewRange
EndCrystalBeam SetEndCrystalBeam
Explode Explode
FaceLocation FaceLocation
FallingAttribute SetFallingAttribute
FoxSleeping SetFoxSleeping
FrogEat EatTarget
GetAllEntityTags GetAllTags
GetCustomTag GetTag
GivePotion GivePotionEffect
Heal Heal
HealthAttribute SetHealthAttribute
IDisplayItem SetItemDisplayItem
IDisplayModelType SetItemDisplayModelType
IgniteCreeper IgniteCreeper
InteractResponse SetInteractionResponsive
InteractionSize SetInteractionSize
Jump Jump
KBAttribute SetKnockbackAttribute
LaunchFwd LaunchForward
LaunchProj LaunchProjectile
LaunchToward LaunchTowardLocation
LaunchUp LaunchUp
MiscAttribute SetMiscellaneousAttribute
MobDisguise DisguiseAsMob
MooshroomType SetMooshroomType
MoveToLoc MoveToLocation
MovementAttribute SetMovementAttribute
PlayerDisguise DisguiseAsPlayer
ProjectileItem SetProjectileDisplayItem
Ram RamTarget
Remove Remove
RemoveCustomTag RemoveTag
RemovePotion RemovePotionEffect
RideEntity Ride
SendAnimation SendAnimation
SetAI SetAI
SetAbsorption SetAbsorptionHealth
SetAge SetAnimalAge
SetAllayDancing SetAllayDancing
SetAngry SetAngry
SetArmor SetArmorItems
SetArmsRaised SetArmsRaised
SetArrowDamage SetBaseArrowDamage
SetArrowHitSound SetArrowHitSound
SetArrowNoClip SetArrowNoClip
SetArrowPierce SetArrowPierce
SetAxolotlColor SetAxolotlPattern
SetBaby SetIsBaby
SetBeeNectar SetBeeHasNectar
SetBeeStinger SetBeeHasStinger
SetBulletTarget SetShulkerBulletTarget
SetCarryingChest SetCarryingChest
SetCatResting SetCatResting
SetCatType SetCatType
SetCelebrating SetCelebrating
SetCloudRadius SetPotionCloudRadius
SetCollidable SetCollidable
SetCreeperFuse SetCreeperFuse
SetCreeperPower SetCreeperExplosionPower
SetCustomTag SetTag
SetDeathDrops SetDeathDropsEnabled
SetDigging SetWardenDigging
SetDragonPhase SetDragonPhase
SetDyeColor SetDyeColor
SetEndermanBlock SetEndermanHeldBlock
SetEquipment SetEquipmentItem
SetFallDistance SetFallDistance
SetFireTicks SetFireTicks
SetFishPattern SetTropicalFishPattern
SetFishingTime SetFishingWaitTime
SetFoxLeaping SetFoxLeaping
SetFoxType SetFoxType
SetFreezeTicks SetFreezeTicks
SetFriction SetFriction
SetFrogType SetFrogType
SetGliding SetGliding
SetGlowSquidDark SetGlowSquidDarkTicks
SetGlowing SetGlowing
SetGoatHorns SetGoatHorns
SetGoatScreaming SetGoatScreaming
SetGravity SetGravity
SetHealth SetCurrentHealth
SetHorseJump SetHorseJumpStrength
SetHorsePattern SetHorsePattern
SetInvisible SetInvisible
SetInvulnerable SetInvulnerable
SetItem SetItem
SetLlamaColor SetLlamaColor
SetMarker SetMarker
SetMaxHealth SetMaximumHealth
SetMinecartBlock SetMinecartBlock
SetMobSitting SetSitting
SetName SetCustomName
SetNameColor SetNameColor
SetNameVisible SetNameVisible
SetPandaGene SetPandaGene
SetPandaOnBack SetPandaOnBack
SetPandaRolling SetPandaRolling
SetPandaSadTicks SetPandaSadTicks
SetParrotColor SetParrotColor
SetPersistent SetPersistent
SetPickupDelay SetPickupDelay
SetPose SetPose
SetProfession SetVillagerProfession
SetProjSource SetProjectileShooter
SetRabbitType SetRabbitType
SetRearing SetRearing
SetRiptiding SetRiptiding
SetRotation SetRotation
SetSaddle SetWearingSaddle
SetSheepSheared SetSheepSheared
SetShulkerPeek SetShulkerPeekPercent
SetSilenced SetSilenced
SetSize SetSize
SetTarget SetTarget
SetVelocity SetVelocity
SetVexCharging SetVexCharging
SetVillagerBiome SetVillagerBiome
SetVillagerExp SetVillagerExperience
SetVisualFire SetVisualFire
SetWardenAnger SetWardenAngerLevel
SetWitherInvul SetInvulnerabilityTicks
ShearSheep ShearSheep
SheepEat EatGrass
SnifferState SetSnifferState
SnowmanPumpkin SetSnowGolemPumpkin
TDispBackground SetTextDisplayBackground
TDisplayAlign SetTextDisplayTextAlignment
TDisplayLineWidth SetTextDisplayLineWidth
TDisplayOpacity SetTextDisplayTextOpacity
TDisplaySeeThru SetTextDisplaySeeThrough
TDisplayShadow SetTextDisplayTextShadow
TDisplayText SetTextDisplayText
Tame Tame
Teleport Teleport
Undisguise Undisguise
UseItem UseItem
Examples
defaultEntity:Teleport(default.Location + vec(0,10,0));

defaultEntity:EatGrass;

selectedEntity:Damage(5);

projectile:SetArrowNoClip{"Has NoClip" = "Enable"};

allMobs:FaceLocation(default.Location)

lastEntity:SetTag("owner","%default");

Game Actions

Game actions use the game target.

All game action names
DiamondFire Sign Name Terracotta Name
ApplyTransaction ApplyTransaction
BlockDropsOff DisableBlockDrops
BlockDropsOn EnableBlockDrops
BoneMeal BoneMealBlock
BreakBlock BreakBlock
CancelEvent CancelEvent
ChangeSign ChangeSignText
ClearContainer ClearContainer
ClearItems ClearContainerItems
CloneRegion CloneRegion
DiscordWebhook SendDiscordWebhookMessage
Explosion CreateExplosion
FallingBlock SpawnFallingBlock
FillContainer FillContainer
Firework SpawnFirework
GenerateTree GenerateTree
LaunchProj LaunchProjectile
Lightning SummonLightning
LockContainer SetContainerLock
RemoveItems RemoveContainerItems
ReplaceItems ReplaceContainerItems
SetBiome SetBiome
SetBlock SetBlock
SetBlockData SetBlockData
SetBlockGrowth SetBlockGrowth
SetBrushableItem SetItemInBrushableBlock
SetCampfireItem SetCampfireItem
SetContainer SetContainerContents
SetContainerName SetContainerName
SetEventDamage SetEventDamage
SetEventHeal SetEventHealAmount
SetEventProj SetEventProjectile
SetEventSound SetEventSound
SetEventXP SetEventExperience
SetExhaustion SetEventExhaustion
SetFurnaceSpeed SetFurnaceCookTime
SetHead SetPlayerHead
SetItemInSlot SetItemInContainerSlot
SetLecternBook SetLecternBook
SetRegion SetRegion
ShulkerBullet SpawnShulkerBullet
SignColor SetSignTextColor
SpawnArmorStand SpawnArmorStand
SpawnBlockDisp SpawnBlockDisplay
SpawnCrystal SpawnEndCrystal
SpawnEnderEye SpawnEyeOfEnder
SpawnExpOrb SpawnExperienceOrb
SpawnFangs SpawnEvokerFangs
SpawnInteraction SpawnInteractionEntity
SpawnItem SpawnItem
SpawnItemDisp SpawnItemDisplay
SpawnMob SpawnMob
SpawnPotionCloud SpawnAreaOfEffectCloud
SpawnTNT SpawnPrimedTNT
SpawnTextDisplay SpawnTextDisplay
SpawnVehicle SpawnVehicle
TickBlock RandomTickBlock
UncancelEvent UncancelEvent
WebRequest SendWebRequest
WriteTransaction WriteTransaction
Examples
game:SpawnMob(item("zombie_spawn_egg"),game.EventBlockLocation);

game:CancelEvent;

game:SummonLightning(victim.Location);

game:SetBlock(loc(10,50,10),item("beacon"));