Created
May 6, 2019 12:56
-
-
Save edewit/dbd0e2b280fe8496ed4e181bb594e4c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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