Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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.

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.

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.