Code-Magic Combos
import time from mcpi import minecraft mc = minecraft.Minecraft.create(address="127.0.0.1", name="steve") active_spell = "gold" while True: for chatpost in mc.player.pollChatPosts(): active_spell = chatpost.message for blockhit in mc.player.pollProjectileHits(): if active_spell == "gold": pos = blockhit.pos gold_block_id = 41 mc.setBlock(pos.x, pos.y, pos.z, gold_block_id) elif active_spell == "teleport": pos = blockhit.pos mc.player.setPos(pos.x, pos.y, pos.z) else: mc.postToChat("Your spell '"+active_spell+"' was not found. Currently we only support the spells 'gold' and 'teleport'") time.sleep(1)