Started by
Matikar
on
Topic category: Help with MCreator software
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?
verify if you add the sound in a procedure. I not, give me a screenshot of all related mod elements
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.
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:
Also, for spawning when using egg, I recommend you to use
spawn entity...
blocks.I removed the villager AI and it's working now. Thank you for your advice.
no problems