-
Posts
67 -
Joined
-
Last visited
Everything posted by Selim_042
-
[1.10.2] Get WorldSavedData from IBlockAccess
Selim_042 replied to Selim_042's topic in Modder Support
It appears to me that it is only accessible from a World. I assume I am screwed then? -
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.
-
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.
-
I am using the data in that file to change a block's color.
-
On an interval, I am downloading this file.
-
Okay, that means I need to learn how to use threads. I am downloading a file from an online API.
-
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?
-
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.
-
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.
-
Makes sense now, I had misread your previous post. Thank you again.
-
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.
-
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.
-
I'm pretty sure it is...
-
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.
-
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?
-
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.
-
Ok. Yea, thought of that after, fixing. Still in progress, on the list of things to do. I realized that after uploading, fixed now.
-
Am I being dumb, am I using isRemote backwards or what is wrong, I still am not seeing it.
-
https://gist.github.com/Selim042/10a8d1796ceed7bc21e73a50a2d6a6b9#file-blockshifter-java-L88-L90
-
Ok?
-
https://gist.github.com/Selim042/10a8d1796ceed7bc21e73a50a2d6a6b9
-
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.
-
I assume you mean the markAndNotifyBlock method as the notifiyNeighborsOfStateChange seems necessary so that adjacent blocks will properly update when the one gets removed.
-
I forgot that the constructor for a ResourceLocation just takes a string. Thanks.
-
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);