Jump to content

Differentiation

Members
  • Posts

    606
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Differentiation

  1. Well, what would be the getter for PlayerList?
  2. Oh, no, no... 1.7.10 is no longer supported in this Forum, any bugs or crashes and you're on your own. Forge will be implementing Java 9 for all versions most likely, but will start to focus more on the newer versions. Hence you must update quickly or else the train will board without you!
  3. No problem. I'm just saying, Forge is in the process of implementing Java 9, so bugs may occur...
  4. Java 9 is not yet supported by Minecraft Forge. Please use Java 8.
  5. Hey, So I know of the way to send a message to the current event player, but I'm not so sure how to send it to all players. For one player: EntityPlayer::addChatMessage(new TextComponentString(msg)); For all players?: Solved. Thanks!
  6. The forge team might have bugs with the newest 1.12.2 forge, so expect there to be bugs, especially if you're using a Mac®.
  7. Hey, So I wanted to make an armor piece that, when worn, it will light the player up (like a torch...) is there a way to do that? Please leave your ideas below! Thanks! ~Differentiation
  8. Sorry, wrong word... I just tested it and it turns out you are correct, it only cancels for one player as long as they meet the "if" expectations. Thanks for all the help guys!
  9. Well, don't start threatening... I just learned how to cancel, of course I might sound noobie.
  10. The typos are because I quickly wrote that code on the top of my head. I'm going to try to test it myself and see if it works or not, I mean maybe it's because I tested on an actual server with two different accounts or something, I will have to see when I can get back to my code tomorrow. Thanks for all the help though!
  11. Like, if you use LivingFallEvent::setCanceled(true); it always sets the event canceled for all players.
  12. It doesn't really work out If you do, lets say, this: If the player is wearing Leafy Boots, the events seems to cancel for every player. @SubscribeEvent public void cancelPlayerFallDamage(LivingFallEvent event) { if (event.getEntity() instanceof Entityplayer { EntityPlayer player = (EntityPlayer) event.getEntity(); if (player.getItemStackFromSlot(EntityEquipmentSlot.FEET).getItem() == DinocraftItems.LeafyBoots) { event.setCanceled(true); //Sets canceled for ALL players if only one player is wearing the item. See my point? } } }
  13. That cancels fall damage for all the players. I only need it to cancel fall damage for EntityPlayer (the current player)... Any other ideas?
  14. Hey So I was making this helmet, and I wanted it to have infinite durability. I tried to add this::setMaxDamage(100000); but the item still loses durability Is there a way to make it so that the green durability bar never shows? Please leave your ideas below. Thanks!
  15. just add the invisibility effect to the player in LivingUpdateEvent.
  16. FML Log? jk Ummm... Are you sure you're running the forge version of Minecraft? You might be running vanilla. Please supply us with more details and information. Thanks!
  17. Oh ya Soz mate, just on my laptop currently, I don't have my Java up... Thanks for the help anyways!
  18. Well, wouldn't that play that "bone break" sound as well? I meant if there is any way to negate fall damage and that sound
  19. Hey, So currently, to cancel only the single player's fall damage I'm using EntityPlayer::fallDistance = 0; to cancel player fall damage... However, whenever the player hits the ground, that "poof" sound is played (the sound meant to imitate the breaking of bones.) I was wondering, is there a way to cancel player fall damage without that sound? Please list the ways below if you have any. Thanks!
  20. I know, but is there just a simple list? That process sounds a bit too time-consuming...
×
×
  • Create New...

Important Information

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