Sound of entity still plays

Started by Matikar on

Topic category: Help with MCreator software

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sound of entity still plays

Hello, I have created a mob that has an AI villager, I have also put a GUI to trade, I have put his Trade sound there, but when I click on it, besides the Trade sound, it puts the entity.villager.no sound there. What should I do so that the entity.villager.no sound does not sound?

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
verify if you add the sound…
Thu, 06/26/2025 - 16:58

verify if you add the sound in a procedure. I not, give me a screenshot of all related mod elements

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I created a procedure on the…
Fri, 06/27/2025 - 05:18

I created a procedure on the right clicked on the entity and a procedure: If --> not --> Item in main-hand of Event/Target entity = Spawn egg of custom entity OR Item in off-hand of Event/Target entity = Spawn egg of custom entity

Do --> Play sound Trade with custom entity at x:x y:y z:z level: 1 height: 1 category: neutral.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I see what the…
Fri, 06/27/2025 - 07:07

I think I see what the problem is: you create a mob with villager AI, which is not very optimized because you don't assign normal trades, and Minecraft thinks that villager has no trades, so it plays the "no" sound.

You have two options:

  • You can delete the mob and create a villager type instead. It'll still work, but you can't add extra behavior.
  • Of course you don't use ai template, because it can't  add trade because it's only ai template, not full behaviour. In this case, you'll need to recreate trading system. I can help you with that if you need.

Also, for spawning when using egg, I recommend you to use spawn entity... blocks.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I removed the villager AI…
Fri, 06/27/2025 - 12:55

I removed the villager AI and it's working now. Thank you for your advice.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no problems
Fri, 06/27/2025 - 14:49

no problems