Everything posted by Zanckor
-
[1.19] Problem with my third capability
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
-
[1.19] Creating new Biome
I can't add it to vanilla overworld?
-
[1.19] Creating new Biome
What do you mean with that?
-
[1.19] Creating new Biome
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
-
Entity not spawning
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
-
[1.19] Stop sound
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?
-
[1.19] Stop sound
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(...)
-
[1.19] Stop sound
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?
-
[1.19] Stop sound
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()));
-
[1.19] Stop sound
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
-
[1.19] Stop sound
I cannot invoke them inside a event, cause it is static
-
[1.19] Stop sound
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!
-
[1.19] Creating custom Goals
It's fixed, it was my priority, i've just adjusted it to 1 and now it works
-
[1.19] Creating custom Goals
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
-
[1.19] Creating new Packet
I've seen it on another packet, so i thougth it should be a boolean method, but can it be public void handle?
-
[1.19] Creating new Packet
Yo! Here again. I'm trying to create a Packet to Server, but is actually not working. Is calling my packet correctly, but not updating my data. There's where I call my Packet: https://pastebin.com/ajFJNSK0 And my Packet: https://pastebin.com/02h43R34
-
[1.19] Creating new GUI Screen
Btw, to put a background image, is also with blit? Or there's other way?
-
[1.19] Creating new GUI Screen
Oh okay, i was thinking that too xD, and about the rest of the code? There's something wrong?
-
[1.19] Creating new GUI Screen
Yo, I've a part of my code done, there's something wrong? (I'm mean, yes, but what xD) https://ibb.co/H2N8vcC (GUI Code) https://ibb.co/VwKVT6g (Call screen) Btw, I'm using ItemPickupEvent for now, just to test
-
[1.19] Creating new GUI Screen
And how can i register and call it?
-
[1.19] Creating new GUI Screen
I want a Button that increase a capability per one, like a stat "Stamina" that i want to increase one per one. Something like a MMORPG menu to increase my stats
-
[1.19] Creating new GUI Screen
Yo! Here again, I'm trying to create a new custom GUI Screen, smthing like, press V and it displays a GUI with buttons, etc. So, how can I create it? extending screen? And how can I register it? Btw, there's any doc or example?
-
[1.19] Creating new overlay gui
Done, tnxs Ya, i know that it needs to be static, but i cant call "blit" method if it's static
-
[1.19] Creating new overlay gui
Okay, I've that now, what I'm doing wrong? https://ibb.co/2qb2L77 https://ibb.co/Vpvbzsk
-
[1.19] Creating new overlay gui
Mhh, I don't know how it really works, i'm trying with OverlayRegistry, ForgeIngameGui and Gui, but don't get it. All I have is that: https://ibb.co/VxhzPwy to create my overlay https://ibb.co/P1FMVf9 and that's my GUI class with my gui delimited I've tried to do something like this like ForgeIngameGui: https://ibb.co/HrpCWt8 but I can't create a new protected void render
IPS spam blocked by CleanTalk.