Macuyiko / minecraft-python

A Jython driven plugin and interpreter system for Minecraft (on top of Spigot)
BSD 3-Clause "New" or "Revised" License
227 stars 29 forks source link

ImportError: cannot import name Particle #52

Closed LMS5413 closed 2 years ago

LMS5413 commented 3 years ago

When I put the following code

from mcapi import *

explosion(lookingat(player("LM5413")), power=2)

gives this error. imagem_2021-09-28_124612

Macuyiko commented 3 years ago

Not able to replicate this using Spigot 1.17.1. Which server are you using?

LMS5413 commented 3 years ago

Not able to replicate this using Spigot 1.17.1. Which server are you using?

1.8.8

Macuyiko commented 3 years ago

Particles were probably not in 1.8.8 yet? mcapi.py tries to be compatible with the current releases. If you're working with an older Spigot version, I'd suggest to uncomment the Particle (and perhaps other) import.

It might be a good idea to make this a bit more smarter/flexible in the future instead of hard failing, tho.