01_nearest_entity_walk.py
- Source: copied from
python/test.py.
- Purpose: continuously find nearby mobs and walk nearest-first using
entities.list + goto_entity.
- Run from repo root:
python python/demos/01_nearest_entity_walk.py
02_on_events_chat.py
- Purpose: Discord-style event API (
@client.event) with blocking client.connect().
- Includes handlers for:
on_ready / on_disconnect
on_chat_message / on_system_message
on_player_join / on_player_leave / on_player_death / on_player_respawn
- Run from repo root:
python python/demos/02_on_events_chat.py
- Requires Minecraft client with
pyritone_bridge + Baritone loaded.
- Requires being in-world for entity listing/pathing.
- Use
#pyritone end (or /pyritone end) in-game to terminate active Python websocket sessions.