I can't open an interface (GUI) from a right click on an entity.

Started by Méliodas_75 on

Topic category: Advanced modding

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't open an interface (GUI) from a right click on an entity.
Mon, 05/22/2023 - 17:10 (edited)

Good morning,

I came here to ask a question that I did not get answered in any forum.

 

I explain my case:

 

I'm on version 2023.1 of MCreator on a Macbook which works perfectly.

 

I want to make a mod that copies the "Minecraft Comes Alive" mod a bit but to do that, I need to make an interface (GUI) that opens with a right click on an entity (the villagers). The problem is that when I put the procedure, I put the block "A player right clicks on an entity", then the block "if, do", the "if" is linked to "Event/target entity is tagged as an entity tag "minecraft:villager", and have it linked to "Open screen for Event/Target Entity from location x y z GUI: VillagerInterface1.

 

I don't know if it's clear but that's it.

 

The problem is that when I run the game (with MCreator), it doesn't work.

 

Does anyone know why??

 

Can someone help me out??

 

Thank you for your understanding.

Edited by Méliodas_75 on Mon, 05/22/2023 - 17:10
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just tested to put…
Tue, 05/23/2023 - 15:51


I just tested to put particles with the first block (green) and it works, now the goal is to spot that it is indeed a villager but I can't do it and I don't know how to do otherwise that I did.