#item renaming issue

5 messages · Page 1 of 1 (latest)

timber lodgeBOT
#

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

nova oxide
#

items don't rename despite that there isn't any script errors

#
    // Function to rename items
    const rename = (item, newName) => {
        // Add a new language entry for the item with the new name
        event.addLang(Item.of(item).item.getDescriptionId(), newName);
    };

    // Rename items
    rename('allthemodium:allthemodium_ingot', '§2§rFundamentum Terrae Ingot');
    rename('allthemodium:allthemodium_sword', '§2§rTerrastris Gladius');
    rename('allthemodium:allthemodium_pickaxe', '§2§rTerrae Excisor');
    rename('allthemodium:allthemodium_axe', '§2§rSecuris Terrae');
    rename('allthemodium:allthemodium_shovel', '§2§rFoditor Terrae');
    rename('allthemodium:allthemodium_hoe', '§2§rArator Terrae');
    rename('allthemodium:allthemodium_apple', '§2§rPomum Terrae');
    rename('allthemodium:allthemodium_ore', '§2§rPomum Terrae');
    rename('allthemodium:allthemodium_chestplate', '§2§rThorax Terrae');
    rename('allthemodium:allthemodium_leggings', '§2§rCrus Terrae');
    rename('allthemodium:allthemodium_boots', '§2§rCalceus Terrae');
    rename('allthemodium:allthemodium_helmet', '§2§rGalea Terrae');
});```
#

tried this too but still no luck

    event.renameItem('allthemodium:allthemodium_ingot', '§2§rFundamentum Terrae Ingot');
    event.renameItem('allthemodium:allthemodium_sword', '§2§rTerrastris Gladius');
    event.renameItem('allthemodium:allthemodium_pickaxe', '§2§rTerrae Excisor');
    event.renameItem('allthemodium:allthemodium_axe', '§2§rSecuris Terrae');
    event.renameItem('allthemodium:allthemodium_shovel', '§2§rFoditor Terrae');
    event.renameItem('allthemodium:allthemodium_hoe', '§2§rArator Terrae');
    event.renameItem('allthemodium:allthemodium_apple', '§2§rPomum Terrae');
    event.renameItem('allthemodium:allthemodium_ore', '§2§rPomum Terrae');
    event.renameItem('allthemodium:allthemodium_chestplate', '§2§rThorax Terrae');
    event.renameItem('allthemodium:allthemodium_leggings', '§2§rCrus Terrae');
    event.renameItem('allthemodium:allthemodium_boots', '§2§rCalceus Terrae');
    event.renameItem('allthemodium:allthemodium_helmet', '§2§rGalea Terrae');
});```