Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

975 B
Raw Blame
{
  "hooks": [
    {
      "name": "player_changed_dimension",
      "target": "horizon_client::game::native_hooks::Game<'_>::native_player_changed_dimension",
      "neoforge": "PlayerEvent.PlayerChangedDimensionEvent",
      "side": "server"
    }
  ],
  "rust_summary": "a player changing dimension (`native_player_changed_dimension`).",
  "doc_summary": "a player changing dimension: `native_player_changed_dimension(player, name, from, to)` is heard once per move of a server's player into another level, when the move has ended (a portal's exit found and the player standing there, a command's teleport landed, a respawn in another level placed for good), with `from` and `to` as dimension ids (`minecraft:overworld`, `minecraft:the_nether`, `minecraft:the_end`) and the player's state swapped in so that `native_tell` and the other helpers reach them. A move within a level is not heard. Bundles that use it need `\"hooks\": @API:native_player_changed_dimension@`."
}