Cuberite Forum
Projectiles - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Projectiles (/thread-204.html)



Projectiles - rs2k - 11-02-2011

Not sure where to get started on this. I need to read through and play around with the code that controls motion on MCServer as well as look around to see what bukkit does.

Not really sure how much info like this can help:
https://github.com/Bukkit/CraftBukkit/blob/master/src/main/java/net/minecraft/server/EntityFireball.java
https://github.com/Bukkit/CraftBukkit/blob/master/src/main/java/net/minecraft/server/EntityArrow.java



Seems like the entity is created and sent on a vectored path. Once it hits something something happens and the entity either changes or disappears.


RE: Projectiles - FakeTruth - 11-02-2011

Should be as easy as creating a new entity type by deriving cEntity. You should take a look at cPickup


RE: Projectiles - NiLSPACE - 04-21-2012

it would be usefull if i could use a bow againTongue