Coder Social home page Coder Social logo

Biome Tunes

This is a minecraft datapack which changes music for the player dependent on biome type

Enabling the datapack

To enable the datapack instantiate the setup call by calling the following function:

/function #biometunes:setup

Removing the pack

Apart from just removing the datapack you might also want to clear all scoreboards associated with it. This command will remove all tags and scoreboards associated with every player:

/function #biometunes:uninstall

The control panel

BiomeTunes support configuration for each individual user in the control panel. The control panel is reacable without op permission by every player. To access it simply call the following command:

/trigger biomeTunes

Replace biome sound track with your own

  1. Make sure the sound file you want to use is saved in .ogg format. This is very important since this is the only file extension supported by Minecraft, all other formats will not be executed.
  2. Enter the biometunes resource pack and locate the folder game.
  3. Take your file and replace it with another file in this directory and name your file to the name of the biome you want it to play in.
  4. When the file is integrated into the pack you know need to customize the data pack to let it know the length of the track. This is done by entering the file managing the selected biome. All biome function files are stored under biometunes/data/biometunes/functions/triggers/<yourbiome>.mcfunction.
  5. The value you want to change is the after musicLength, this is the length of your sound file in ticks. To calculate the length from seconds to ticks you need to multiply by 20. Example: You have a music file which is 44 seconds long, 44 * 20 = 880. 880 would be the value to enter in this case.
  6. Congrats! You have now changed a music file for a biome and given the data pack the correct information about the length of the soundtrack

Biome Tunes's Projects

data-pack icon data-pack

Biometunes integration. Required to use the Sound-Pack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.