Everything posted by Selim_042
-
[1.10.2] Get WorldSavedData from IBlockAccess
It appears to me that it is only accessible from a World. I assume I am screwed then?
-
[1.10.2] Get WorldSavedData from IBlockAccess
Is there any good way to get a WorldSavedData from an IBlockAccess? I checked, and the IBlockAccess in question is not an instance of World sadly. As far as I can see, you can only get the WorldSavedData from a World, and not a generic IBlockAccess, but I am hoping someone else might have a solution.
-
[1.10] Set Player to noclip
I have an item that should be setting the player's noclip boolean value to true. The value is being set, but changed on the next gametick. Is there an internal block on making players noclip? I cannot seem to find where it is.
-
Download File from URL
I am using the data in that file to change a block's color.
-
Download File from URL
On an interval, I am downloading this file.
-
Download File from URL
Okay, that means I need to learn how to use threads. I am downloading a file from an online API.
-
Download File from URL
I am attempting to download a file from a specific URL, but when it does, it causes the game to stutter. Is there a good way of accomplishing this without causing it to stutter?
-
[SOLVED] [1.10.2] Model Variant Issues
Huh. I didn't know that it needed to be alphabetical. I thought I tried that even. As for Forge's blockstate system, I will look into it, thanks.
-
[SOLVED] [1.10.2] Model Variant Issues
I have been attempting to troubleshoot this for hours by now. This is from the log: And this is the blockstate (bedWhite.json): And, the model itself (bed_footWhite.json): This problem is occuring for every possible variant for the block. I only posted the model for the foot part because I assume that it is the same issue for both the foot model and the head model. I have this feeling that I am overlooking some minor thing.
-
Lose Localization on Compile
Makes sense now, I had misread your previous post. Thank you again.
-
Lose Localization on Compile
That is exactly what it was. Thank you. Though, it seems kinda weird that it works in the dev environment then, but I don't know.
-
Lose Localization on Compile
I am 98% sure that my mod ID is lowercase everywhere. Could it be anything else? If not, where would it matter the most that it cannot find my lang file? It can find textures, models, and blockstates just file, just not the lang.
-
Lose Localization on Compile
I'm pretty sure it is...
-
Lose Localization on Compile
For whatever reason, localization works perfectly in Eclipse, but when I compile my mod with Gradle and attempt to use it, nothing from my mod is localized. I don't know what files you might want, so I didn't provide any, but I can if needed.
-
[1.9+] Item In Player Render
I had assumed this would render directly onto the player. I was thinking something like above the head. Would this be capable of doing so?
-
[1.9+] Item In Player Render
I am attempting to render an item when a player renders. I assume the best route of doing so would be to use the RenderPlayerEvent event? If not, where would be recommended? I would rather not create a custom player model if possible.
-
Force Block Update on Client
Ok. Yea, thought of that after, fixing. Still in progress, on the list of things to do. I realized that after uploading, fixed now.
-
Force Block Update on Client
Am I being dumb, am I using isRemote backwards or what is wrong, I still am not seeing it.
-
Force Block Update on Client
https://gist.github.com/Selim042/10a8d1796ceed7bc21e73a50a2d6a6b9#file-blockshifter-java-L88-L90
-
Force Block Update on Client
Ok?
-
Force Block Update on Client
https://gist.github.com/Selim042/10a8d1796ceed7bc21e73a50a2d6a6b9
-
Force Block Update on Client
Calling it only on the server and removing all mark methods still only updates on the one client and only causes block updates if in multiplayer.
-
Force Block Update on Client
I assume you mean the markAndNotifyBlock method as the notifiyNeighborsOfStateChange seems necessary so that adjacent blocks will properly update when the one gets removed.
-
[1.9+] Store BlockState in NBT
I forgot that the constructor for a ResourceLocation just takes a string. Thanks.
-
Force Block Update on Client
It should be setting it both on the client and server. world.setBlockToAir(pos); world.notifyNeighborsOfStateChange(pos, null); world.markAndNotifyBlock(pos, world.getChunkFromBlockCoords(pos), world.getBlockState(pos), world.getBlockState(pos), 0); world.playSound(player, pos, SoundEvents.ENTITY_ENDERMEN_TELEPORT, SoundCategory.PLAYERS, 1.0F, 1.0F);
IPS spam blocked by CleanTalk.