Sound plays on false if condition

Started by dabbeddabdabb on

Topic category: Help with MCreator software

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sound plays on false if condition

im working on a personal mod for myself, I have this "if" condition that executes on player tick, however it seems that sounds still end up playing even if the if condition is false? or at least that's what appears to be going on since no further parts of the procedure seem to occur after the initial sound. im not sure on why this is occurring. The procedure does work ok for the most part, it just appears that sometimes the sound goes off without anything else happening. procedure is below:

 

https://imgur.com/a/n3rIQ4G

 

 

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
any help would be greately…
Wed, 09/18/2024 - 12:48

any help would be greately appreciated as ive still not found a fix for this

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey dabbeddabdabb, same…
Fri, 11/29/2024 - 01:50

Hey dabbeddabdabb, same issue happened to me. Looks to be something that could be possibly MCreator 2024.3 related (although I haven't tried it with any different versions). I've tested it with versions of my mod for Forge 1.20.1 and NeoForge 1.21.1, both having the same problem.

 

In my case using /playsound through "execute command" block instead of the "play sound" one did the trick. Less than ideal, but I guess it gets the job done.

 

Hope it helps at least one person who's going to come across this thread :)