Jump to content

The Kaividian

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by The Kaividian

  1. These dependencies aren't other forge mods but other projects made in java. However, I do understand what you mean and although I think it's unlikely that another mod will use those dependencies, I guess in the spirit of good coding practice, I'll just link them. Thanks.
  2. I've made my mod, it works well in my dev environment, however it has a lot of dependencies meaning that if it were to be used on another client, all of the required dependencies would have to be separately installed onto that client. Is there a method or tutorial for setting up gradlew so that when the mod is compiled, specified jars using their file path are embedded into the mod? I did see the forge dependencies page on github but I didn't see anything about embedding using a file path. Also, in case it is necessary, I'm modding in 1.8. After I know how to do this, I'll port to 1.8.9. EDIT: I am aware of licensing and will not embed anything that causes a breach of that dependencies license.
  3. Working on a client side mod that's heavily revolved around on particles. However, I tend to keep hitting the particle cap which causes a lot of them to despawn and ruin the functionality of the mod. Is there a way to increase the particle cap or to set a certain type of particle to ignore the cap?
  4. I totally missed the Minecraft class being CLIENT only, thank you for pointing that out to me. The x coordinate thing is still very strange to me. I have tested it with all bed orientations and the x offset stayed consistent. I've switched over to getBedLocation and it appears to be working. Other than the player alternating beds if they're in the same chunk, it works now. Thanks for your help.
  5. Running on the WorldTickEvent and using the world.playerEntities ArrayList to cycle through players. When I have a player that is in a bed who is FullyAsleep(entityplayer.isPlayerFullyAsleep()), I get their coordinates using x = posX etc.. I wake up the player, then put them back to bed with sleepinBedAt(x,y,z). Although this works on servers, in SinglePlayer or Multiplayer via "Open To LAN", the x coordinate is 1 integer larger. This causes players to be shifted off of their bed when they are fullyAsleep. Assuming it was a bug with forge or Minecraft, I decided to work around it by using Minecraft.getMinecraft().isSingleplayer() to alter the x coordinate based on the type of server that was running the mod, however this causes a crash on servers when that line is run. for(int i = 0; i < players.size(); i++){ entityplayer = (EntityPlayer) players.get(i); if(entityplayer.isPlayerFullyAsleep()){ int x; if(Minecraft.getMinecraft().isSingleplayer()) x = (int) entityplayer.posX - 1; else x = (int) entityplayer.posX; int y = (int) entityplayer.posY; int z = (int) entityplayer.posZ; entityplayer.wakeUpPlayer(true, false, true); entityplayer.sleepInBedAt(x, y, z); Any help with this issue would be appreciated.
×
×
  • Create New...

Important Information

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