GUI bound to mob doesn't work now.

Started by VioletPyre on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI bound to mob doesn't work now.

Hello ! I updated my mod to 1.15.2-forge , MCreator 2020.4 and now my mod that used to have "Chat boxes" bound to them won't open !

Here's how it's supposed to work :
1- You defeat the boss, it spawns a variant of them fallen on the ground.
2- When you right-click on them it is supposed to open a GUI with a image 256x256 pixels with some of the boss's text lines.
3- When you close their chat box after reading them, it dies and drop the loot and unlocks story events depending on which boss it is.

The problem is at the #2 : when right-clicked, it doesn't open the GUI. I did use an item to open it instead to test and it works fine. I think the game tries to open it to the mob, what can i do ???

Thanks in advance for any help. Don't be shy to ask for some clarification.

Please report the bug on…
Thu, 11/05/2020 - 19:08

Please report the bug on GitHub, make sure to include a minimal reproducible example (your workspace is not this, minimal example), and follow all other rules. I will try to fix this before 2020.5 if it turns out it is a bug.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay Klemen ! I will try…
Thu, 11/05/2020 - 19:42

Okay Klemen ! I will try. But before, what specifically did you meant with "Minimal reproducible example" ?

Would that be okay if i put :
1- Create a GUI with some text and an image with 256x256 pixels
2- create a mob and put the trigger "On mob right-clicked" a procedure to open the GUI you just made
3- Test it

Like this ? or in some other way ?

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hm, nevermind, i'll do…
Thu, 11/05/2020 - 22:08

hm, nevermind, i'll do something as i think i've understood from the rules : I will "recreate" the "mod element" in a new workspace to show off what should be checked.

I'll just have to recreate the boss without its attack since they don't matter, make that if it dies we can try to open the GUI. You might see my post sometime soon after i'm done.