Skip to content

mcpi requesterror. #64

Description

@JamesTheFurryCoder

I am trying to use the spawn entity function and it's not working. here is the code.

from mine import *

mc = Minecraft()

mc.spawnEntity(10,10,10,VILLAGER)

Here's the error I am getting

Traceback (most recent call last):
  File "C:\Users\Name\AppData\Roaming\.minecraft\mcpipy\camera.py", line 13, in <module>
    mc.spawnEntity(10,10,10,VILLAGER)
  File "C:\Users\Name\AppData\Roaming\.minecraft\mcpipy\mcpi\minecraft.py", line 264, in spawnEntity
    return int(self.conn.sendReceive("world.spawnEntity", args))
  File "C:\Users\Name\AppData\Roaming\.minecraft\mcpipy\mcpi\connection.py", line 134, in sendReceive
    return self.receive()
  File "C:\Users\Name\AppData\Roaming\.minecraft\mcpipy\mcpi\connection.py", line 128, in receive
    raise RequestError("%s failed"%self.lastSent.strip())
mcpi.connection.RequestError: world.spawnEntity(10,10,10,Villager) failed

Is there anything I can do to resolve this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions