Jump to content

d4rkfly3r

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • URL
    snowie.tech
  • Location
    Southern California, USA

Recent Profile Visitors

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

d4rkfly3r's Achievements

Tree Puncher

Tree Puncher (2/8)

2

Reputation

  1. Thanks for the response, i thought it would work at first, but the same thing happens, the player bounces up and down really quickly Ill try and get a video of what it does -d4rkfly3r EDIT: It will be up sometime soon here: http://youtu.be/isHvmEyaCJM
  2. Hello, I am working on a mod that changes the players speed based on armor and certain other attributes. I have the mod almost done, except for the phase suit. I would like it to be so that when the player reaches a certain speed, the player is then able to walk through blocks on the same y plane (so he would be able to move forward/backward/sideways, BUT NOT UP AND DOWN). I have a method that checks to see if the player is up at or past a certain speed, and if he is, sets him into no-clip mode, and then constantly checks his y value and keeps it at the same level, but this doesn't work very well. I don't know if there is another way to do this, but any help would be greatly appreciated! -d4rkfly3r
  3. In your command class, if you add this method: @Override public List getCommandAliases() { ArrayList<> al = new ArrayList<String>(); al.add("Alias"); al.add("another Alias"); //if needed al.add("and so on"); //if needed return this.aliases; } it should add the alias(es) to that command. I.E. if my command is terrain, i might add alias(es) tn and tr to the alias list --d4rkfly3r
  4. I screwed up, i was looking at my old code, what i actually ended up doing was listening for when the client recived the chat and the i edited the message then, cancelled the event, then called it again with my custom message. But i dont recommend using this way -d4rkfly3r
  5. @diesieben07 To be honest, i thought the same thing at first, but it works fine for me, though when i get home from work, i am going to try it your way, because it makes everything a lot easier. -d4rkfly3r
  6. can you post your access transformer config file?
  7. What diesieben07 said should work, but i already had this written out so i figured i might as well as post it. I had a problem similar to this a couple of days ago, and i got around it by making an access transformer that changed the username in the ServerChatEvent to be not final. (This tutorial is a little confusing in the middle, but it helps: http://www.minecraftforge.net/wiki/Using_Access_Transformers ) That worked pretty well. I would however recommend using diesieben07's way if it it works for you as this way is a little more complicated and probably shouldn't be used unless absolutely necessary... -d4rkfly3r
  8. I don't know how much of this you have already done. But, if you are making a custom egg or something similar, you probably should make a custom render for it (just Google it). After you make a custom render for it, which should be pretty easy as you can pretty much copy the RenderSnowball class if you want to, you can find a method (or create it if there isn't one) called: func_110775_a Edit the return line to a new ResourceLocation("path to image"); for me the whole method looks like @Override protected ResourceLocation func_110775_a(Entity entity) { return new ResourceLocation("endless:textures/entitys/bolt.png"); } I hope this helps a little bit. If you can't find anything on making a custom render, just pm and I can show you how to make one. -d4rkfly3r
  9. I would try that, except that for some reason, that method isn't even being called. I have used the @ForgeSubscribe before, and have no idea why it isn't working here. I have also tried every other annotation that i though might work in this case, but none of them are: @Subscribe, @EventHandler EDIT: I fixed the method not being called, i realized that i never registered the events with the EVENT_BUS. no everything is working great.
  10. Hello, I have been working on a mod that adds a couple dimensions. In one of these dimensions, I would like there to be a lower gravity (ie. player jumps ~3 blocks instead of 1). I know there is a way to do this, because I have seen it done before, but I cannot for the life of me figure out how to get it to work right. I have tried a couple of different things: I have also tried hooking directly into the player class, and adding my own listener (using reflection) If anyone can help me get this to work, or at least point me in the right direction, it would be greatly appreciated, as this is about the last thing left to do in this mod. If you need to see more of the code, just PM me. Thanks!
×
×
  • Create New...

Important Information

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