Jump to content

Adityagupta

Members
  • Posts

    54
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • URL
    https://github.com/AdityaGupta1/

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Adityagupta's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. I did some more testing and I found the point in vanilla where the bug was fixed. The bug exists up to snapshot 19w05a, but in 19w06a, it seems to be fixed. I can't seem to find the exact bug that caused it (https://minecraft.gamepedia.com/19w06a#Fixes), so does anyone know if there is a way to find out and maybe implement that in my own code?
  2. Good point, I think I'll just stick with multiple parts. Are IEntityMultiPart and MultiPartEntityPart (the ones used in EntityDragon) the best for this or is there a better method?
  3. Could a possible solution be to constantly move the origin of the entity so that it's always in the frustum and simply translate the model so it looks like it's staying in the same place?
  4. I know this is the problem, but wouldn't fixing the hitbox size put the entity in more chunks so it wouldn't be culled? Or can entities only be tied to a single chunk? If there isn't a fix for the hitbox/culling, I'll just go with multiple parts. Also, I saw an issue on Advanced Rocketry for the same problem, and it said there was a pull request that fixed it, but the same issue seems to be happening here.
  5. I have created an entity that is ~70 blocks tall and ~6 blocks wide, and I have set its hitbox so that when I press F3 + B, it fills up the entire entity. However, I can only interact (hit) the bottom ~4 blocks, and when I look too far up, the entity disappears entirely (I think this is because the subchunk in which those ~4 blocks are in is not loaded). I have noticed the same issue with the vanilla giant mob, which also disappears at certain angles and also has a bugged hitbox. I have seen a few threads about this same problem, but none of them had a solution for this problem. Entity hitbox: Same view but a bit higher up: I tried setting ignoreFrustumCheck to true, as well as forcing some render methods to always return true for "should render", but none of that worked. The source code can be found here. The entity in question is here. Any ideas?
  6. I have a similar problem, but my entity is really tall rather than (I'm assuming) really wide. Whenever I look too high, it completely disappears. I tried setting ignoreFrustumCheck to true, and I also tried overriding methods like shouldRender to always return true. I'm pretty sure it's not a problem with chunks. However, nothing has worked. Is there any way to fix this that doesn't involve creating multiple entities? Also, this might be related - the hitbox from F3 + B goes all the way to the top of the rocket, but only the bottom 4-ish blocks can actually be hit.
  7. Thanks for the reply, moved forward but getting a different error now. Now getting: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.github.dockerjava.jaxrs.DockerCmdExecFactoryImpl.<clinit>(DockerCmdExecFactoryImpl.java:82) ~[DockerCmdExecFactoryImpl.class:?] at com.github.dockerjava.core.DockerClientBuilder.getDefaultDockerCmdExecFactory(DockerClientBuilder.java:35) ~[DockerClientBuilder.class:?] at com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:47) ~[DockerClientBuilder.class:?] at org.redfrog404.mobycraft.DockerCommands.getDockerClient(DockerCommands.java:233) ~[DockerCommands.class:?] at org.redfrog404.mobycraft.DockerCommands.ps(DockerCommands.java:193) ~[DockerCommands.class:?] at org.redfrog404.mobycraft.DockerCommands.func_71515_b(DockerCommands.java:110) ~[DockerCommands.class:?] at net.minecraft.command.CommandHandler.func_175786_a(CommandHandler.java:100) [j.class:?] at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:79) [j.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:815) [lm.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:794) [lm.class:?] The updated build.gradle shows how I used your code. Further thoughts?
  8. @Choonster I tried shading again and I am now getting: > Could not find method srgExtra() for arguments [PK: org/apache/commons/logging org/mobycraft/org/apache/commons/logging] on root project 'mobycraft.forge'. I have already looked at http://www.minecraftforge.net/forum/index.php?topic=37004.0 and the syntax seems to be fine in my case. Here is how the minecraft section of my build.gradle file looks like: minecraft { version = "1.8.9-11.15.1.1762" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "stable_20" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. srgExtra "PK: org/apache/commons/logging org/mobycraft/org/apache/commons/logging" } Any idea what could be wrong?
  9. Thanks for all the quick resposnses again! @Shadowfacts: I tried out the two lines you posted in my build.gradle file, and I got the same error as before (NoSuchMethodError). I didn't try out the second code sample because I am not using CurseGradle. @Choonster: After trying out shadowfacts' code, I switched to the "shade" plugin and used that instead. This time I got a different error: * What went wrong: Execution failed for task ':reobfJar'. > java.util.zip.ZipException: duplicate entry: org/apache/commons/logging/Log.class Here is my new build.gradle file: It looks like the shadowJar task uses the compiled output from the main SourceSet , but ForgeGradle handles reobfuscation separately (it assembles the JAR and then reobfuscates that). It may be easier to use the shading method described here than trying to integrate the shadow plugin with ForgeGradle. @UberAffe: The proxy example is helpful but isn't what I am looking for. Draco18s said that I was running client-only code on a server, which implies that I should use a server-only proxy, but your example is for client-side proxies.
  10. Thanks for the quick replies! When I am building my mod, I first do "./gradlew build", then "./gradlew shadowJar" to bundle the mod with the other JARs. Correct me if I'm wrong, but that should reobfuscate the mod. Here is my build.gradle file: Also, I've seen proxies in use by other mods but I never understood how they work. Is there some place I can see how to use those? Thanks!
  11. Hi everyone, When I launched Minecraft with a mod I've been developing, I got a java.lang.NoSuchMethodError before the mod loading even completed. Here is the crash report: The file which this error is pointing to is located at https://github.com/AdityaGupta1/mobycraft/blob/master/src/src/main/java/org/redfrog404/mobycraft/Moby.java. The mod has a bunch of other JARs bundled with it into a shadow JAR. I use the shadowJar plugin in the build.gradle file to make it. I put the shadow JAR into the mods folder and got the above error. The next thing I tried was to convert the shadow JAR to a ZIP file and remove the mod files. I placed the mod files into a separate JAR, which I will call the mod JAR. I called the JAR with everything but the mod files as the dependency JAR. I tried putting both the mod JAR and the dependency JAR into the mods folder, but that gave me a different error - the mod JAR was not able to find the classes from the dependency JAR. Any suggestions on how to debug this further?
  12. Hi everyone, I am currently developing a mod that requires a lot of external libraries in the form of JAR files (around 15 or so libraries). I can run the project fine from Eclipse, but when I try to do "./gradlew build", it gives me a BUILD FAILED because it is unable to compile the references to the outside libraries. I tried searching up the problem and putting dependencies in the build.gradle file, but even the help links inside the file were not helpful. Can anyone please help me out?
  13. Thanks for the tip! I had to mess around with it a bit and change integer values to BlockPos values, but it worked overall!
  14. Hi Everybody, Does anyone know how to make a new dimension in 1.8? I have looked online for tutorials, but the only ones are for 1.7. Any help is appreciated.
  15. The 72000 seems irrelevant in the way I do it, but I don't really know what it does. @SubscribeEvent public void decreaseBowUseDuration(PlayerUseItemEvent.Start event) { if (event.item.getItem() == null) { return; } if (!(event.item.getItem() instanceof ItemBow)) { return; } event.duration -= 10 } The 10 can be any number from 0 to 18, I think. The higher the number is, the more the duration will be decreased.
×
×
  • Create New...

Important Information

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