Jump to content

pjlasl

Members
  • Posts

    16
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

pjlasl's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Where do i find these launch configurations? I am using Eclipse just as an FYI
  2. I am working on a mod and it would be nice to be able to start the client (via eclipse) with a specific username instead of a random name like "player365". Is there a place that I can hardcode a username so I don't get randome names when I fire up the client to test my mod?
  3. Really? I didn't know you could do that! Granted I have only used Forge with 1.6.2 Going to try it out right now...
  4. It would be nice to have the structure mods/1.6.2 mods/1.6.4 and have forge load the mods based on the forge version loading. it would keep players from having to add/remove mods all the time when bouncing back and forth between versions.
  5. Ok. I have this working for client side detection, but how do I make it identify the entities on the serverside? the method returns 0 everytime.
  6. Thanks for the push in the right direction. It took me a few minutes, but I figured it out. Now it will identify any EntityMob within 5 blocks (if my understanding of the +5 is correct) For those who actually would like to see some code: List e = player.worldObj.getEntitiesWithinAABB(EntityMob.class, AxisAlignedBB.getBoundingBox(player.posX, player.posY, player.posZ, (player.posX + 5),(player.posY + 5),(player.posZ + 5))); if (e.size() > 0) { for (int i = 0; i <= e.size() - 1; i++) { EntityMob em = (EntityMob) e.get(i); LogHelper.info(em.getEntityName()); } }
  7. I know there is a way, but I cannot find it. How can I identify the number of entities around me in a given block radius?
  8. I am trying to display a message to the player, my mods name and version number when the world loads. I created a worldevent.load method but I noticed it fires off three times. I placed the Event_bus register in the Init method. Can someone help me out here? Here i my event class import java.util.logging.Level; import lcspm.lib.LogHelper; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.world.WorldEvent; public class WorldLoadListener { @ForgeSubscribe public void onWorldLoad(WorldEvent.Load event) { String world = null; world = event.world.getWorldInfo().getWorldName(); if (event.world.isRemote) { LogHelper.log(Level.INFO, world + " is remote"); } else { LogHelper.log(Level.INFO, world + " is not remote"); } } } The output is as follows (notice the 3 bold areas): 2013-09-09 11:09:56 [iNFO] [LCSPM] New World1 is not remote 2013-09-09 11:09:56 [iNFO] [LCSPM] New World1 is not remote 2013-09-09 11:09:56 [iNFO] [Minecraft-Server] Preparing start region for level 0 2013-09-09 11:09:57 [iNFO] [Minecraft-Server] Preparing spawn area: 82% 2013-09-09 11:09:58 [iNFO] [sTDOUT] loading single player 2013-09-09 11:09:58 [iNFO] [Minecraft-Server] Player64[/127.0.0.1:0] logged in with entity id 208 at (80.90360859928775, 64.0, 280.1289411981967) 2013-09-09 11:09:58 [iNFO] [Minecraft-Server] Player64 joined the game 2013-09-09 11:09:58 [iNFO] [LCSPM] MpServer is remote I also looked into creating a TickHandler using the WorldLoad but it never seems to fire. Any help would be greatly appreciated.
  9. I figured it out...I didn't have the world.isremote check. It is working now. Thanks!
  10. I am creating an item that will perform a function on right click. I am using the OnItemRightClick function of the Item class, but I noticed that when I right click, the event gets fired off twice. What would be causing this? My code is nothing special at the moment public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { entityplayer.addChatMessage("HELLO WORLD."); itemstack.damageItem(1, entityplayer); return itemstack; } Any help would be greatly appreciated!
  11. Thanks for the quick replies! I will look into this. If I have anymore questions I will ask.
  12. I am storing coordinates that allow players to teleport to. If this is doable in this class, could I get an example of how to do it?
  13. I guess I don't understand you response. (I am new to this minecraft mod world ). How would this Class help me?
×
×
  • Create New...

Important Information

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