Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/25/18 in Posts

  1. I think there are two types of people who don't post enough information to get the help they need: 1) people who think that the "experts" on the forum magically know all the answers off the top of their heads, 2) people who think that their mod is so special that they are worried about people stealing it. For type #1, I try to educate them that experts are mostly people that are just really good at researching. Even if we think we know the answer, we usually double-check our information because programming is about being exact -- the name of the method has to be exactly right, and so forth. If I'm answering a person's question I will usually pull up the Minecraft or Forge source, pull up my own implementations, look in github, check StackOverflow, etc. to gain confidence in my answer. The most important thing for these people to know is that the problem is usually very specific to their code. It is very difficult for anyone else to know what sort of typo they put into their code, or what sort of logic error, without seeing the code. Secondly, people often don't understand that the logs usually give a very good idea of what is wrong, so teaching people to really look at the error log is helpful. In a perfect world a person who comes here for help posts all the information, but also has put in their own effort to try to understand it. For type #2, I can only say that honestly no one here is interested in stealing other people's ideas and if you are stuck on coding then it is doubtful your mod is so advanced that it is worth stealing. But I suppose it is natural for people to be protective of their ideas, it's just that it is hard to help someone who isn't sharing.
    1 point
  2. Successfully trolled expert modder
    1 point
  3. Of course it doesn't, because this event is only fired on client, so you can get the client player "Minecraft.getMinecraft().player" as usual.
    1 point
  4. also put registerRender in ModelRegistryEvent using Subscribe Events so that it gets called at the proper time
    1 point
  5. For whoever is struggling with this like i did: private static final UUID setSpeedUUID = UUID.fromString("015ad548-47e6-11e8-842f-0ed5f89f718b"); double speed = 0.1D; int operations = 0; (explained below in quote) String name = 'anything here'; IAttributeInstance movement = player.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED); //Player is EntityPlayerMP or EntityPlayer AttributeModifier setSpeedBonus = new AttributeModifier(setSpeedUUID, name, Math.abs(speed), operations); if(movement.getModifier(setSpeedUUID) != null) { movement.removeAllModifiers(); } movement.applyModifier(setSpeedBonus);
    1 point
×
×
  • Create New...

Important Information

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