Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No breaking ?

Comments in 'Plugin Development' started by KHAV, Aug 16, 2016.

  1. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Hi

    How I Can Make Armours And Tools Not break?
  2. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    Figure out how to glitch it to not break or take damage
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Easiest way will be to do $item->setDamage(0); at events like BlockBreakEvent, EntityDamageEvent eg.
    applqpak likes this.
  4. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Okay i put this in entitydamageEvent?
  5. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Yes, if its for armor and weapons
    applqpak likes this.
  6. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Okay I am Make The Plugin and the server is started But It is Not Work And In Console Not Write For Me AnyThing
  7. EdwardAllington
    Offline

    EdwardAllington Active Member

    Joined:
    Jan 29, 2015
    Posts:
    78
    Minecraft User:
    Edwardthedog2
    Never modify PocketMine's source code! Unless you're just bumping the version (which is still pretty risky), modifying the code of PocketMine its self can break the entire server. Also, I think he means, that the console won't display any messages for him.
    applqpak and SOFe like this.
  8. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    I just said part of the stuff you said
  9. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    I already have modified the source code with internal plugins
  10. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Can you upload the plugin?
    applqpak likes this.
  11. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Ok take

    I think i have some proplems but i am new on plugins :)

    Attached Files:

  12. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    This should work

    Attached Files:

    applqpak likes this.
  13. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    I really thank you but it is work on server but the armor and tools breaking ;(
  14. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    According to the results I collected from a vernier caliper and detecting the beta radiation particles emitted from his brain and passed through the network cables over continents, his PocketMine API skill level is:
    100.PNG
    Measured in percentage of his PocketMine API skill level.
    Last edited: Aug 19, 2016
  15. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    Yes, thread is related to programming obviously because this is PocketMine forum, but we discuss PocketMine development here, and about armour durability in specific, not just general programming. So it is off topic, and we should not go too far.
    It is not about making armours, it's about keeping its durability away from 0 to stop it from breaking.
    Last edited: Aug 19, 2016
    EdwardAllington and applqpak like this.
  16. EdwardAllington
    Offline

    EdwardAllington Active Member

    Joined:
    Jan 29, 2015
    Posts:
    78
    Minecraft User:
    Edwardthedog2
    Okay, so yes, it's basically about programming. But, it's specifically about how to disable armor and tool damage. Not to ask people how good their skills are with the PocketMine API. Infact, unless they want to tell you, it's really none of anyone else's business. I'm not going to argue with you. But please, take these things into consideration.
    applqpak likes this.
  17. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    I would like to add that PocketMine API is knowledge, not skill. You either know or not know. Skill is a boundless measure, and knowledge is a finite measure. There are skills in how you use the PocketMine API, which is actually programming skills.
  18. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
  19. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    I think a nbt existst to make a item unbreakable

Share This Page

Advertisement