{"action":"created","issue":{"url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/8","labels_url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/8/comments","events_url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/8/events","html_url":"https://github.com/SanAndreasP/SAPManagerPack/issues/8","id":103395643,"number":8,"title":"How to add custom hooks?","user":{"login":"Starless2001","id":7054515,"avatar_url":"https://avatars.githubusercontent.com/u/7054515?v=3","gravatar_id":"","url":"https://api.github.com/users/Starless2001","html_url":"https://github.com/Starless2001","followers_url":"https://api.github.com/users/Starless2001/followers","following_url":"https://api.github.com/users/Starless2001/following{/other_user}","gists_url":"https://api.github.com/users/Starless2001/gists{/gist_id}","starred_url":"https://api.github.com/users/Starless2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starless2001/subscriptions","organizations_url":"https://api.github.com/users/Starless2001/orgs","repos_url":"https://api.github.com/users/Starless2001/repos","events_url":"https://api.github.com/users/Starless2001/events{/privacy}","received_events_url":"https://api.github.com/users/Starless2001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T00:42:57Z","updated_at":"2015-08-27T05:50:43Z","closed_at":null,"body":"You said we could use this coremod to add custom hooks, how do we do that? and which new events you already added? Im interested in 2 events: when the player held item gets changed and another when the player's armorInventory gets changed."},"comment":{"url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/comments/135302061","html_url":"https://github.com/SanAndreasP/SAPManagerPack/issues/8#issuecomment-135302061","issue_url":"https://api.github.com/repos/SanAndreasP/SAPManagerPack/issues/8","id":135302061,"user":{"login":"SanAndreasP","id":1854863,"avatar_url":"https://avatars.githubusercontent.com/u/1854863?v=3","gravatar_id":"","url":"https://api.github.com/users/SanAndreasP","html_url":"https://github.com/SanAndreasP","followers_url":"https://api.github.com/users/SanAndreasP/followers","following_url":"https://api.github.com/users/SanAndreasP/following{/other_user}","gists_url":"https://api.github.com/users/SanAndreasP/gists{/gist_id}","starred_url":"https://api.github.com/users/SanAndreasP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanAndreasP/subscriptions","organizations_url":"https://api.github.com/users/SanAndreasP/orgs","repos_url":"https://api.github.com/users/SanAndreasP/repos","events_url":"https://api.github.com/users/SanAndreasP/events{/privacy}","received_events_url":"https://api.github.com/users/SanAndreasP/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T05:50:43Z","updated_at":"2015-08-27T05:50:43Z","body":"well, you fork it, create a new event*, add this event/hook via ASM and make a PR.\r\nI'll review an possibly merge it.\r\n*an event is not always necessary, see the horse armor hook.\r\n\r\nTo look on what hooks/events are already implemented (also to get a feel on how I do my ASM), see here:\r\nhttps://github.com/SanAndreasP/SAPManagerPack/tree/master/java/de/sanandrew/core/manpack/transformer\r\nhttps://github.com/SanAndreasP/SAPManagerPack/tree/master/java/de/sanandrew/core/manpack/util/event"}}