Posted February 22, 20232 yr I have a custom block, and I'd like to add an image into its tooltip. I have created a class that implements ClientToolTipComponent and TooltipComponent so I can draw the image. I have overridden appendHoverText on my custom block, but there doesn't appear to be any way to add my custom component or any image that I can see. It looks like I can only add text-based components. Do I have to use the GatherComponents tooltip event?
February 22, 20232 yr Unless something like RegisterClientTooltipComponentFactoriesEvent exists in 1.18.2, you'll need to use one of the RenderTooltipEvents to handle the rendering logic instead.
February 23, 20232 yr Author I don't see an event like that in 1.18.2. Looks like I'm stuck with the RenderTooltipEvents. Thanks!
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.