#Save the attribute value in a tooltip but not the attribute's name

8 messages · Page 1 of 1 (latest)

gray lake
#

I'm messing around with tooltips and I'd like to save the values of each attribute on the tooltip but not the name itself. Here's what I am using:

It'll return (since I use Projectile Damage Attributes mod): 6 Projectile Damage. Is there a way I can save the 6 but not the rest of the string?

willow sparrowBOT
#

Paste version of bow_test.js from @gray lake

tepid grailBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

mossy hinge
#

You have so much power in your hands to get that info from and you want to grab it from the worst possible place in Minecraft?

Maybe you are thinking too small, try to explain what you want to achieve as a end goal and we may see a better picture for your needs

willow sparrowBOT
#

The XY problem is when you really want to do X, and you think that Y can achieve X. However, you can't get Y to work, and so ask for help exclusively about Y.

This can lead to a lot of confusion from the people trying to help you, as Y can seem like a very random thing to want to do, and a lot of the time isn't the best way to achieve X anyway.

Its fine to ask about Y, just always include some context about X so you can be put on the right track if Y won't do X well, or there is an easier way to do X.

gray lake
#

Is there a getAttribute function? I've looked in past threads before and couldn't find/comprehend if there was a method I could use to get that value

mossy hinge
#

yes there is