Posted January 10, 20169 yr I'm trying to attach in integer to a player that can be referenced by other items and I'm new to the modding scene, is there a way to do it or would i save it somewhere else, i need it however to be independent to the player so each player has their own value and the item accesses the player who's using its integer.
January 10, 20169 yr It sounds like you need IExtendedEntityProperties . coolAlias has a tutorial on the system here. Jabelar has one here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
January 11, 20169 yr In addition to Choonster's answer: DO NOT use the packet handling method provided in coolAlias's tutorial. It is outdated, and bulky. Use SimpleImpl, docs are here, and a in depth tutorial here. I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
January 12, 20169 yr In addition to Choonster's answer: DO NOT use the packet handling method provided in coolAlias's tutorial. It is outdated, and bulky. Use SimpleImpl, docs are here, and a in depth tutorial here. I note quite frequently throughout the tutorial that the packet code is old, and link to more recent packet handling tutorials, with a big note: STOP!!! The packet code below is for 1.6.4 - if you are coding for 1.7.2 or above, please see the actual demo of this tutorial for a current network implementation. You can find it here: https://github.com/coolAlias/Tutorial-Demo/tree/master/src/main/java/tutorial/network I considered updating the actual packet code in the tutorial, but I consider it medicine against copy / pasting. I can't help it if one cannot be bothered to actually read the tutorial. http://i.imgur.com/NdrFdld.png[/img]
January 12, 20169 yr I honestly completely missed that part of the tutorial. Just thought I'd mention it to him in case he misses it too. I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.