Jump to content

Sound Silencing


PythonHunter

Recommended Posts

Hi, I was wondering how would one make it so entities that are players would play no sound when walking. Basically I want to make it so when I am on a server, all other players' footsteps generate no sound? I also would like this mod to be client side only since I am not the owner of the servers I go on. The reason why I am making this mod is because whenever I am on a popular server with thousands of people, it gets noisy in the lobbies when everyone is moving around. However, I don't want to just turn off player sounds since there are other sounds that I do want to keep. Also I play using 1.12.2 version of Minecraft with forge. The code I have tried is

Also, assume in the following below that instead of silence, I want pig noises, but in actuality I want no noise so I would probably make a custom ogg file that is well, silence.

 

package net.mcreator.silencermod.procedure;

import net.minecraft.world.World;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.Entity;

import net.mcreator.silencermod.ElementsModName;
import net.minecraft.entity.player.EntityPlayerMP;

@ElementsModName.ModElement.Tag
public class ProcedureSilencer extends ElementsModName.ModElement {
	public ProcedureSilencer(ElementsModName instance) {
		super(instance, 1);
	}

	public static void executeProcedure(java.util.HashMap<String, Object> dependencies) {
		if (dependencies.get("entity") == null) {
			System.err.println("Failed to load dependency entity for procedure Silencer!");
			return;
		}
		if (dependencies.get("x") == null) {
			System.err.println("Failed to load dependency x for procedure Silencer!");
			return;
		}
		if (dependencies.get("y") == null) {
			System.err.println("Failed to load dependency y for procedure Silencer!");
			return;
		}
		if (dependencies.get("z") == null) {
			System.err.println("Failed to load dependency z for procedure Silencer!");
			return;
		}
		if (dependencies.get("world") == null) {
			System.err.println("Failed to load dependency world for procedure Silencer!");
			return;
		}
		Entity entity = (Entity) dependencies.get("entity");
		int x = (int) dependencies.get("x");
		int y = (int) dependencies.get("y");
		int z = (int) dependencies.get("z");
		World world = (World) dependencies.get("world");
		if ((entity instanceof EntityPlayerMP)) {
			world.playSound((EntityPlayer) null, x, y, z,
					(net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.pig.hurt")),
					SoundCategory.MASTER, (float) 1, (float) 1);
		}
	}
}
Edited by PythonHunter
Link to comment
Share on other sites

3 minutes ago, PythonHunter said:

What do you mean show "proof"?

If you want us to provide support for either latest or LTS and you originally posted a topic for a legacy version, you need to show some kind of evidence that you ported to one of these versions.

3 minutes ago, PythonHunter said:

And why can't you give support?

Those are the rules of the forums. Even tells you which versions are supported in the blue info bar up top.

1 minute ago, PythonHunter said:

Also where could I find what I am looking for if I want it to be 1.12.2, cause there must be somehwere that supports help for this mc version, right?

Probably, but you would have to look for it yourself. Apologies I can't be of any more assistance.

Edited by ChampionAsh5357
Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • ”# +256752079972 !!!!” DEATH SPELLS IN UK, USA, AUSTRALIA ,NORWAY, ITALY, POLAND, SWEDEN, UAE, INDIANA, RUSSIA, UKRAINE, WORLDWIDE +256752079972 INSTANT DEATH SPELL CASTER / REVENGE SPELL/ VOODOO SPELLS IN USA.TRUSTED WITCHCRAFT AND BLACK MAGIC SPELLS CASTERS powerful voodoo , voodoo DEATH SPELL /voodoo, REVENGE SPELLS CASTER IN U.S.A U.K, SWITZERLAND,AMERICA,ENGLAND, CANADA. INSTANT DEATH SPELLS TO KILL ENEMIES +256752079972 Dr Mama Zola, black magic Revenge spells that work overnight or by accident i? Cast these strongest black magic revenge death spells that work fast overnight to kill ex lover, husband, wife girlfriend Enemies overnight without delay. It doesn’t matter whether he or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my Revenge spell work fast overnight after casting the spells. Immediately working black magic death spells that work fast will be cast on the person and result is 48hours.How To Cast A Revenge Spell On Someone, Call/ Whats App;+256752079972 Revenge Spells That Work Overnight to kill wicked Step-dad/ Step mom Death Revenge Spell on wicked friends,Voodoo Revenge Spells to kill Enemies Black Magic Spells To Harm Someone,Black magic Revenge spells on ex love Revenge instant Revenge spells on uncle, +256752079972 Dr Mama Zola, powerful instant Revenge spells caster, online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece Dr Mama Zola, Voodoo revenge spell casters spell to make someone sick and die without delay. Dr mama Zola Phone : +256752079972
    • (((+256752079972]]] .=DEATH SPELL CASTER / REVENGE SPELL IN ITALY NORWAY AUSTRIA,USA,CANADA,GERMANY,EUROPE,AMERICA +256752079972 INSTANT DEATH SPELL CASTER / REVENGE SPELL/ VOODOO SPELLS IN USA.TRUSTED WITCHCRAFT AND BLACK MAGIC SPELLS CASTERS powerful voodoo , voodoo DEATH SPELL /voodoo, REVENGE SPELLS CASTER IN U.S.A U.K, SWITZERLAND,AMERICA,ENGLAND, CANADA. INSTANT DEATH SPELLS TO KILL ENEMIES +256752079972 Dr Mama Zola, black magic Revenge spells that work overnight or by accident i? Cast these strongest black magic revenge death spells that work fast overnight to kill ex lover, husband, wife girlfriend Enemies overnight without delay. It doesn’t matter whether he or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my Revenge spell work fast overnight after casting the spells. Immediately working black magic death spells that work fast will be cast on the person and result is 48hours.How To Cast A Revenge Spell On Someone, Call/ Whats App;+256752079972 Revenge Spells That Work Overnight to kill wicked Step-dad/ Step mom Death Revenge Spell on wicked friends,Voodoo Revenge Spells to kill Enemies Black Magic Spells To Harm Someone,Black magic Revenge spells on ex love Revenge instant Revenge spells on uncle, +256752079972 Dr Mama Zola, powerful instant Revenge spells caster, online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece Dr Mama Zola, Voodoo revenge spell casters spell to make someone sick and die without delay. Dr mama Zola Phone : +256752079972
    • +256752079972 DEATH/REVENGE SPELLS CASTER IN AUSTRALIA, FINLAND, DENMARK, NORWAY, BELGIUM, SWEDEN, FRANCE, GERMANY, NETHERLANDS, BARBADOS, MEXICO, SPAIN, SCOTLAND. +256752079972 INSTANT DEATH SPELL CASTER / REVENGE SPELL/ VOODOO SPELLS IN USA.TRUSTED WITCHCRAFT AND BLACK MAGIC SPELLS CASTERS powerful voodoo , voodoo DEATH SPELL /voodoo, REVENGE SPELLS CASTER IN U.S.A U.K, SWITZERLAND,AMERICA,ENGLAND, CANADA. INSTANT DEATH SPELLS TO KILL ENEMIES +256752079972 Dr Mama Zola, black magic Revenge spells that work overnight or by accident i? Cast these strongest black magic revenge death spells that work fast overnight to kill ex lover, husband, wife girlfriend Enemies overnight without delay. It doesn’t matter whether he or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my Revenge spell work fast overnight after casting the spells. Immediately working black magic death spells that work fast will be cast on the person and result is 48hours.How To Cast A Revenge Spell On Someone, Call/ Whats App;+256752079972 Revenge Spells That Work Overnight to kill wicked Step-dad/ Step mom Death Revenge Spell on wicked friends,Voodoo Revenge Spells to kill Enemies Black Magic Spells To Harm Someone,Black magic Revenge spells on ex love Revenge instant Revenge spells on uncle, +256752079972 Dr Mama Zola, powerful instant Revenge spells caster, online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece Dr Mama Zola, Voodoo revenge spell casters spell to make someone sick and die without delay. Dr mama Zola Phone : +256752079972
    • (( +256752079972 )) Active Death Revenge Spells Caster In Canada, Toronto, Ontario, Quebec City, Quebec, Vancouver, British Columbia, Calgary, Alberta, Ottawa +256752079972 INSTANT DEATH SPELL CASTER / REVENGE SPELL/ VOODOO SPELLS IN USA.TRUSTED WITCHCRAFT AND BLACK MAGIC SPELLS CASTERS powerful voodoo , voodoo DEATH SPELL /voodoo, REVENGE SPELLS CASTER IN U.S.A U.K, SWITZERLAND,AMERICA,ENGLAND, CANADA. INSTANT DEATH SPELLS TO KILL ENEMIES +256752079972 Dr Mama Zola, black magic Revenge spells that work overnight or by accident i? Cast these strongest black magic revenge death spells that work fast overnight to kill ex lover, husband, wife girlfriend Enemies overnight without delay. It doesn’t matter whether he or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my Revenge spell work fast overnight after casting the spells. Immediately working black magic death spells that work fast will be cast on the person and result is 48hours.How To Cast A Revenge Spell On Someone, Call/ Whats App;+256752079972 Revenge Spells That Work Overnight to kill wicked Step-dad/ Step mom Death Revenge Spell on wicked friends,Voodoo Revenge Spells to kill Enemies Black Magic Spells To Harm Someone,Black magic Revenge spells on ex love Revenge instant Revenge spells on uncle, +256752079972 Dr Mama Zola, powerful instant Revenge spells caster, online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece Dr Mama Zola, Voodoo revenge spell casters spell to make someone sick and die without delay. Dr mama Zola Phone : +256752079972
    • +256752079972 DEATH SPELLS CASTER FOR REVENGE IN USA ,LUXEMBOURG , SEYCHELLES ,JAPAN , QATAR, ICELAND , BARBADOS, BARBUDA, BENIN, ARGENTINA,CAYMAN ISLANDS, EUADOR, COSTARICA , DOMINICA , FIJI , GRENADA, GUYANA, ISRAEL,KENYA, PANAMA, SAINT KITTS AND NEVIS , ST VINCENT , VENEZUELA ,COMOROS , SENEGAL,LEBANON, JAPAN, INDONESIA, TURKEY +256752079972 INSTANT DEATH SPELL CASTER / REVENGE SPELL/ VOODOO SPELLS IN USA.TRUSTED WITCHCRAFT AND BLACK MAGIC SPELLS CASTERS powerful voodoo , voodoo DEATH SPELL /voodoo, REVENGE SPELLS CASTER IN U.S.A U.K, SWITZERLAND,AMERICA,ENGLAND, CANADA. INSTANT DEATH SPELLS TO KILL ENEMIES +256752079972 Dr Mama Zola, black magic Revenge spells that work overnight or by accident i? Cast these strongest black magic revenge death spells that work fast overnight to kill ex lover, husband, wife girlfriend Enemies overnight without delay. It doesn’t matter whether he or she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my Revenge spell work fast overnight after casting the spells. Immediately working black magic death spells that work fast will be cast on the person and result is 48hours.How To Cast A Revenge Spell On Someone, Call/ Whats App;+256752079972 Revenge Spells That Work Overnight to kill wicked Step-dad/ Step mom Death Revenge Spell on wicked friends,Voodoo Revenge Spells to kill Enemies Black Magic Spells To Harm Someone,Black magic Revenge spells on ex love Revenge instant Revenge spells on uncle, +256752079972 Dr Mama Zola, powerful instant Revenge spells caster, online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece Dr Mama Zola, Voodoo revenge spell casters spell to make someone sick and die without delay. Dr mama Zola Phone : +256752079972
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.