Skip to content

Instantly share code, notes, and snippets.

@edewit
Created May 6, 2019 12:56
Show Gist options
  • Save edewit/dbd0e2b280fe8496ed4e181bb594e4c2 to your computer and use it in GitHub Desktop.
Save edewit/dbd0e2b280fe8496ed4e181bb594e4c2 to your computer and use it in GitHub Desktop.
const storeys = require('minecraft-storeys');
const eventBusURL = 'http://localhost:8080/eventbus';
const code = '';
(async () => {
const minecraft = new storeys.MinecraftProvider().connect(eventBusURL);
await minecraft.login(code);
const registration = await minecraft.whenEntityRightClicked("joe");
registration.on().subscribe(async response => {
await minecraft.showTitle(response.playerUUID, "hello my little friend");
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment