Jump to content

how can I make a sword that summons lightning strikes


Recommended Posts

overwrite Item#use in your Item class, if you want to summon the LightningBolt only if the Item is used on a Block overwrite Item#useOn,
then create there a new LightningBolt and add it via Level#addFreshEntity to the world

Edited by Luis_ST
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.