#Error in adding-new-features/jukebox-songs

1 messages · Page 1 of 1 (latest)

balmy ore
#

I'm trying to add custom discs to my game, but after following all the steps, Minecraft returns ```txt
Malformed 'minecraft:jukebox_playable' component: 'Failed to parse either. First: Not a string; Second: Not a string'
..._playable={song:"nophunintended:lovely"}]<--[HERE]

balmy ore
hardy sequoiaBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

quasi hamlet
#

the problem is exactly what the output log already tells you

#

put playable="nophunintended:lovely"

balmy ore
#

oh 🥀

#

so is the wiki just wrong,,,

quasi hamlet
#

yes

balmy ore
#

😭

quasi hamlet
#

well, the Minecraft wiki has the correct information

balmy ore
#

ive been trying to fix it on my own for hours

#

yes but the datapack wiki

quasi hamlet
balmy ore
#

hmmm

#

fair

#

if you can forward this to whoever has perms 🙏

balmy ore
#
/give @s minecraft:stick[minecraft:jukebox_playable="nophunintended:lovely"]

whole command

quasi hamlet
#

so it says that the jukebox song doesn't exist

balmy ore
#

😭 oh

#

do the json file names need to be the same?

abstract mauve
#

do you have logs enabled

abstract mauve
balmy ore
#

yes (im using prism)

balmy ore
abstract mauve
#

is there anything showing up in your logs regarding your track

abstract mauve
#

they do need to be the same

balmy ore
#

i was unsure about doing this

#

guess i was right

#

ghashgdsh what

balmy ore
#

I will uhh

#

just push my changes

#

it probably helps you all too, right?

#

if ya'll find the problem, pls ping 🙏

#

for now i'll work on making a bus skin for beam ng 😭

abstract mauve
balmy ore
abstract mauve
#

Weird.. sorry idk how to help

balmy ore
#

😭

dusk patio
dusk patio
#

is your resource pack set up correctly?

covert path
balmy ore
#

it's all on the repo!

#

inb4 it's a misspelling 😭

plucky sky
#

I think your datapack is skipping your sounds.json altogether with inline sound_events that should probably include the subfolder jukebox_song (as that is where the sound files are located)

Or you should reference the sound events from your sounds.json directly. Which would be something like:

{
"comparator_output": 0,
"description": {
"text": "Tyler Joseph - Always [No Phun Intended]"
},
"length_in_seconds": 219.0,
"sound_event": "nophunintended:music_disc.always"
}

I think you can pick either, please correct me if I am wrong guys.

#

I was wrong, after reading this on the wiki:

sound_event: One sound event (an [String] ID, or a new [NBT Compound / JSON Object] sound event definition) — The sound event to play when the item is inserted in a jukebox. **Note that only vanilla Minecraft sound events can be referenced directly by [String] ID; custom sound events must be specified in [NBT Compound / JSON Object] object form. **

#

I would however say that you don't need sounds.json for the jukebox_playable component

balmy ore
#

interesting

balmy ore
#

I'll try and see if that works when I have the time, thanks for everyone helping me