"Play sound at" block generates incorrect code

Started by ZarwalD on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Play sound at" block generates incorrect code
Tue, 03/28/2023 - 11:01 (edited)

So the issue is in the title. This block takes the sound id for example "block.froglight.place" but does not put it in the ForgeRegistries.SOUND_EVENTS.getValue() method.

The value here is new ResourceLocation("") and string here is just empty for some sounds.

For example if the sound is "ambient.basalt_deltas.additions", it will look like this new ResourceLocation("ambient.basalt_deltas.additions")

if block.froglight.place
If ambient.basalt_deltas.additions

upd: if i manualy put block.froglight.place it will throw the exact same error:

https://pastebin.com/FMv36qCn

Edited by ZarwalD on Tue, 03/28/2023 - 11:01
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah, so it just means that…
Wed, 03/29/2023 - 09:08

Ah, so it just means that the "sounds list" applies to all versions that don't contain them?