Skip to content

Question on generating entities #55

@edonaldson

Description

@edonaldson

I don't know if this is the best/right place to leave these kind of questions. If not, please direct me to the correct place, and I will glad ask them there.

I'm trying to generate entities to populate some structures that I am creating. I would like to do something like the following, but I cannot get it to work:

/js self.world.spawnEntity(self.location.clone().add(10,0,0),org.bukkit.EntityType.PIG)

As a simple example, I was hoping this would spawn a pig 10 blocks from me. But I get an error.

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