Posted July 31, 201312 yr How would I find out if the player is currently looking into a chest (just single) and how would I get the name of this chest?
July 31, 201312 yr player.openContainer how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 31, 201312 yr Author I couldn't see anything that would get the name in here though? I saw .toString() but I had doubts that was right, is that correct though or should I be seing another method?
July 31, 201312 yr toString might simple the method from java.lang.Object afaik chest dont have names, why do you need something like this how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 31, 201312 yr Author PERFECT. THank you so much man, just what I was looking for, you're like a walking forge dictionary
July 31, 201312 yr yes ok but all chest are going to have the same name right ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 31, 201312 yr Author No, in an anvil you can rename a chest, thus you can have a chest named "edward" .
July 31, 201312 yr oooooooooooooooooooooooooooooohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh TIL! how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 31, 201312 yr Author PERFECT. THank you so much man, just what I was looking for, you're like a walking forge dictionary Eclipse is my friend How the hell do i use sendTextToPlayer() ? I thought this would work: player.sendChatToPlayer("Hi"); but it doesn't, its asking for "chatmessagecomponent" which doesn't accept any params D:.
July 31, 201312 yr sendChatToPlayer(ChatMessageComponent.func_111066_d("HELOOOOOOOO!!!!!!!!!!!!")); how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 31, 201312 yr Author Happen to know how to make it send to the server, and work as a command eg make it so it runs lets for example say "/seed" ? Because I tried it and all it does it outputs it in chat .
July 31, 201312 yr With a MinecraftServer instance: executeCommand("/awesomeCommand");//will use default "fake entity" to notify the admins or a ICommandManager instance: executeCommand(ICommandSender icommandsender, String s);//will use icommandsender name to notify the admins
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.