Hello,
I’m trying to get an Item Frame Entity that’s placed at a specific predetermined location in the world. How do I get the entity stored at a location?
Hello,
I’m trying to get an Item Frame Entity that’s placed at a specific predetermined location in the world. How do I get the entity stored at a location?
Firgured it out!
for (Entity entity : .getExtent().getEntities()) {
if(entity.getType().getName() == “item_frame”)
//do stuff
}
Sponge.getServer().getWorld(worldName).get().getNearbyEntities(new Vector3d(x, y, z), 1);
will return every Entities at x, y, z with a distance of 1 block. Then iretate through it to get the one that you want