Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zanckor

Members
  • Joined

  • Last visited

  1. Yo! Here again. I've made my third capability, is workin fine, but is not saving on logged out (or maybe not loadin on loggin) I've made it exactly like my other capabilities (i think), so, idk y is not workin. https://github.com/Zanckor/Dragon-Ball-Z/tree/main/src/main/java/com/zanckor/dataStorage/quests/master
  2. I can't add it to vanilla overworld?
  3. What do you mean with that?
  4. Yo! I'm trying to create a new custom biome, but I don't even know how to start. I'm not trying to change blocks or ore generation from a vanilla biome, I want to change terraforming (and well, also blocks). Here's the biome i want to reply: RockyBiome
  5. It's literally what he said. Where you added this line: e.put(ModEntityTypes.YOUR_ENTITY.get(), EntityClass.setAttributes()); You need to add a @Mod.EventBusSubsriber Like this: @Mod.EventBusSubscriber(modid = baseMmod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class ModEventBusEvents { @SubscribeEvent public static void entityAttributeEvent(EntityAttributeCreationEvent event) { event.put(ModEntityTypes.PENGUIN.get(), PenguinEntity.setAttributes()); } } If you don't add a @Mod.EventBusSubscriber your mod won't call this class
  6. Then, I need to construct a new instance each time, but then how can I check if that instance isActive, I've asked on discord too, and diesieben07 told me that I need to track the instance, but idk how, or maybe is there any other way to do that?
  7. Okay, my fail was when i construct it, now i only construct it on logged in, but, now my sound goes wrong when i play it on second time, like, it do not actually play it correctly, just a millisecond. I figured why, but dont know how to fix it. My problem is right here: https://pastebin.com/HrhMiWwu On stop, same if i try to stop it with SoundManager.stop(...)
  8. Yo! I've that code to start a sound: TransformShoutInstance TransformShout = new TransformShoutInstance(CustomSounds.TRANSFORM_SHOUT.get(), SoundSource.VOICE, RandomSource.create()); if (keyEvents.counterTransforming > 0 && !(Minecraft.getInstance().getSoundManager().isActive(TransformShout))) { SoundManager.play(TransformShout); } But is not working, I mean, on !isActive, if It's active it still return me true, any idea?
  9. Okay, i gotcha, if anybody want to know: I had my sounds registered as SoundEvent, so I've created a new class that extends "AbstractTickableSoundInstance", added a constructor and tick method (fn i do not need it) and then used: SoundManager.play(new TransformShout(CustomSounds.TRANSFORM_SHOUT.get(), SoundSource.VOICE, RandomSource.create()));
  10. I need to cast my sounds to SoundInstance, but I can't, there's any way to register my sounds on SoundInstance instead SoundEvent? Or any way to use SoundInstance inside SoundInstance
  11. I cannot invoke them inside a event, cause it is static
  12. Yo, here again. I'm creating a new VFX sounds so I need to manage to stop them. They're working on ClientTickEvent cause I need to start them on press key, like, if player started pressing G, execute a 27s long sound, but I need a way to stop it if player stop pressing G. Btw, that's not really necessary but I would like to know if there's any way to repeat sound on finish. Tnks!
  13. It's fixed, it was my priority, i've just adjusted it to 1 and now it works
  14. Yo! Here again. I've 2 new goals to my Bear entity, but idk they aren't even starting. There's my code: https://pastebin.com/qRgGV7kp
  15. I've seen it on another packet, so i thougth it should be a boolean method, but can it be public void handle?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.