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

Started by 4nrMike on

Topic category: Help with Minecraft modding (Java Edition)

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!

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

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!

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?

 

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

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

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?