Posted February 5, 20223 yr made a modded sword but I was wondering how could I make it summon lightning bolts as soon as I rightclick
February 5, 20223 yr 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 February 5, 20223 yr by Luis_ST
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.