-
[1.16.3] How to calcule line in 3D
Ehhh probabbly yes, but in 3d (I only want to rotate with entity's head from A (pitch=0f,yaw=90f) to B (pitch=-10),yaw=5). Can you please send me example, because this mathematical example: is really hard and I don't know how to calculate it and use in real case.
-
[1.16.3] How to calcule line in 3D
Hello, I'm trying to get the fastest way (line) from one pitch and yaw to another pitch and yaw in 3d space and rotate entity on this line. Is there any way to do this smoothly? Not with jerky movement?
-
[1.16.4] Synchonous Forge Task
On PlayerJoinWorldEvent I start a timer. If the count increase above 1 second. public static void init(EntityPlayer p) { new Timer().schedule(new TimerTask() { @Override public void run() { if(count == 100) { AngleGlide.glide(p, 0f, 0f, 5000, 10); } ++count; } }, 5000, 10); } The AngleGlide move with player's head location, but because Timer is asynchronous, it it did nothing.
- [1.16.4] Synchonous Forge Task
-
[1.16.4] Synchonous Forge Task
Hi, I'm trying to do something asynchronous in my mod, but it didn't work, because is asynchronous. This thing is solved in Bukkit using Bukkit scheduler. Is there any way to get something like that? Or is there any way to do asynchronous thing without errors with successfull? Thanks for all replays.
-
Error code: 2F173/H
Oh sorry, someone tell me, I have to update my mod so I do that, but maybe he/she maybe thought I clone topics. Ok thanks.
-
[1.12.2] Default Forge Scheduler
Hello, is there any way to get default forge scheduler? It would be something like bukkit scheduler, because if you are doing something asynchnous (such as timers), and call some method with entity(.turn(), .setLocationAndAngles() etc.) it didn't work. But if I do this synchronous, it works. So, is there any way to do this? Thanks for all replays.
-
Error code: 2F173/H
Hello, I don't know, this is bug, but if I create a post in Mod Support, after a few minutes it disapeard. Is
-
Entity#setAngles 1.8.9
Hello, I'm trying to create smoothly camera rotation effect, but method .setAngles(float f1, float f2) didn't work. Where is a problem? Code: public static void glide(EntityPlayer player, float yaw2, float pitch2, int time, int smoothness) { float yaw1 = player.rotationYaw; float pitch1 = player.rotationPitch; double dyaw = (yaw2 - yaw1) / ((double) smoothness); double dpitch = (pitch2 - pitch1) / ((double) smoothness); double dtime = time / ((double) smoothness); try { for (int step = 1; step <= smoothness; step++) { Thread.sleep((int) dtime); player.setAngles((float) (yaw1 + dyaw * step), (float) (pitch1 + dpitch * step)); } } catch (InterruptedException e) { e.printStackTrace(); } }
-
Error with running mod
As I said, I use shadow instead of build, which works perfect, but build taks don't compile me the dependencies. There is a problem. I need to compile the dependencies and is possible use build task.
- Error with running mod
-
Error with running mod
If I understand your reply, the dependency (sphinx4-data and sphinx4-core) are from repository. Dependencies list: minecraft 'net.minecraftforge:forge:1.16.3-34.1.0' compile 'edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT' compile 'edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT' shadow 'edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT' shadow 'edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT'
-
Error with running mod
No. In client. I want to build minecraft mod with external gradle dependencies and for this I use a shade plugin, which don't work with running. So is there any possibility to do this?
-
Error with running mod
Hello, I want to add to mod my external dependency from Gradle. But if I use shadow method instead of build, the mod don't work. ERROR LOG: Caused by: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getInstance()Lnet/minecraft/client/Minecraft; at cz.ardno.czechvoicecontrol.CzechVoiceControl.<clinit>(CzechVoiceControl.java:19) ~[?:1.0] {re:classloading} at java.lang.Class.forName0(Native Method) ~[?:1.8.0_111] {} at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_111] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.<init>(FMLModContainer.java:61) ~[?:34.1] {re:classloading} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_111] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111] {} at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_111] {} at net.minecraftforge.fml.javafmlmod.FMLJavaModLanguageProvider$FMLModTarget.loadMod(FMLJavaModLanguageProvider.java:73) ~[?:34.1] {re:classloading} ... 35 more
-
Build a mod with jar dependency
Oh sorry, I though if I use gradle shade, I put these jars into my jar but with minecraft.
IPS spam blocked by CleanTalk.