#How do I get the mod name tooltip of an item?

20 messages · Page 1 of 1 (latest)

shadow herald
#

title

tall cloudBOT
#

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

round jewel
#

context please?

#

why do you need the mod name AT the tooltip?

hushed surge
#

What is a mod name tooltip? do you mean the mod id? if so:
item.id.substring(0, item.id.indexOf(":"))

round jewel
#

can't you just get it from item.modId()? or something?

#

yeah, itemStack.mod

hushed surge
#

yeah

shadow herald
#

i want the display name

#

i have a script that replaces stuff from peoples inventories, like stuff that I've removed from the previous version of the pack

#

so the message goes "Replaced (mod id)'s (item name) with (mod id 2)'s (item name 2)"

round jewel
#

use Platform

hushed surge
#

To get the Mod Display Name you can do Platform.mods.modid.name

#

Andnitem Display Name is Just item.name

shadow herald
round jewel
#

can you show us?

shadow herald
#

wait wtf

#

it didnt work before but now it does

#

my bad guys