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

Started by 4nrMike on Sun, 04/29/2018 - 21:05

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make an item change textures when right-clicked?
Sun, 04/29/2018 - 21:05

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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

Thank you, this really helped!

Last seen on 01:12, 24. Nov 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:33, 20. Nov 2020
Joined Jan 2020
User points:

User statistics:

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

set <item input> entities main hand

Last seen on 03:33, 20. Nov 2020
Joined Jan 2020
User points:

User statistics:

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

entities procedure tab