Started by
fastblast64
on
Topic category: Help with Minecraft modding (Java Edition)
so im trying to make a staffs and i have the main lightning and right click during tool use down, but i cant seem to figure out how to make the lightning or other element hit where im clicking rather than where im standing i can only seem to constantly kill my self rather than shoot something else with the rod i could do a variable that makes me invincible while the staff is in my hand ,but while its in my hand i also cant take damage period which invincibility isnt the goal.if someone could help or know how to id appreciate the help
You can make it right click on block(which does hand location) and make it give you invincibility before it strikes lightning for 1 second.
If not then make it kill you but make a upgrade sort of thing which gives you the ability to become invincible for a second(Its what I am making for my mod).
I tried!
If you want a bigger explanation then ask me!
i get what your saying i have accomplished that but im trying to go even futher to where im looking rather than just in my general radius
You can make it with commands.
When right clicked on air -
/execute @e[rm=1,r=10] ~ ~ ~/summon lightning_bolt
i think that shoukd work. It will strike all entities with lightning in a radius of 10 blocks
You'd also need a 'type=!player' argument to avoid striking yourself.
thx for the help
thx