[Solved] How to launch entities

Hey, just out of curiosity, is there a way to launch entities?

In bukkit you just did it like so

entity.setVelocity(direction);

Yes, it’s a little bit difficult under Sponge, but unfortunately, the feature isn’t implemented at the moment.
The code would be:

entity.getOrCreate(VelocityData.class).get().setVelocity(Vector3D Object);

Note: This code returns an exception, because the Velocity feature isn’t implemented in SpongeAPI at the moment :wink:

Hope I helped you :smile:

Thanks. Must have not seen that

A lot of features with Sponge works like this, like items name, lore … Get ready to see this again ^^
Don’t forget to change the title to “[SOLVED]” :wink:

I knew a lot of features worked like this

Sponge Web? Please move this to a more appropriate sub forum (@FerusGrim?)

Edit: All sorted

I’m sure I clicked plugin development when creating this

Yup, I checked in “Plugin Development” category to find this topic.