Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    @minecraft/server

    Before events

    Before events in @minecraft/server.

    26 events · 3 interfaces · 24 typed only
    On this page

    53 pages in @minecraft/server.

    BeforeJoinEventInterfaceBasalt's own (PowerNukkitX's PlayerLoginEvent): a login, verified, before the resource packs.server.beforeEvents.beforeJoin ChatSendBeforeEventInterfaceworld.beforeEvents.chatSend EffectAddBeforeEventInterfaceAn effect about to start on a player, from a potion, command or plugin.world.beforeEvents.effectAdd EntityDieBeforeEventInterfaceA mob about to die.server.beforeEvents.entityDie EntityHurtBeforeEventInterfaceworld.beforeEvents.entityHurt EntityRemoveBeforeEventInterfaceA mob about to leave the world: killed, despawned or removed.world.beforeEvents.entityRemove ExplosionBeforeEventInterfaceAn explosion about to break blocks.world.beforeEvents.explosion ItemUseBeforeEventInterfaceThe held item used in the air, before it's eaten, drawn or thrown.world.beforeEvents.itemUse PlayerBreakBlockBeforeEventInterfaceworld.beforeEvents.playerBreakBlock PlayerChangeSkinBeforeEventInterfaceA skin change before anyone sees it; cancelled, the player keeps the old one.world.beforeEvents.playerChangeSkin PlayerCommandBeforeEventInterfaceA command a player typed, before it runs.server.beforeEvents.playerCommand PlayerDieBeforeEventInterfaceA player about to die.server.beforeEvents.playerDie PlayerDropItemBeforeEventInterfaceCancelled, the item goes back into the inventory.world.beforeEvents.playerDropItem PlayerEmoteBeforeEventInterfaceA player about to play an emote; cancelled, nobody sees it.world.beforeEvents.playerEmote PlayerGameModeChangeBeforeEventInterfaceworld.beforeEvents.playerGameModeChange PlayerHurtBeforeEventInterfaceEntityHurtBeforeEvent for players alone, with the knockback.world.beforeEvents.playerHurt PlayerInteractWithBlockBeforeEventInterfaceworld.beforeEvents.playerInteractWithBlock PlayerInteractWithEntityBeforeEventInterfaceworld.beforeEvents.playerInteractWithEntity PlayerLeaveBeforeEventInterfaceworld.beforeEvents.playerLeave PlayerMoveBeforeEventInterfaceCancelled, the player is put back; a changed toLocation sends them there.world.beforeEvents.playerMove PlayerPickupItemBeforeEventInterfaceCancelled, the item stays where it is.world.beforeEvents.playerPickupItem PlayerPlaceBlockBeforeEventInterfaceworld.beforeEvents.playerPlaceBlock PlayerRespawnBeforeEventInterfacelocation, the feet, may be moved.world.beforeEvents.playerRespawn PlayerTeleportBeforeEventInterfacetoLocation, the feet, may be moved.world.beforeEvents.playerTeleport PlayerViolationBeforeEventInterfaceCancelled, the player stays and the check starts counting again.world.beforeEvents.playerViolation WeatherChangeBeforeEventInterfaceThe weather about to turn, by its cycle, a command or a plugin.world.beforeEvents.weatherChange

    Declared so plugins written against the full Mojang API type-check. Most are not backed by Basalt yet.