CraftTweaker

CraftTweaker

151M Downloads

[Bug] - Clear Tooltip with specific metadata

BasieBrinkie opened this issue ยท 0 comments

commented

Intro:

I want to rename a few tooltips. For that the feature item.clearTooltip(); came in handy. There is only one catch it removes all tooltips of the same ID. e.g. if you try to clear libvulpes:productingot:6 it also clears procductingot:0, productingot:1, etc.

Issue Description:

Clear a tooltip from a item with a metadata attached and it erases all item tooltips with the same ID
Note: This also happens with other mods than libvulpes. Mekanism, thermal foundation, techguns also show this behaviour.

What happens:

All items with ID metal0 have no names and tooltips

What you expected to happen:

only clear out the name and tooltip of the item with the corresponding metadata and leave the other intact.

Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):

https://pastebin.com/Xkmu5mvd

crafttweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):

https://pastebin.com/X2QSEbAj


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 14.23.5.2772
  • Crafttweaker: 4.1.11
  • Using a server: No
  • If yes, does the client have the exact same scripts?

Your most recent log file where the issue was present:

https://pastebin.com/9prpfsMH

[pastebin/gist/etc link here]