How to make an item change textures when right-clicked?

Started by 4nrMike on

Topic category: Help with modding (Java Edition)

Last seen on 22:28, 4. May 2018
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item change textures when right-clicked?

I'm trying to make a lightsaber mod, so my idea is when you right-click with the lightsaber in your hand it alternates to its other texture (either the activated texture or the deactivated one). Any idea on how to do this? Thanks!

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's really easy just add an…
Wed, 05/02/2018 - 10:39

It's really easy

just add an event so when you right click with the deactivated saber in hand, this will be removed from invetory and the activated one will be added (create a stack event)

The same when you have the activated one in hand

Last seen on 22:28, 4. May 2018
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, this really…
Wed, 05/02/2018 - 23:33

Thank you, this really helped!

Last seen on 20:38, 30. Dec 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just a little problem that's…
Sun, 05/06/2018 - 22:32

just a little problem that's bothering me, Kane

the item is removed, but the item you receive is moved to the first empty space in your inventory, as if it was given to you (because it is)

do you know some way to create to states to an item, like metadatas?

 

Last seen on 13:29, 20. Mar 2023
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set <item input> entities…
Sat, 09/05/2020 - 21:38

set <item input> entities main hand

Last seen on 13:29, 20. Mar 2023
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entities procedure tab
Sat, 09/05/2020 - 21:39

entities procedure tab

Last seen on 14:59, 14. Feb 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do I do if I want the…
Tue, 07/26/2022 - 17:15

What do I do if I want the item to be spent?