nlipiarski / MCC

Marshal Command Code Syntax Highlighter
GNU General Public License v3.0
14 stars 2 forks source link

Unable to interpret resource locations for custom sound events in playsound #62

Closed dominicsherry1 closed 5 years ago

dominicsherry1 commented 5 years ago

This bug affects Marshal Command Code.

It seems like there is a problem with interpreting resource locations in the playsound command which are not sound events in the default resource pack. For example, syntax highlighting works for the command

playsound minecraft:ambient.underwater.loop ambient @s

but does not work for the command

playsound custom:ambient.underwater_bubbles ambient @s

From the file “Parser.py” inside the sublime-package file the function sound_parser shows where the problem lies:

def sound_parser(self, properties={}): return self.location_from_list_parser(self.regex["resource_location"], SOUNDS)

It seems like “SOUNDS” only contains a list of sound events included in the default resource pack.

nlipiarski commented 5 years ago

Sorry for the long time on response for this one, but a new version is out now that fixes this.