Separate names with a comma.
Comments in 'Plugin Development' started by KHAV, Aug 16, 2016.
How I Can Make Armours And Tools Not break?
Figure out how to glitch it to not break or take damage
Easiest way will be to do $item->setDamage(0); at events like BlockBreakEvent, EntityDamageEvent eg.
Okay i put this in entitydamageEvent?
Yes, if its for armor and weapons
Okay I am Make The Plugin and the server is started But It is Not Work And In Console Not Write For Me AnyThing
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.
I just said part of the stuff you said
I already have modified the source code with internal plugins
Can you upload the plugin?
I think i have some proplems but i am new on plugins
This should work
I really thank you but it is work on server but the armor and tools breaking ;(
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:
Measured in percentage of his PocketMine API skill level.
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.
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.
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.
I think a nbt existst to make a item unbreakable