lukas2005
Forge Modder-
Posts
289 -
Joined
-
Days Won
2
Everything posted by lukas2005
-
i tried to do this using embed 'group:artifact:version' thing from here https://github.com/MinecraftForge/ForgeGradle/wiki/Dependencies but got this error:
-
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()); }
-
you can write to google to remove the webpage from search results
-
ok thanks
-
Hello i would like to get position of minecraft window on screen. Does anyone here have any ideas how to do that?
-
[1.11.2][SOLVED] gradlew setupDecompWorkspace fails
lukas2005 replied to lukas2005's topic in Modder Support
Thank you -
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
-
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
-
fixed that and still nothing
-
https://github.com/lukas2005/Spy-Mod/blob/master/src/main/java/io/github/lukas2005/spymod/Network/CameraRegistryChangeMessage.java#L105
-
but it does not get called and i dont know why!
-
i think yes but im not sure if it crashes try returning empty NBTTagCompound
-
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
-
Because i need data about cameras on both server and client
-
ok heres the link https://github.com/lukas2005/Spy-Mod
-
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
-
bump
-
Which version should I upgrade my 1.7.10 mod to?
lukas2005 replied to Rikka0_0's topic in Modder Support
i would suggest going to 1.11.2 and then later when many people will be playing 1.12 upgrade again -
In your log Heres the answer
-
[1.12] (How) can I process one type of packet before another?
lukas2005 replied to FredTargaryen's topic in Modder Support
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 -
i arelady did that markDirty does gets called but those other 2 func dont
-
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??
-
Ok one thing how shloud i get world instance from my Camera class?