Jump to content

Ciolgaming

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ciolgaming's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Yes but i dont understand what do yo say, i didn't find where you want to place this, can you modify the code please ??
  2. Thank you, how to get the number of tileentity in the chunk of the player is please ??
  3. I have find how to detect a tileEntity, but i didn't find to detect all the tileentities in a chunk ! Sorry for the spelling mistakes, i am french help me my code is : package com.mod.ciolmod.init; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.client.Minecraft; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MathHelper; import net.minecraftforge.client.event.RenderGameOverlayEvent; public class InfoOverlay { private Minecraft mc = FMLClientHandler.instance().getClient(); TileEntity biomeString; private String fpsString; @SubscribeEvent public void renderGameOverlay(RenderGameOverlayEvent.Post event) { int x = MathHelper.floor_double(mc.thePlayer.posX); int z = MathHelper.floor_double(mc.thePlayer.posZ); fpsString = mc.debug.split(",", 2)[0]; biomeString = mc.theWorld.getTileEntity(x, 90, z); FMLClientHandler.instance().getClient().fontRenderer.drawStringWithShadow("[Fps] : "+fpsString, 5, 5, 0xffffff); FMLClientHandler.instance().getClient().fontRenderer.drawStringWithShadow("Chest : "+biomeString, 5, 25, 0xffffff); } }
×
×
  • Create New...

Important Information

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