How to create a tool that changes models/blocks upon interaction?

Started by Ultimate Immersion on Wed, 01/26/2022 - 19:06

Topic category: Help with modding (Java Edition)

Last seen on 12:08, 8. Apr 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to create a tool that changes models/blocks upon interaction?
Wed, 01/26/2022 - 19:07 (edited)

Hi, so I'm trying to create an item with procedure to change models of all blocks that I right-click with that item. I already have some blocks that are interactive with right-click as well so in that case the holding an item interaction should be dominant over default one - if that's even possible? How can I create a procedure like this?

Edited by Ultimate Immersion on Wed, 01/26/2022 - 19:07
Last seen on 12:08, 8. Apr 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I found partial solution to…
Thu, 01/27/2022 - 12:04

I found partial solution to the above but:

I already have some blocks with procedure trigger on right click and now I want if player is holding that item and interacts with a block that has right click trigger already, that item has action procedure priority over default right click. Is that possible if so, how?

 

Right now interactive block triggers the action of a normal right click even if I have that item in hand, but on those without additional triggers the item works.