Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Iron1601

Iron1601

Members
 View Profile  See their activity
  • Content Count

    30
  • Joined

    February 16
  • Last visited

    Sunday at 05:10 PM

Community Reputation

0 Neutral

About Iron1601

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Iron1601

    Right Way To Add Arbitrary Data To PlayerEntities

    Iron1601 replied to Iron1601's topic in Modder Support

    Thank you very much.
    • February 24
    • 4 replies
  2. Iron1601

    Right Way To Add Arbitrary Data To PlayerEntities

    Iron1601 replied to Iron1601's topic in Modder Support

    Thanks. I do wonder though, why are they called Capabilities? What does that mean in this context? I would imagine it's the ability for an object to do something, which then I'm not sure how that translates to checking if it is doing it, but then there are types and also "facing" which I don't think is like in world directions.
    • February 24
    • 4 replies
  3. Iron1601

    Right Way To Add Arbitrary Data To PlayerEntities

    Iron1601 posted a topic in Modder Support

    I want to have a field or some attribute to PlayerEntity that indicates whether the player is pressing a key. I've tried DataManagers but the id value overlap makes me think that is the wrong way to do it on top of causing exceptions. I've also tried Lists and such to store players that did but sidedness and thread safety make me think thats also the wrong way. My question is how do I add this boolean attribute in such a way that avoids sidedness and is the proper way? Thanks.
    • February 24
    • 4 replies
  4. Iron1601

    Registering Extensions Of PlayerRenderer

    Iron1601 replied to Iron1601's topic in Modder Support

    I wanted to have something that depends on a players look direction and stuff like that so I wondered how to add that to the renderer. Shortly after I found how to do that but I couldnt find a way to delete the reply, its all good now. Thanks
    • February 22
    • 5 replies
  5. Iron1601

    Registering Extensions Of PlayerRenderer

    Iron1601 replied to Iron1601's topic in Modder Support

    Would you happen to know how to pass additional data to the model's render() method?
    • February 22
    • 5 replies
  6. Iron1601

    Registering Extensions Of PlayerRenderer

    Iron1601 replied to Iron1601's topic in Modder Support

    Seems to work, thanks.
    • February 22
    • 5 replies
  7. Iron1601

    Falling Blocks 1.16.4

    Iron1601 replied to Orange_Boi7's topic in Modder Support

    GeeksForGeeks and w3schools have pretty nice explanations. Just look up "Java Inheritance" you'll find it. In general you want to extend FallingBlock I think.
    • February 22
    • 10 replies
  8. Iron1601

    Registering Extensions Of PlayerRenderer

    Iron1601 posted a topic in Modder Support

    I'm trying to add an attachment to a PlayerEntity without adding an entity that follows the player. I've narrowed it down to extending PlayerRenderer but the problem is that it uses AbstractClientPlayerEntity which I couldn't find the EntityType for it (if it even exists), which I think I need to register the Renderer (RenderingRegistry.registerEntityRenderingHandler). Is there a different way to register the Renderer or some other way to extend PlayerRenderer? Thanks.
    • February 22
    • 5 replies
  9. Iron1601

    Smooth Entity Motion

    Iron1601 posted a topic in Modder Support

    I've been working on a projectile type entity but I cant get it to move smoothly without extending some other class that adds logic that interferes with what I'm trying to do or straight up breaks everything. I'm trying to simply get it to stop when hitting a wall and to stick to an entity when hitting it and moving with it. Extending ThrowableEntity makes it break on impact. Extending ArrowEntity forces some methods that are unrelated and causes nullPointerExceptions referring to some data managers. Extending ItemEntity is the closet I've gotten to what I'm trying to do, however continues to slide on the floor. Working around any of these cause it to either stop before hitting the ground, go into blocks, move erratically or rubber-band. I would imagine some sort of ArrowEntity type thing will work best since it has pretty much all of what I need but extending it causes problems and extending AbstractArrowEntity adds methods and sometimes crashes. Seeing this I tried controlling either the motion or position directly but setPosition every tick makes it jitter and rubberband, setMotion doesn't affect anything directly, from what I've seen, and instead has to go through super.tick() (for ProjectileEntity) or move() (which forces it into the ground sometimes). I would appreciate any help especially regarding the correct way to do this, since seemingly every Entity class has a different way of doing it, sometimes using privated fields or methods which are no fun.
    • February 19
  10. Iron1601

    Projectile Entity Constructor Missing Access Level Modifier Preventing Direct Extension

    Iron1601 replied to Iron1601's topic in Modder Support

    I apologize for this dragging on however, it appears the winning formula is With your context clues, other AT's and patience I found this working. Thanks for the help.
    • February 18
    • 31 replies
  11. Iron1601

    Projectile Entity Constructor Missing Access Level Modifier Preventing Direct Extension

    Iron1601 replied to Iron1601's topic in Modder Support

    I meant the AT'd mod class wasn't the problem, the AT is almost certainly the problem. Excuse me if that wasn't clear. I would imagine this is a solvable problem just by someone that knows the syntax.
    • February 18
    • 31 replies
  12. Iron1601

    Forge Installation Problems

    Iron1601 replied to AFosto's topic in Support & Bug Reports

    Old version of java maybe?
    • February 18
    • 4 replies
  13. Iron1601

    Projectile Entity Constructor Missing Access Level Modifier Preventing Direct Extension

    Iron1601 replied to Iron1601's topic in Modder Support

    I'm looking to make the constructor of ProjectileEntity public or at least protected and im getting which to me means that there is a syntax error. I haven't managed to locate the problem. Any help would be appreciated.
    • February 18
    • 31 replies
  14. Iron1601

    [1.16]Each argument of ProjectileHelper#rayTraceEntities

    Iron1601 replied to Zemelua's topic in Modder Support

    I think it goes only up to 3 blocks because thats the reach of a regular PlayerEntity, might be wrong though/ I think your question is how to find entities on a line from one Vector3d to another. Now I know this isnt really your question but there is another way to trace entities. You create an AABB (AxisAlignedBoundingBox) starting at your start vector and ending at the end vector and using the world object you are raytracing in you use getEntitiesWithinAABB to get the entities that are in the cube with a vertex at the start vector and the opposite vertex at the end vector. You then iterate over the entities and use Entity#getBoundingBox#rayTrace to check if the entity is on the line. The parameters of AABB are the top corner and the opposite corner. The parameters of getEntitiesWithinAABB are a class object which determines which entities the function is checking for in the bounding box, i.e if you give it ProjectileEntity.class it will only return a list of entities that extend ProjectileEntity, and the bounding box AABB. The parameters of rayTrace are the start and end vector that define the line you are checking for. If you just want to know if a line goes through the boundingBox of an entity entity.getBoundingBox.rayTrace(start, end) should do it. You can also use something like World#getEntitiesWithinAABBExcluding to exclude the shooter. I must say aswell, looking at it now ProjectileHelper#rayTraceEntities seems to do that ^ ish and take the same parameters needed there so hope it explained that too. Hope this was helpful and answered your question
    • February 17
    • 1 reply
  15. Iron1601

    Projectile Entity Constructor Missing Access Level Modifier Preventing Direct Extension

    Iron1601 replied to Iron1601's topic in Modder Support

    So I do need a return type in the AT. I made a new project to make sure the only things that could be a problem was the AT and AT'd the Mod class to not mess with minecraft or forge's internal libraries. In general I don't think that matters a whole lot since that doesn't seem to be the problem.
    • February 16
    • 31 replies
  • All Activity
  • Home
  • Iron1601
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community