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.

Ghoul159

Members
  • Joined

  • Last visited

Everything posted by Ghoul159

  1. yes but i cant talk anymore girlfriend is asleep... i mean this comparison if the torch block is in the list is the last thing i have to find out...^^
  2. do you mean i have to write a function which goes through the string; takes the specific coordinates; compares them if they are torches; and gives a return statement? because the " System.out.println(ing);" output is the same...
  3. ok now i got the coordinates in the list like: [iNFO] [sTDOUT] [box[-295.0, 68.0, 277.0 -> -294.0, 69.0, 278.0], box[-295.0, 69.0, 277.0 -> -294.0, 70.0, 278.0], box[-295.0, 70.0, 277.0 -> -294.0, 71.0, 278.0], box[-295.0, 68.0, 278.0 -> -294.0, 69.0, 279.0],...] but how do i go through this with a block specific comparison? ^^ complete code: [hide] AxisAlignedBB var4 = AxisAlignedBB.getBoundingBox(plX, plY, plZ, plX + 1.0D, plY + 1.0D, plZ + 1.0D).expand(4D, 2D, 4D); List list = Minecraft.getMinecraft().theWorld.getAllCollidingBoundingBoxes(var4); Iterator var6 = list.iterator(); EntityPlayer var7; if(list.equals("50")) while (var6.hasNext()) { System.out.println("got one torch!"); var7 = (EntityPlayer)var6.next(); } System.out.println(list); [/hide]
  4. ok i tried this: AxisAlignedBB var4 = AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)plX + 10,(double)plY + 10,(double)plZ + 10,(double)(plX + 1), (double)(plY + 1), (double)(plZ + 1)); List list = Minecraft.getMinecraft().theWorld.getAllCollidingBoundingBoxes(var4); Iterator var6 = list.iterator(); EntityPlayer var7; if(list.equals("50")) while (var6.hasNext()) { System.out.println("got one torch!"); var7 = (EntityPlayer)var6.next(); } but the list is empty xP
  5. but how do i use that to compare if its a specific block like a torch etc...? sry for the many questions...^^
  6. how do you mean that? i need the coordinates for the world.setBlockTileEntity...
  7. my problem is that i dont want to use it with new blocks i want to detect torches and things in vanilla...
  8. thanks! but i have a few questions.. ...this.xCoord... should this be the player position? or from the toch? is var1 the radius of the detection? Edit: and i dont want to use it in a new block i want to detect things that are already in the game..
  9. Does anyone have an idea how i can get the distance from player to a specific block like placed torches? i tried "ModLoader.getMinecraftInstance().theWorld.getEntitiesWithinAABB" but it only works with entities like the name says xP... anyone knowing a good way? edit: on second page is a working solution
  10. hey you were right i just had to addthe FontRenderer etc... thx! now i just have to do a tick while the game is running...
  11. a nice idea but i looked into the code and he had a very complex methodto do it... besides he importet things i dont even get where they came from... (but its his code so i wont post it here...) anyone have done a custom hud before? i just have to add a String/Text to it (without command/chat window)....
  12. no one got an idea on how to make such a custom hud element ?
  13. Hello i just want to display text without the command/chat box and without GuiScreen class... something like the hunger bar in the hud only with my custom attributes... i just dont get how to display it without stopping the movement of the player... i tried lots of things but none worked (espacially with smp) anyone knowing a good method?

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.