Jump to content

[1.12.2]I want make Sword Skill


Recommended Posts

I want make Sword Skill.

I could cording RightClickEvent and I confirmed to move well.

    public static class ClickRegistryHandler {
        public static void onItemRightClick(PlayerInteractEvent.RightClickItem event){
            Item[] swords = {
            EntityPlayer player = event.getEntityPlayer();
				/* If player have ModsSword in right hand, code will be executed here. */

I need to create **Attack the Mob in the line of sight** code.
But I cant and I don't know how can I implementation it.
※I'm Jap and I cant speak English well, but I couldn't find good information in Japanese web-site. pls help me !!

Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

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