Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IKnowImEZ

Members
  • Joined

  • Last visited

  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. how should i do it then?
  3. is there like a event where i can do public void event(someKeyBoardEvent event) {if(event.getKey instanceof KeyBoard.KEY_SOME KEY)}?
  4. still dident work):, same thing happened
  5. lol i guess i used it because thats not a event
  6. I dont know, I dident think it really mattered, doubt its going change anything but ill try
  7. 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
  8. 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
  9. 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")); }
  10. 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")); }
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.