Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/17/20 in all areas

  1. Actually, I have no certain idea how FoV works in Minecraft. But I if we assume, that it works like an optical camera, I may help you. Here you can see how world is projected to the screen (or matrix in camera). So, to negate FoV deformations you should (using spherical trigonometry) calculate angle distance to center of the screen and take a tangent of it - now you have pure coordinate - distance to target in radius of some sphere. To find a pure coordinate of screen border, you may take tan(FoV/2). Then using screen resolution calculate distance in pixels on screen between center and target. Then again using spherical trigonometry calculate angle between Center-Target and, for example, horizon line, understand that it is unchanged after projection, and get your result vector by this angle and that distance. But please, don't do that! I'm sure, more forge-like way exists to do what you want. For example, this: or net.minecraftforge.client.event.RenderWorldLastEvent.
    1 point
  2. You never register your capability in FMLCommonSetupEvent using CapabilityManager#register.
    1 point
  3. It works totally fine in my dev environment. There must be something messed up with yours, you may want to recreate all folders...etc.
    1 point
  4. As far as I can tell this is code from a non-forge based hacked client made specifically for a Hypixel minigame. Even if this forum was designed to ask other people to write code for you (which it isn't) and your code was for a Forge mod (which I'm pretty sure it isn't), no one here is going to be willing to help with that. Don't cheat at games.
    1 point
  5. Creating excessive base classes is a bad practice against the structure of OOP. Since each class can only inherit one base class, creating base classes just to write less code will prevent deriving classes to extend other classes that are actually useful. For example, with your current setup, if you want to make a sword that glints, you will have to choose between extending SwordItem and ItemEnchantedGlint. This will result in having to mimic the behavior of the unextended class, which would be redundant code (and bad design). For more information, look up "Composition over Inheritance".
    1 point
  6. Please do not look for or download mods from 9minecraft. It is a known mod reposting site. See the FAQ entry and the StopModReposts site for more information. 32.0.67+ has a breaking change, due to removing a method previously used for registering commands. Any mods registering any commands will need an update to work in 32.0.67+. Either downgrade your Forge version to 32.0.66 or delete the Corpse mod for now, until the mod is updated for 32.0.67+.
    1 point
  7. oh. was just doing some simple notepad edits bcus IDE setup wont work will edit that stuf now
    1 point
  8. Yes. Although you would need to replace the player's crafting inventory with a custom one, as well as attach a Capability that stores the data of the current craft to the player.
    1 point
  9. There is none. As I said, take a look at how vanilla does it (WolfModel, WolfRenderer, etc.).
    1 point
  10. https://github.com/Office-Stapler/minecrafttestmod Have a look please thanks so much for the help
    0 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.