Created
August 13, 2011 01:41
-
-
Save sjl/1143374 to your computer and use it in GitHub Desktop.
Clojurecraft Respawn Handler
This file contains hidden or 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
(def bot (clojurecraft.core/connect clojurecraft.core/minecraft-local "timmy")) | |
(defn dead-handler [bot] | |
[(clojurecraft.actions/chat bot "WHY YOU DO THIS???") | |
(clojurecraft.actions/respawn bot)]) | |
(clojurecraft.events/add-handler bot :dead #'dead-handler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment