Posted August 13Aug 13 When attempting to create ResourceLocation instances in a Minecraft mod, both the traditional constructor approach and the newer fromNamespaceAndPath method are failing with various errors, preventing proper resource registration. public static RegistryObject<SoundEvent> registrySoundEvents(String name){ return SOUNDS_EVENTS.register(name, () ->SoundEvent.createVariableRangeEvent(new ResourceLocation(Records.MOD_ID, name))); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.