-
PlaceBlockEvent
So i got this, its server side, is there a event or anything that is client side?, @SubscribeEvent public void playerBlockPlaced(BlockEvent.PlaceEvent event) { System.out.println("test placed block"); }
-
Key Binds not working
how should i do it then?
-
Key Binds not working
is there like a event where i can do public void event(someKeyBoardEvent event) {if(event.getKey instanceof KeyBoard.KEY_SOME KEY)}?
-
Key Binds not working
still dident work):, same thing happened
-
Key Binds not working
lol i guess i used it because thats not a event
-
Key Binds not working
I dont know, I dident think it really mattered, doubt its going change anything but ill try
-
Key Binds not working
So i have this little method, @SubscribeEvent public void livingUpdate(LivingEvent.LivingUpdateEvent event) { if (event.getEntity() instanceof EntityPlayerSP) { if(minecraft.gameSettings.keyBindDrop.isPressed()) {//doesnt work System.out.println("Test, droped a item"); } if(minecraft.gameSettings.keyBindPlayerList.isPressed()) {//works System.out.println("Test, Showed tab gui thing"); } } } now for some reason player list works but drop doesnt, but if instend if i use isKeyDown it works, but i want it to only update when the key is pressed once, if you get what im saying, not every tick the key is down
-
Item Map NBT data
So im not going be able to get the map data like Scale, xCenter, zCenter? and no tbh lol just the picture u send made me think for a sec but not really
-
Item Map NBT data
so i got this image of what the player would be holding but of the nbt data, from the last picture you showed me i would think 5 entries is the root tag, but that would make sense, and this code just doesnt look right, and i cant get the map item format code from the nbts tags i showed you in the picture so i dont understand that. NBTTagList nbttaglist = player.getHeldItemMainhand().getTagCompound().getTagList("5 entries", 10); for (int j = 0; j < nbttaglist.tagCount(); ++j) { NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(j); System.out.printIn(nbttagcompound.getByte("Scale")); }
-
Item Map NBT data
Sorry my bad, i got this little bit of code, it doesn't work, i dident expect it to work because of getTagCompound().getTagList("scale", 10);, do you know how i would get the "scale" tag value? NBTTagList nbttaglist = player.getHeldItemMainhand().getTagCompound().getTagList("scale", 10); for (int j = 0; j < nbttaglist.tagCount(); ++j) { NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(j); System.out.println(nbttagcompound.getDouble("scale")); }
-
Item Map NBT data
im not 100% sure how to do it, like this? player.getHeldItemMainhand().getTagCompound().getTagList("what would i put hear", 10) or somthing like, i dont think it will work because a maps only nbt is only display and decorations
-
Item Map NBT data
Yes, i know but how would i edit it from a mod? or get the data from a mod, i can't get to the map_whatever.dat file to get the info in it and i cant get nbt data from the item the player is holding because the data i am looking for is not stored there its stored in the map_whatever.dat
-
Item Map NBT data
So im trying to read a map_whatever.dat to get the information about the map but i don't know how to read it, i have tried for the last 2 days messing around with nbt and really got no wear, got any tips or code? sorry this probably made no sense, i don't know how to describe what im trying to do
-
Trying to get if chunk was generated for the first time
sorry i dont fully understand what you guys are saying, im probably being a pain the the but but, i was looking at a forums post from 3 years ago u helped a guy and u said this ChunkProviderGenerate for example always reports true from chunkExists, where as ChunkProviderServer checks if the chunk is loaded into memory. And World.getChunkProvider always gives you a ChunkProviderServer (resp. a ChunkProviderClient). how can i use ChunkProviderServer to check if a chunk is/was loaded into memory
-
Trying to get if chunk was generated for the first time
Thanks i see that, but is there like a way if(chunk.wasAlreadyLoaded){ } or something that i can determine if a chunk was already generated before the player generating it now
IPS spam blocked by CleanTalk.