hi, im trying to make an energy sword for my halo minecraft mod and cant seem to figure out how to make it ignite-solved

Started by DeRokerij on

Topic category: Help with modding (Java Edition)

Last seen on 11:58, 17. Nov 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi, im trying to make an energy sword for my halo minecraft mod and cant seem to figure out how to make it ignite-solved
Wed, 01/11/2023 - 17:34 (edited)

i cant quite seem to find out how i can get an item to change into a different time on a right click basically, if anyone has any ideas on this it would be most helpfull

Edited by DeRokerij on Wed, 01/11/2023 - 17:34
Last seen on 18:43, 8. Jan 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a mod with a lot of…
Sat, 11/12/2022 - 13:26

I have a mod with a lot of weapons that have abilities, and I found that the on right click procedure trigger for regular tools doesn't really work. So here's what I would recommend:

Make a ranged item for the inactive sword. Make it have no ammunition and have the swapping procedure on the "When item used" prompt. Set the projectile texture to air and have it deal no damage and knockback. You can set melee damage if you want, but this is a surefire way to make right click events work.

For the active one, you can do the same thing and set more melee damage, or you can make a tool. If you want to be able to deactivate it again, make it a ranged item as well and set damage.

 

If you want either of these to do something when you hit enemies (which ranged items do not have a procedure trigger for), create a procedure with the global trigger "entity attacked" and then have it check if the source entity is holding the item. Then do whatever effects you want on the event target entity.

Let me know if any of this doesn't work.

Last seen on 11:58, 17. Nov 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you ill try that
Sat, 11/12/2022 - 14:20

thank you ill try that

Last seen on 11:58, 17. Nov 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it did thank you, got it to…
Sun, 11/27/2022 - 12:35

it did thank you, got it to work with that