Skip to content

TensegrityBlockxels/Outcrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Outcrop

API for Minecraft Bedrock websockets.

Example - listening and handling custom events

import asyncio, websockets
from core import OutcropEvent, OutcropAPI, OutcropEvents
from core import OutcropEvents

def chat(data):
    print(data)


async def main():
    async with websockets.serve(OutcropAPI().event(OutcropEvents.PlayerMessage).connect(chat).handle, "", 3001):
        await asyncio.Future()

asyncio.run(main())

Installation

git clone https://github.com/TensegrityBlockxels/Outcrop.git
  • Windows
install.bat
  • Linux
install.sh

Dependencies

  • websockets == 10.3