Jump to content

Differentiation

Members
  • Posts

    606
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Differentiation

  1. Hey! So for example, if I have to launch the player when they right click, I would launch them a certain amount, like so: @Override public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) { //Just showing an example, I know this looks stupid... player.motionY = 0.5D; player.fallDistance = 0; return new ActionResult<>(EnumActionResult.SUCCESS, stack); } But how do I edit the amount to satisfy all the levels of Jump Boost if the potion effect is active? (Level I, II, III, etc.) Please help
  2. ^ Rename your modId to firstforgemod instead of firstForgeMod; you're not allowed to use capital letters in your modId. Problem solved.
  3. There's your problem. Your CPS mod is errored, remove it. And seriously, update to 1.10.2+ please. Pssst.. Psssttt.. 1.8 will sooner or later not be supported on this Forum as well, just saying.
  4. Sorry Thanks for telling me.
  5. Or you can just do EntityPlayer::capabilities#setPlayerWalkSpeed(Float... amount);
  6. If you could give us a link to the specific files, then it probably wouldn't be such a pain to search for it
  7. I am using Eclipse, but how exactly do I do this?
  8. Agreed.
  9. Oh, I see. I find it better the first way as well because it looks more clean to me. Thanks!
  10. No problem.
  11. Hey, I've noticed Minecraft's formatting for their code looks like this: @Override public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { if (attacker.isSneaking()) { if (target.hurtTime == target.maxHurtTime && target.deathTime <= 0) { target.addVelocity(0D, 0.5D, 0D) } } return super.hitEntity(stack, target, attacker); } It looks spread out, whereas there are some formats that look different like: @Override public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { if (attacker.isSneaking()) { if (target.hurtTime == target.maxHurtTime && target.deathTime <= 0) { target.addVelocity(0D, 0.5D, 0D) } } return super.hitEntity(stack, target, attacker); } The brackets are placed differently if you see what I mean. Does it have an effect on the code or is it just for convenience purpose? I'm just curious. Thanks!
  12. Well, if I were you, I would pick 1.10.2 as it is a very stable and solid version as of today, and it's long since being forgotten. I would not pick 1.6.4-1.8.9 since they are old versions and are soon to be forgotten. Of course this is just my preference, other people have their own. Thanks!
  13. You mean code a modpack? Or combine different compatible mods to make a modpack? Please be specific. Thanks!
  14. Thanks guys, I got it! I just tested for the key bind twice by checking with int flags (the simple way out).
  15. Thanks! I'll definitely have a look.
  16. I mean, I see the point, but teleporting the block to the player every tick may lower the FPS and many people's computers can't handle that. Can I have a look at the tutorial for this (if you have one?) Thanks!
  17. Hey, I was just curious, is there an event that fires when the player attempts to fly (even if the player is on survival)? Thanks!
  18. So I would get MinecraftServer via FMLCommonHandler, got it. Thanks!
  19. What would be the getter? PlayerList players = ?;
×
×
  • Create New...

Important Information

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