DragonITA
Members-
Posts
552 -
Joined
-
Last visited
Everything posted by DragonITA
-
[1.15.2] Weird timing out issue with my modded server.
DragonITA replied to hcUpServer's topic in Support & Bug Reports
Sorry, but server logs are for me total other as the normal mod‘s logs, so i not really can help you. -
So, i still need a answer: Why Mojang has this two functions?
-
I have see in a mod, that it use the LivingAnimation function, i still wonder why: @Override public void setLivingAnimations(T entityIn, float limbSwing, float limbSwingAmount, float partialTick) { this.partialTicks = partialTick; } So, the only difference between setRotationAngles and setLivingAnimations is only that setLivingAnimations has lesser parameters, but a partialTick parameter? Else it are identical? When it was this, so could someone say it me, pls?
-
Can you send us your crash.report if this still don‘t work?
-
[1.15.2] Rendering One Item as Another
DragonITA replied to ChampionAsh5357's topic in Modder Support
Ok, then say us when you found a solution, it look important and will maybe help others modders -
Override is typical Java. If you don‘t know Java 8 then learn this before you begin. Java has a JavaDoc, in them you can see what methods or functions can make. Hope this will help you
-
Ok, what is then the motive that this function exist? It‘s the same as the other, so i not understand, and if i see Vanilla code, it not help me… For example the Horse model: Its use the two things, and the setLivingAnimations is greater as the setRotationAnimations, so i not know…
-
https://cadiboo.github.io/tutorials/1.15.1/forge/1.0-gradle-configuration/ https://cadiboo.github.io/tutorials/1.15.1/forge/1.1-importing-project/
-
[1.15.2] Rendering One Item as Another
DragonITA replied to ChampionAsh5357's topic in Modder Support
Hope this help you @ChampionAsh5357 (P.S.: I like your videos, thanks a lot) : -
So, it was the same as the other function?
-
So, my real question: Is this feature important at all, why does it exist and when should I use it? The main problem is that I just can't tell the two apart. For example, when I look at the other function, I see that the only difference are the parameters: one (SetLiving) has a partialtick while the other (setRotation) has multiple parameters. So I don't see an important difference, for me the two are the same, do you see a difference? Second: Why does it exist at all? And last, when should I use it? For example: I can use an attack animation in the setRotationAngles function as well as in the setLivingAnimation, so I don't see any difference again. Or the same with a panic animation. The (really) last question: So if I do a walk animation, and if there is any difference at all, then where should I really use it? Most mods use it in the setRotationAngles function, but what if it's wrong?
-
[1.15.2] How to make occasionally animations?
DragonITA replied to DragonITA's topic in Modder Support
Ok, what method need i to use? -
yes, thanks
-
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Wow, it really works, thanks a lot! I just need to work a bit with my animation, my animation now play to fast, and i not know why… But really thanks for your help. -
[1.15.2] How do I extend the attack reach of a player?
DragonITA replied to Nozzomi's topic in Modder Support
Hope it help: You can use world.isRemote or @EventBusSubscriber(MODID, bus = EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) or @Side(Dist.CLIENT). Hope it will help you. -
[1.15.2] How to make occasionally animations?
DragonITA replied to DragonITA's topic in Modder Support
When i for example see the FoxModel class, i can‘t make the difference. -
[1.15.2] How to make occasionally animations?
DragonITA replied to DragonITA's topic in Modder Support
So, i see the HorseModel class, but with see the functions and variables i still don‘t understand because the mappings was not so advanced. So i bump: Why setLivingAnimations actually exist? -
So, i don‘t want to write a new topic, so i have another question: why Mojang use Java 8 and not the most Version of Java, so Java 13?
-
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Yes, why? (Oh, yes, i just remembered that Forge has a Discord Server, in them i can write so questions, sorry) -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Where can i use this? -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Thanks you a very much! Sorry if i annoy you. I just am curious: What is dataManger? i have see this in others in the others entity‘s, but never have understand what it really make. The rest i can understand (only a couple of things). This will really help others modder. So, here is only one thing that i not understand: public boolean isPanic() { return this.goalSelector.getRunningGoals().anyMatch(goal -> goal.getGoal().getClass() == PanicGoal.class); } @Override public void tick() { super.tick(); if (!world.isRemote) { if (isPanic() && !dataManager.get(PANIC)) { dataManager.set(PANIC, true); } else dataManager.set(PANIC, false); } } When before my isPanic function don‘t has work, so why it should be work here, only as here we get it from the client side? And with this my Packet/Channel will be useless… And why DataManagers are useful? Really thank for your help (If you want i can add you into my Mod credits…)! -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Thanks for you very great help, this is what i now have: https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/entities/UnicornEntity.java#L51 https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/client/models/ModelUnicorn.java#L308 Is here any way to get the Player or i just can replace: public boolean CompareGoal(Class<PanicGoal> TargetGoal, PlayerEntity player) { PacketHandler.INSTANCE.send(PacketDistributor.TRACKING_ENTITY.with(()->player), PanicMessage.class); LOGGER.info("The ReturnValue will be: " + this.goalSelector.getRunningGoals().anyMatch(goal -> goal.getGoal().getClass() == TargetGoal)); return this.goalSelector.getRunningGoals().anyMatch(goal -> goal.getGoal().getClass() == TargetGoal); } with this: public boolean CompareGoal(Class<PanicGoal> TargetGoal, PlayerEntity player) { PacketHandler.INSTANCE.send(PacketDistributor.TRACKING_ENTITY.noArg(), PanicMessage.class); LOGGER.info("The ReturnValue will be: " + this.goalSelector.getRunningGoals().anyMatch(goal -> goal.getGoal().getClass() == TargetGoal)); return this.goalSelector.getRunningGoals().anyMatch(goal -> goal.getGoal().getClass() == TargetGoal); } It just was a question @loordgek. -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Thanks Ok, this i understand, but i not understand why i not need to set it… Ok, i will try. -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
I can‘t find any method in the PlayerEntity or ServerPlayerEntity or Chunk class, and i can‘t find any tutorial about this, so… -
[1.15.2] Check if a entity is in panic, how?
DragonITA replied to DragonITA's topic in Modder Support
Ok, so, now i only need to get the Chunk of the player, any idea? This is what i have(yes, it was false i know): https://github.com/DragonGamerDevelopers/NewFantasyMod/blob/1.15.2/src/main/java/mod/dragonita/fantasymod/entities/UnicornEntity.java#L48 I read it into the link you sendet me…