Giter Club home page Giter Club logo

moredisc's Introduction

MoreDisc

Minercraft version: 1.16+

This datapack add the possibility to have more disks, for this follow the instructions below If the datapack for some reason doesn't work anymore try these commands: /reload or /advancement revoke @s only more_disc:detect_disc

Note: If a music is playing don't break the jukebox

Instructions

Note: Give the same filename to sounds (.ogg) and predicates (.json)

  1. Install the datapack and the ressource pack
  2. Choose the music you want to add
  3. Make sure it is in OGG/Vorbis and mono format
  4. Go to the /assets/minecraft/sounds/custom folder in the resource pack
  5. Copy your music to this folder
  6. Go to the /assets/minecraft folder
  7. Open the sounds.json file
  8. Add your music as in the example below

Note: Don't forget to put a comma between each music each time you add one

{
    "custom.c418_13": 
	{
	  "sounds": 
	  [
		  "custom/13"
	  ]
	},
	"custom.your_music": 
	{
	  "sounds": 
	  [
		  "custom/your_music"
	  ]
	}
}
  1. Go to the /data/more_disc/predicates/ in the datapack folder
  2. Copy the file c418_13.json and rename it
  3. Now open the renamed file
  4. Instead of C418 - 13, put the name (Format : AuthorName - MusicName) of your disc in game
{
    "condition": "minecraft:location_check",
    "predicate": {
      "block": {
        "block": "minecraft:jukebox",
        "nbt": "{RecordItem:{id:\"minecraft:music_disc_13\",tag:{display:{Name:'{\"text\":\"AuthorName - MusicName\"}'}}}}"
      }
    }
  }
  1. Go to the /data/more_disc/functions/ in the datapack folder.
  2. Open the file disc_inside.mcfunction
  3. Add the two lines of code below at the end of the file
  4. Replace your_music with your music name
  5. At this point DiscId 0, increment this value by one from the previous line
execute if predicate more_disc:your_music run scoreboard players set @e[type=area_effect_cloud,limit=1,sort=nearest,tag=Jukebox] DiscId 0
execute if predicate more_disc:your_music run playsound minecraft:custom.your_music record @s ~ ~ ~
  1. Open the no_disc_inside.mcfunction file in the same directory
  2. Add the line below in the file before this line: kill @e[type=area_effect_cloud,limit=1,sort=nearest,tag=Jukebox]
  3. Replace your_music with your music name
  4. At this point DiscId matches 0, insert the value that you have set in the previous points
execute if score @e[type=area_effect_cloud,limit=1,sort=nearest,tag=Jukebox] DiscId matches 0 run stopsound @s record minecraft:custom.your_music
  1. Now you can listen to your custom music

moredisc's People

Contributors

a2va avatar

Watchers

 avatar  avatar

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.