Jump to content

Recommended Posts

Posted

I really need help making this plugin work since i've tried different stuff but i doesnt work so i need some help in making a sword shoot fireballs when you right click. Please help me I would really appreciate it if you do. I will also give you credit on helping me on the plugin. I just need help making a sword shoot a fireball when right clicking the sword.

Posted

I guess that you are trying to make a bukkit / spigot server Plugin. This is not the correct forum for that.

A good place to start would be:

https://www.spigotmc.org/wiki/spigot-plugin-development/

 

In order to make your plugin you would have to register an event that fires when a player uses a sword.

That event would spawn a fireball entity and launch it into the direction the player is looking.

 

If you need help coding that plugin go here:

https://www.spigotmc.org/forums/spigot-plugin-development.52/

 

Good luck! ;)

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

Making it in forge is 100% possible.

 

Mark your @Mod with:

acceptRemoteVersions = "*"

serverSideOnly = true

 

Use @SubscribeEvent on ItemUseEvent (idk naming) - check if you are holding some sword and call World#spawnEntityInWorld to spawn fireball entity. Examples on how to can be found in code (you want to use constructor with player param).

1.7.10 is no longer supported by forge, you are on your own.

Posted

Hey Ernio I am currently making a 1.7.10 mod and i want to make a wand that actually shoots fireball like the sword  creeperking1_1 mention but i am currently confused so can you please pm me the code :D

Posted

Hey Ernio I am currently making a 1.7.10 mod and i want to make a wand that actually shoots fireball like the sword  creeperking1_1 mention but i am currently confused so can you please pm me the code :D

 

https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentFireball.java#L66-L78

The class isn't an Item class, but it utilizes the same methods.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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