D3_M0N Posted October 8, 2014 Share Posted October 8, 2014 Hi, i need ot know how i get my custom bow to change the players FOV. i tryed some code but its to old to work with 1.7.10. Quote Link to comment Share on other sites More sharing options...
D3_M0N Posted October 8, 2014 Author Share Posted October 8, 2014 ive tried this in my bow class @SideOnly(Side.CLIENT) @SubscribeEvent public void onUpdateFOV(FOVUpdateEvent event) { float fov = event.fov; if( event.entity.isUsingItem() && event.entity.getItemInUse().getItem() == ItemVars.Bow1 ) { int duration = event.entity.getItemInUseDuration(); float multiplier = duration / 10.0F; if( multiplier > 1.0F ) { multiplier = 1.0F; } else { multiplier *= multiplier; } fov *= 1.0F - multiplier * 0.8F; } event.newfov = fov; } hmmmm wont work^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.