Jump to content

IKnowImEZ

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by IKnowImEZ

  1. 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"); }
  2. is there like a event where i can do public void event(someKeyBoardEvent event) {if(event.getKey instanceof KeyBoard.KEY_SOME KEY)}?
  3. still dident work):, same thing happened
  4. lol i guess i used it because thats not a event
  5. I dont know, I dident think it really mattered, doubt its going change anything but ill try
  6. 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
  7. 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
  8. 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")); }
  9. 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")); }
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. so i looked at a chunk event and its kinda working but not really, by new chunk i mean a new chunk first time being generated(it wasent already loaded before) do you know how to check for that?
  16. I want to use like a chunk generated event if thats a thing and check if the chunk is a new chunk
  17. ahhh theres events for newly generated chunks? can u like give me a list or one that would seem fiting?
  18. i guess you have a point, i was going do that for testing but i can it can show something on screen if newly chunks generated, i wana make a mod for like new updates so you know your in new chunks so you can start looking for newly generated stuff in the update, but where in the code does newly generated in code?
  19. i want it to jump and say on screen saying if a new chunk generated which i know how to do i just dont know how to get newly generated chunks
  20. like for example on a new chunk being generated for the first time make the player jump, im not exactly sure what i want the player to do yet
  21. like where in minecrafts code is when chunks are first generated so i can finger something out to add code to it or something, example if(newChunkGenerated && mc.player.onGround){ mc.player.jump(); }
  22. as the title says im trying to get if chunk was generated for the first time i have look around in the code a bit and tryed a couple things any tips or help? thanks
  23. Im trying to get the closest block to player, like the closest wheat and i really have no idea what im doing hear, im pretty stumped, can some one help
×
×
  • Create New...

Important Information

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