Jump to content

Play a custom sound based on player coordinates


LORD MJ

Recommended Posts

Hello Forge community.

 

I really hope someone is willing to help me. I'm currently playing a map in SSP and I want to create a underground environment based on Metro 2033. So I have a proper texture pack that makes my world look awesome. But I want my world to SOUND awesome too.

 

I already know that you can use resource packs to replace sounds, and then play them using the command blocks. The problem is I want to use a lot of custom sounds and I know I won't have enough sounds to replace in default Minecraft, and I would like to keep most of the original sounds.

 

So then I need to turn myself to modding! Unfortunately, I'm a noob when it comes to Java. And yes I did read that I need to have basic knowledge of Java. I just need someone to write the code that I need, and then I will work to implement it into Minecraft.

 

So my request is really simple (at least I hope it is ;)). I want the mod to check player's coordinates in the world and whenever it finds a match it should play a custom sound on loop.

 

So for example: Let's say that the coordinates of room I'm in are as follows: X=1 Y=1 Z=64 to X=5 Y=5 Z=69. So while I'm in between those two coordinates set, the mod should play a custom sound on a loop.

 

Well that's it for my little request. I really hope someone can help make this a reality. I really hope I'm not asking too much. I know most of you guys and gals are busy making real mods, but I hope some of you will find time to help me.

 

Thanks for reading.

Link to comment
Share on other sites

courses.vswe.se  <--- Great place to learn java and minecraft modding! (1.6.X minecraft courses after the java courses are completed, all for free!!!)

 

How to add sounds and play them:

http://www.minecraftforum.net/topic/1886370-forge16x-mazs-tutorials-custom-sounds-fluids190713/

 

 

Now what you want to do is to use a tickhandler or something to check the players position and if the player's position is between the specified coords then play sound at him :P

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

  • 10 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • The Brunoe Quick Hack is an ingenious and strategic solution for recovering lost Bitcoins, a critical capability in the ever-evolving world of cryptocurrency. At its core, this innovative approach leverages advanced cryptographic techniques and computational power to methodically explore the vast realm of possible private keys, seeking to uncover the elusive key that grants access to a user's lost or forgotten Bitcoin holdings. Unlike brute-force attempts that blindly guess keys, the Brunoe Quick Hack employs a meticulously crafted algorithm that intelligently narrows the search space, dramatically increasing the chances of success. The hack strategically targets the most likely key combinations by analyzing factors such as the user's online activity, device history, and potential password patterns, maximizing efficiency and minimizing the time and resources required. This targeted approach enhances the probability of recovery and minimizes the environmental impact, a crucial consideration in the energy-intensive world of cryptocurrency. Furthermore, the Brunoe Quick Hack is designed with user privacy and security in mind, ensuring that the recovery process remains discreet and the user's sensitive information is safeguarded throughout. As the adoption of Bitcoin and other digital assets continues to soar, the Brunoe Quick Hack stands as a vital tool in the arsenal of cryptocurrency enthusiasts, providing a reliable and strategic solution for the retrieval of lost or inaccessible digital wealth. I will urge you to talk with a representative of Brunoe Quick Hack: to get help.   
    • i tried to upgrade my modrith LBC modpack that i added a few more mods to from version 1.16.5 to 1.18.2, but even tho ive upgraded all the mod versions, it just does not run.... i tried deleting the config files and waiting to see if they will reinstall, but that didnt work... i also tried creating a forge modpack with no mods in it, just the forge launcher and that worked fine.... i dunno what the problem is, but maybe someone here might, here is the log that happens when i try to run the game:   [09sep2024 18:38:16.456] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, {MINECRAFT_USERNAME}, --version, 1.18.2, --gameDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\profiles\Lucky Block Challenge, --assetsDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\meta\assets, --assetIndex, 1.18, --uuid, {MINECRAFT_UUID}, --accessToken, ????????, --clientId, c4502edb-87c6-40cb-b595-64a280cf8906, --xuid, 0, --userType, msa, --versionType, release, --width, 854, --height, 480, --launchTarget, forgeclient, --fml.forgeVersion, 40.2.14, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914] [09sep2024 18:38:16.459] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.11 by Azul Systems, Inc. [09sep2024 18:38:16.979] [main/INFO] [gg.essential.loader.stage1.EssentialLoaderBase/]: Starting Essential Loader (stage2) version 1.6.3 (285f951adc7537f49ae3ef9fc0d2fd3e) [stable] [09sep2024 18:38:17.014] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/{COMPUTER_USERNAME}/AppData/Roaming/com.modrinth.theseus/meta/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=CLIENT   and here are all the upgraded mods in the modpack if that helps:   essential_1-3-4-1_forge_1-18-2.jar mostructures-forge-1.2.0-1.16.5.jar XaerosWorldMap_1.39.0_Forge_1.18.2.jar rubidium-0.5.6.jar chaosawakens-1.16.5-0.12.1.1.jar citadel-1.11.3-1.18.2.jar konkrete_forge_1.8.0_MC_1.18-1.18.2.jar purechaos-1.16.5-4.0.0.jar apexcore-1.18.2-4.13.0.jar lucky-block-forge-1.16.5-6.0.jar ftb-ultimine-forge-1605.3.1-build.45.jar kryptonreforged-mc1.16.5_v1.0.0.jar easy_villagers-1.16.5-1.0.11.jar loadmyresources_forge_1.0.4_MC_1.18-1.18.2.jar betterbiomeblend-1.18.2-1.3.5-forge.jar TConstruct-1.18.2-3.7.1.155.jar radon-0.8.1.jar SpawnerFix-1.16.2-1.0.0.2.jar ferritecore-4.2.2-forge.jar SimpleRPC-Universal-3.3.3.jar DragonSurvival_DragonEditor-1.16.5-0.10.7.jar BadMobs-1.18.2-13.01.jar ChanceCubes-1.18.2-5.0.2.478.jar MutantBeasts-1.16.4-1.1.3.jar Fallingleaves-1.16.3-1.2.4.jar geckolib-forge-1.18-3.0.57.jar fancymenu_forge_3.2.3_MC_1.18.2.jar Hwyla-forge-1.10.11-B78_1.16.2.jar modernfix-forge-5.18.0+mc1.18.2.jar Mantle-1.18.2-1.9.50.jar ftb-library-forge-1605.3.4-build.90.jar fantasyfurniture-1.18.2-3.14.0.jar lightspeed-1.18.2-1.0.5.jar silent-lib-1.18.2-6.2.0.jar oculus-mc1.18.2-1.6.4.jar jei-1.16.5-7.8.0.1009.jar DefaultOptions_1.16.5-12.2.1.jar Shatter-1.16.5-10.0.1.jar selene-1.18.2-1.17.16.jar BHMenu-Forge-1.18.2-2.4.1.jar minecraft-comes-alive-7.4.11+1.18.2-universal.jar shutupexperimentalsettings-1.0.3.jar saturn-mc1.18.2-0.1.5.jar configured-1.5.4-1.16.5.jar Hats-1.16.5-10.3.4.jar incontrol-1.18-6.1.13.jar Wyrmroost-1.16.3-1.2.11.jar BiomesOPlenty-1.18.2-16.0.0.134.jar justzoom_forge_2.0.0_MC_1.18.2.jar iceandfire-2.1.13-1.18.2-beta-3.jar AppleTreesRev-Forge-1.16.5-v2.6.jar torohealth-1.16.4-forge-4.jar iChunUtil-1.16.5-10.7.0.jar entitycollisionfpsfix-1.16-1.0.1.jar MyServerIsCompatible-1.18-1.0.jar appleskin-forge-mc1.18.2-2.5.1.jar Oh_The_Biomes_You'll_Go-forge-1.18.2-1.5.1.jar lazydfu-0.1.3.jar supplementaries-1.18.2-1.5.18.jar architectury-4.12.94-forge.jar carryon-1.18.2-1.17.2.15.jar dragonseeker-1.1.jar  
  • Topics

×
×
  • Create New...

Important Information

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