Trident like weapon

Started by Taron on Sun, 01/19/2020 - 21:22

Topic category: Help with modding (Java Edition)

Last seen on 21:22, 19. Jan 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Trident like weapon
Sun, 01/19/2020 - 21:22

I want to make a throwable weapon like a trident/snowball that, when thrown, removes itself from you hand and after hitting a block or entity, returns to your hand. Any idea how to make this or if it is even possible?

Thanks.

Last seen on 02:20, 17. Sep 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First half: Easy. If you don…
Mon, 01/20/2020 - 00:18

First half: Easy. If you don't know, in the create mod element tab, there is one called Ranged item. Click on it. When you select item for ammo, you'll notice that you can't select what you're trying to make, because it doesn't exist. To make the item deal damage when used in melee, make sure to tick the check box next to melee damage. Put anything in the ammo require slot, and same for item representing texture of bullet. Once you click save mod element, go back through it and you will be able to change the bullet texture and ammo item to itself. As for returnable, I don't think that's possible, and if it is, then you will almost definitely need to code raw Java to make it.