Jump to content

Clarinetncleats3

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Clarinetncleats3's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Oooh thanks for telling me. What would be the better way?
  2. Uhhh... did you comment on the wrong post? Because your post makes no sense in this context.
  3. Are you just trying to put a message in a player's chat? It looks like you have an EntityPlayerMP, so what you can do is: EntityPlayerMP epmp = Whatever it is equal to; if (epmp instanceof EntityPlayer){ //Can epmp be turned into a player? (Won't throw an error if false) EntityPlayer player = (EntityPlayer) epmp; //Turn epmp into a player. (Would throw an error if it didn't work) player.addChatMessage("This is the message you will send to the player!"); }
  4. Is this what you meant? ... Because it doesn't work.
  5. In other words, what you need is this World world = Minecraft.getMinecraft().theWorld; world.setBlock(plX, plY, plZ, 500); //Or whatever
  6. HI, In the mod I'm making, I want the user to be able to type "SLEnable" to enable the mod and "SLDisable to disable the mod. This works fine while ingame, but when you exit the game and rejoin, it goes back to the default state of being enabled. After looking in the forge/mcp/jars/config directory, I found that the configuration file is simply not changing when these "commands" are being run. I looked at this post: http://www.minecraftforge.net/forum/index.php/topic,7746.0.html. I changed my boolean "Enabled" variable to a Property and used the Property.set() method but the config file is still not changing. My Body Class (SLMain.java): My ChatHandler class (SLChatHandler.java): Why is the Enabled property not changing in the configuration file? By the way, disregard the fact that the MinecraftForge.EVENT_BUS.register(new SLChatHandler()); was in the postInit instead of the load. I did that in an attempt to troubleshoot something earlier. Thanks, Clarinetncleats3
×
×
  • Create New...

Important Information

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