{"action":"created","issue":{"url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/3105","repository_url":"https://api.github.com/repos/aidancbrady/Mekanism","labels_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/3105/labels{/name}","comments_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/3105/comments","events_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/3105/events","html_url":"https://github.com/aidancbrady/Mekanism/issues/3105","id":134336994,"number":3105,"title":"Mekanism Jetpack breakable by RotaryCraft Bedrock Sword","user":{"login":"BlueAgent","id":630920,"avatar_url":"https://avatars.githubusercontent.com/u/630920?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueAgent","html_url":"https://github.com/BlueAgent","followers_url":"https://api.github.com/users/BlueAgent/followers","following_url":"https://api.github.com/users/BlueAgent/following{/other_user}","gists_url":"https://api.github.com/users/BlueAgent/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueAgent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueAgent/subscriptions","organizations_url":"https://api.github.com/users/BlueAgent/orgs","repos_url":"https://api.github.com/users/BlueAgent/repos","events_url":"https://api.github.com/users/BlueAgent/events{/privacy}","received_events_url":"https://api.github.com/users/BlueAgent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T16:55:01Z","updated_at":"2016-02-18T06:49:05Z","closed_at":null,"body":"https://github.com/ReikaKalseki/Reika_Mods_Issues/issues/627\r\nRelevant files:\r\nhttps://github.com/ReikaKalseki/RotaryCraft/blob/f7e9b3f91553aae85449dd5b5ce419456a74c32c/Items/Tools/Bedrock/ItemBedrockSword.java\r\nhttps://github.com/aidancbrady/Mekanism/blob/bfd32a1c3e5cc97b90040e43270c6e87d5180189/src/main/java/mekanism/common/item/ItemJetpack.java\r\n\r\nMekanism overrides damageArmor from ItemArmor to do nothing.\r\ndamageArmor is used when the entity wearing the armor is taking damage.\r\n\r\nThe bedrock sword in addition to dealing damage, does durability damage directly to the item. https://github.com/ReikaKalseki/RotaryCraft/blob/f7e9b3f91553aae85449dd5b5ce419456a74c32c/Items/Tools/Bedrock/ItemBedrockSword.java#L130\r\n\r\nMekanism sets the maxDamage of the item. https://github.com/aidancbrady/Mekanism/blob/bfd32a1c3e5cc97b90040e43270c6e87d5180189/src/main/java/mekanism/common/item/ItemJetpack.java#L40\r\nThis causes the jetpack to become damageable.\r\n\r\nMekanism uses the durability value of the item to display the fuel level. If the item is not damageable, the damage bar does not render.\r\n\r\nPotential solution:\r\nSet maxDamage to 0 to make the item unbreakable.\r\nOverride Item.showDurabilityBar to return true. (By default it returns true if the item is damageable).\r\nOverride Item.getDurabilityForDisplay to return the fuel level. (By default it returns the ratio damage/maxDamage)\r\n\r\nOff topic: I love both mods and want to make a mod too some day.\r\nEdit: Changed links to files to permalinks"},"comment":{"url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/comments/185568444","html_url":"https://github.com/aidancbrady/Mekanism/issues/3105#issuecomment-185568444","issue_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/3105","id":185568444,"user":{"login":"BlueAgent","id":630920,"avatar_url":"https://avatars.githubusercontent.com/u/630920?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueAgent","html_url":"https://github.com/BlueAgent","followers_url":"https://api.github.com/users/BlueAgent/followers","following_url":"https://api.github.com/users/BlueAgent/following{/other_user}","gists_url":"https://api.github.com/users/BlueAgent/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueAgent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueAgent/subscriptions","organizations_url":"https://api.github.com/users/BlueAgent/orgs","repos_url":"https://api.github.com/users/BlueAgent/repos","events_url":"https://api.github.com/users/BlueAgent/events{/privacy}","received_events_url":"https://api.github.com/users/BlueAgent/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T06:49:04Z","updated_at":"2016-02-18T06:49:04Z","body":"Is also destroyed by Ars Magic 2's fire guardian melt armor spell when fuel level is less than 25%.\r\nhttps://github.com/Mithion/ArsMagica2/blob/5bc4c93979b6170d52cc9c7110f490b308ed058b/src/main/java/am2/spell/components/MeltArmor.java#L55"}}