Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Speed and armor not correctly "transferred" to vanilla clients
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
HoldYourWaffle

Speed and armor not correctly "transferred" to vanilla clients

By HoldYourWaffle, December 20, 2020 in Support & Bug Reports

  • Reply to this topic
  • Start new topic

Recommended Posts

HoldYourWaffle    0

HoldYourWaffle

HoldYourWaffle    0

  • Tree Puncher
  • HoldYourWaffle
  • Members
  • 0
  • 2 posts
Posted December 20, 2020

I'm running a Forge server on 35.1.13 (also tested with 35.1.4), and discovered that certain attributes are not "transferred correctly" to vanilla clients (I'm only running server-side mods).

I've noticed this with armor and speed.

 

Armor's damage reduction is applied correctly, but clients don't see the little chestplates above their hotbar.

Speed is not applied at all, although the effect icon is visible.

I also tested jump boost and absorption, and both seem to work correctly.

 

Both effects work correctly when the client is also running Forge.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7687

diesieben07

diesieben07    7687

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7687
  • 56228 posts
Posted December 21, 2020

Thanks for the report.

This was actually me messing up a fix for vanilla clients showing errors due to Forge's custom attributes.

I've fixed up the fix: https://github.com/MinecraftForge/MinecraftForge/pull/7560

  • Thanks 1
  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Iron1601
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601 · Posted 19 minutes ago

      Thank you very much.
    • NullDev
      [Solved] Custom Slime Block not working with Pistons

      By NullDev · Posted 21 minutes ago

      Turns out it was a problem with IntelliJ. Not sure what, but I restarted it and everything is working fine now.
    • diesieben07
      Right Way To Add Arbitrary Data To PlayerEntities

      By diesieben07 · Posted 23 minutes ago

      Because they are originally intended to support "this object can do X"-scenarios. For example: "this tile entity has an inventory" (or in capability-speak: "this tile entity has the inventory capability"). For example, to get an object's inventory capability you call thing.getCapability(ITEM_HANDLER_CAPABILITY, null). This gives you a LazyOptional, which will either be present (thing has an inventory) or not (thing doesn't have an inventory). The facing can be used to convey additional info. For blocks it means the actual facing (a furnace exposes a different inventory on the top than on the bottom), for other things it could mean all kinds of things (entities use sides to give access to separate inventories for just armor or just the held item).   Additionally, you can also use AttachCapabilitiesEvent to attach capabilities to "foreign objects". What you attach here is not really a capability, but a capability provider ("something that can have capabilities") - the capabilities given by this provider will also be exposed by the "foreign object". This provider is special, in that it can also save data, which will be attached to the "foreign object". This whole mechanism allows you to: Write your own capability which stores the data you need. Write your own provider which manages serialization of that data and exposes the capability. Attach that provider to all players using AttachCapabilitiesEvent - players will now store your data.
    • cadbane86140
      Minecraft: Harry Potter Episode #2- Getting Sorted into our Houses!

      By cadbane86140 · Posted 23 minutes ago

      Hello There! Today is the day we get sorted into our Hogwarts Houses! But it is very different than it is in the movies, we actually have to answer a series of questions and then we will be put into the houses. But during our questions of course we have to meme during it which just makes up for some hilarious moments! I hope you all enjoy this video and if you did don't forget to like and sub for more!  
    • diesieben07
      [Solved] Custom Slime Block not working with Pistons

      By diesieben07 · Posted 32 minutes ago

      Cannot reproduce:
  • Topics

    • Iron1601
      4
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601
      Started 1 hour ago

    • NullDev
      8
      [Solved] Custom Slime Block not working with Pistons

      By NullDev
      Started 18 hours ago

    • cadbane86140
      0
      Minecraft: Harry Potter Episode #2- Getting Sorted into our Houses!

      By cadbane86140
      Started 23 minutes ago

    • KBomb
      23
      Mods aren't loading on Forge 1.16.5 server

      By KBomb
      Started Yesterday at 07:32 PM

    • Jeldrik
      8
      Starting GUI on key Input

      By Jeldrik
      Started 19 hours ago

  • Who's Online (See full list)

    • pokmon987
    • ColumnDragon
    • rinlix2
    • spynery
    • lupicus
    • sonofgaming
    • Xrated_junior
    • diesieben07
    • NullDev
    • loordgek
    • vemerion
    • Iron1601
    • Aecht_Rob
    • cadbane86140
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Speed and armor not correctly "transferred" to vanilla clients
  • Theme

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