Jump to content

lukas2005

Forge Modder
  • Posts

    289
  • Joined

  • Days Won

    2

Everything posted by lukas2005

  1. Solved this by adding this to my build.gradle (at the end)
  2. i tried to do this using embed 'group:artifact:version' thing from here https://github.com/MinecraftForge/ForgeGradle/wiki/Dependencies but got this error:
  3. Hello i have a very heavy dependency in my mod (about 150 mb in size) but i am able to shrink it to 51 mb if i will make diffrent jars for diffrent os'es now how do i automate this because i arelady know how to just dumbly put selected jars into my output jar
  4. just like in the topic what i have tried so far: public File getSoundResourceAsFile(ResourceLocation resource) throws IOException { String[] splitRes = resource.getResourcePath().split("[.]"); ResourceLocation resourceLocation = ((ItemRecord) Items.RECORD_CAT).getRecordResource(resource.getResourcePath()); SoundEventAccessor sound = Minecraft.getMinecraft().getSoundHandler().getSound() // Whats the substitute for this?? ResourceLocation resourceLocationFile = sound.func_148720_g().getSoundPoolEntryLocation(); // And this? InputStream inputStream = Minecraft.getMinecraft().getResourceManager().getResource(resourceLocationFile).getInputStream(); return streamToFile(inputStream, Files.createTempFile("tmp", "."+splitRes[splitRes.length-1]).toFile()); }
  5. you can write to google to remove the webpage from search results
  6. Hello i would like to get position of minecraft window on screen. Does anyone here have any ideas how to do that?
  7. Hello today when i ran gradlew setupDecompWorkspace on my brand new project i've got this error: Can someone help me? PS i tried downloading gradle fromwebite and adding it to path - same results
  8. 3. Because registry needs to store instances of cameras so that i can reference them by their uuid 4. i are lady fixed that 5. camera is so you can plant it somewhere so and then other players cant see it while you can watch them using monitor
  9. fixed that and still nothing
  10. https://github.com/lukas2005/Spy-Mod/blob/master/src/main/java/io/github/lukas2005/spymod/Network/CameraRegistryChangeMessage.java#L105
  11. but it does not get called and i dont know why!
  12. i think yes but im not sure if it crashes try returning empty NBTTagCompound
  13. What about WorldEvent.Save? (see https://github.com/lukas2005/Spy-Mod/commit/bb83d4d746a239b5aca2e53b15658ce50878b115) im just worried that the registry and world saved data instances are gonna be trashed before it will get saved
  14. Because i need data about cameras on both server and client
  15. ok heres the link https://github.com/lukas2005/Spy-Mod
  16. Ok i removed the markDirty call from all methods except my sync packet handler and added a constructor with String and still the same i think that i will just create a Github Repo instead of posting walls of code here
  17. i would suggest going to 1.11.2 and then later when many people will be playing 1.12 upgrade again
  18. In your log Heres the answer
  19. Maybe try using other event (i'm not sure wich one...) or maybe try instead of iterating over all entitis iterating only on all players or make it so that it breaks block that is in front of player also consider changing the handler and packet so that it does not send the data about the exact block pos it has to break but for example a uuid of player that needs to have a block broken because cheaters/hackers/whatever may change these values there is a golden rule in networking: never trust the client
  20. i arelady did that markDirty does gets called but those other 2 func dont
  21. Ok now i did it but it does not save/load even added prints in writeNBT readNBT and markDirty functions looks like writeNBT and readNBT are not called shloud i call them manually??
  22. Ok one thing how shloud i get world instance from my Camera class?
×
×
  • Create New...

Important Information

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