Custom Music Disc Does not create RedStone Signal When Played

Started by JulianR on Mon, 04/25/2022 - 20:16

Topic category: Help with MCreator software

Last seen on 01:36, 17. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Music Disc Does not create RedStone Signal When Played
Mon, 04/25/2022 - 20:16

Hi there-

we've successfully made our own music discs, but just discovered that they don't seem to generate any redstone signal when they're played- e.g. a comparator connected to a lamp doesn't light up.

When a built in music disc is played, the lamp lights as expected.

Did we miss a setting in MCreator?

Is there some custom code that needs to be added? If yes, what is it, and on which trigger should it be added? :-)

Thanks in advance!

Last seen on 19:40, 20. May 2022
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you edit the code of your…
Mon, 04/25/2022 - 23:09

If you edit the code of your disc element, you should see something like

public DiscItem() {
    super(0, ForgeRegistries.SOUND_EVENTS etc.

You can replace the 0 with the comparator output value

Last seen on 01:36, 17. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you @SomeoneEls! That…
Mon, 05/09/2022 - 20:17

Thank you @SomeoneEls!

That worked perfectly!