Need help about procedure (can't figure how to do a specific thing)

Started by Hatmenfromspace on

Topic category: Help with MCreator software

Active 5 years ago
Joined May 2020
Points:
631

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Need help about procedure (can't figure how to do a specific thing)
Wed, 05/06/2020 - 16:24 (edited)

Hello, I need help about procedure because I cant' figure how to make something.

Ive been working on a cassette tape player mod since a while now for making pixel arts etc.. But now I need a gui to make things work.

Imagine : You put a tape, then a list of song (that are custom songs) appears and you can select play / stop them.

Thanks for your help.

Edited by Hatmenfromspace on Wed, 05/06/2020 - 16:24
Active 1 month ago
Joined May 2019
Points:
1216

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 2
  • MCreator plugins: 1
  • Comments: 839
link block to gui make imput…
Fri, 05/22/2020 - 16:42

link block to gui

make imput slot

two buttons: play and stop

and text that says:Now playing:<BNBT:text:Yoursong>

if slot item= tape1, then set bnbt Yoursong to tape1

play procedure:if yoursong=tape one, then playsound tape1

stop procedure: use stopsound command

 

Also, you can do it this way, get many input slots

so you can even search for songs!