{"action":"created","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3759","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3759/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3759/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3759/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3759","id":211866155,"number":3759,"title":"Prevent player from dying due to zero max health","user":{"login":"asanetargoss","id":12486152,"avatar_url":"https://avatars3.githubusercontent.com/u/12486152?v=3","gravatar_id":"","url":"https://api.github.com/users/asanetargoss","html_url":"https://github.com/asanetargoss","followers_url":"https://api.github.com/users/asanetargoss/followers","following_url":"https://api.github.com/users/asanetargoss/following{/other_user}","gists_url":"https://api.github.com/users/asanetargoss/gists{/gist_id}","starred_url":"https://api.github.com/users/asanetargoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asanetargoss/subscriptions","organizations_url":"https://api.github.com/users/asanetargoss/orgs","repos_url":"https://api.github.com/users/asanetargoss/repos","events_url":"https://api.github.com/users/asanetargoss/events{/privacy}","received_events_url":"https://api.github.com/users/asanetargoss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-03-04T08:38:00Z","updated_at":"2017-03-04T23:14:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/3759","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3759","diff_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3759.diff","patch_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3759.patch"},"body":"This occurs most readily when two mods both decrease max health at the same time. If the mods do this when a player first spawns, this will result in the player being caught in an infinite death loop."},"comment":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/comments/284191896","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3759#issuecomment-284191896","issue_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3759","id":284191896,"user":{"login":"asanetargoss","id":12486152,"avatar_url":"https://avatars3.githubusercontent.com/u/12486152?v=3","gravatar_id":"","url":"https://api.github.com/users/asanetargoss","html_url":"https://github.com/asanetargoss","followers_url":"https://api.github.com/users/asanetargoss/followers","following_url":"https://api.github.com/users/asanetargoss/following{/other_user}","gists_url":"https://api.github.com/users/asanetargoss/gists{/gist_id}","starred_url":"https://api.github.com/users/asanetargoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asanetargoss/subscriptions","organizations_url":"https://api.github.com/users/asanetargoss/orgs","repos_url":"https://api.github.com/users/asanetargoss/repos","events_url":"https://api.github.com/users/asanetargoss/events{/privacy}","received_events_url":"https://api.github.com/users/asanetargoss/received_events","type":"User","site_admin":false},"created_at":"2017-03-04T23:14:33Z","updated_at":"2017-03-04T23:14:33Z","body":"It's a mod intercompatibility issue. Any mod which decreases the max health by a constant is forced to anticipate changes in the max health of other mods, eliminating the benefits of the entity attribute abstraction.\r\n\r\nI used a command block to give myself an iron sword with a modifier which reduced my max health to 0, and it did not kill me, so death via. max health is clearly not intended vanilla behavior.\r\n\r\n`/give @p minecraft:iron_sword 1 0 {AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:-21.0,Operation:0,UUIDLeast:001337,UUIDMost:011337,Slot:\"mainhand\"}]}`\r\n\r\nI'm not sure if it's possible to change the base value of max health via. commands, which may present another use case. I'll get back to you if it does."}}
{"actor":{"display_login":"asanetargoss"}}