Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.2] Localization Trouble with .name


Thecheatgamer1
 Share

Recommended Posts

Register your blocks using the block.getUnlocalizedName() rather than predefined names. It will prepend tile. and append .name automatically for you, and you just need to have that in your language file:

Block block = new Block().setUnlocalizedName("block");

GameRegistry.registerBlock(block, block.getUnlocalizedName());

tile.block.name=Some Block

Link to comment
Share on other sites

  • 1 month later...

Use

.setUnlocalizedName("canempty");

at constructor for an block/item ex.

can_empty = new itemCan(Blocks.air).setUnlocalizedName("canempty");

then go to game, check what is the name, which is showing:

https://www.dropbox.com/s/2fs1jqhx17rvun6/canempty.png

and then add in your .lang file shownname=Name of Item, so in my example that would be

item.canempty.name=Empty Can

.lang files have to go to assets.nameofyourmod.lang and default name for english is en_US.lang. In Your case package would be

assets.meca.lang

Hope I helped.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • [04Jul2022 13:37:45.179] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, XXXXX, --version, forge-41.0.63, --gameDir, C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia, --assetsDir, C:\Users\XXXXX\curseforge\minecraft\Install\assets, --assetIndex, 1.19, --uuid, XXXXX, --accessToken, ????????, --clientId, XXXXX, --xuid, XXXXX, --userType, msa, --versionType, release, --width, 3840, --height, 2160, --launchTarget, forgeclient, --fml.forgeVersion, 41.0.63, --fml.mcVersion, 1.19, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220607.102129] [04Jul2022 13:37:45.184] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.1+10.0.1+main.e9521dc3 starting: java version 17.0.3 by Microsoft; OS Windows 10 arch amd64 version 10.0 [04Jul2022 13:37:45.212] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,forgegametestserverdev,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness,forgegametestserveruserdev] [04Jul2022 13:37:45.227] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] [04Jul2022 13:37:45.242] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,slf4jfixer,object_holder_definalize,runtime_enum_extender,capability_token_subclass,accesstransformer,runtimedistcleaner] [04Jul2022 13:37:45.255] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [04Jul2022 13:37:45.260] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: java.util.stream.ReferencePipeline$3@2de366bb [04Jul2022 13:37:45.271] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [mixin,fml] [04Jul2022 13:37:45.271] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading [04Jul2022 13:37:45.271] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service mixin [04Jul2022 13:37:45.272] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service mixin [04Jul2022 13:37:45.272] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml [04Jul2022 13:37:45.274] [main/DEBUG] [net.minecraftforge.fml.loading.LauncherVersion/CORE]: Found FMLLauncher version 1.0 [04Jul2022 13:37:45.274] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML 1.0 loading [04Jul2022 13:37:45.274] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found ModLauncher version : 10.0.1+10.0.1+main.e9521dc3 [04Jul2022 13:37:45.275] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found AccessTransformer version : 8.0.4+66+master.c09db6d7 [04Jul2022 13:37:45.275] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found EventBus version : 6.0.0+6.0.0+master.901864e5 [04Jul2022 13:37:45.275] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found Runtime Dist Cleaner [04Jul2022 13:37:45.276] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found CoreMod version : 5.0.1+15+master.dc5a2922 [04Jul2022 13:37:45.278] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package implementation version 6.0.0+6.0.0+master.42474703 [04Jul2022 13:37:45.278] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package specification 5 [04Jul2022 13:37:45.280] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml [04Jul2022 13:37:45.280] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services [04Jul2022 13:37:45.286] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing [04Jul2022 13:37:45.287] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service mixin [04Jul2022 13:37:45.302] [main/DEBUG] [mixin/]: MixinService [ModLauncher] was successfully booted in cpw.mods.cl.ModuleClassLoader@6989da5e [04Jul2022 13:37:45.318] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/XXXXX/curseforge/minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2390!/ Service=ModLauncher Env=CLIENT [04Jul2022 13:37:45.321] [main/DEBUG] [mixin/]: Initialising Mixin Platform Manager [04Jul2022 13:37:45.321] [main/DEBUG] [mixin/]: Adding mixin platform agents for container ModLauncher Root Container(ModLauncher:4f56a0a2) [04Jul2022 13:37:45.321] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentMinecraftForge for ModLauncher Root Container(ModLauncher:4f56a0a2) [04Jul2022 13:37:45.322] [main/DEBUG] [mixin/]: MixinPlatformAgentMinecraftForge rejected container ModLauncher Root Container(ModLauncher:4f56a0a2) [04Jul2022 13:37:45.322] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentDefault for ModLauncher Root Container(ModLauncher:4f56a0a2) [04Jul2022 13:37:45.322] [main/DEBUG] [mixin/]: MixinPlatformAgentDefault accepted container ModLauncher Root Container(ModLauncher:4f56a0a2) [04Jul2022 13:37:45.324] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service mixin [04Jul2022 13:37:45.324] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml [04Jul2022 13:37:45.324] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Setting up basic FML game directories [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing GAMEDIR directory : C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path GAMEDIR is C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing MODSDIR directory : C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\mods [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path MODSDIR is C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\mods [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing CONFIGDIR directory : C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\config [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\config [04Jul2022 13:37:45.325] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\config\fml.toml [04Jul2022 13:37:45.326] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Loading configuration [04Jul2022 13:37:45.366] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing default config directory directory : C:\Users\XXXXX\curseforge\minecraft\Instances\Pandawia\defaultconfigs [04Jul2022 13:37:45.366] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Preparing ModFile [04Jul2022 13:37:45.369] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Preparing launch handler [04Jul2022 13:37:45.370] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Using forgeclient as launch service [04Jul2022 13:37:45.389] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Received command line version data  : VersionInfo[forgeVersion=41.0.63, mcVersion=1.19, mcpVersion=20220607.102129, forgeGroup=net.minecraftforge] [04Jul2022 13:37:45.390] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service fml [04Jul2022 13:37:45.391] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Current naming domain is 'srg' [04Jul2022 13:37:45.391] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Identified name mapping providers {} [04Jul2022 13:37:45.391] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services begin scanning [04Jul2022 13:37:45.392] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service mixin [04Jul2022 13:37:45.392] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: End scan trigger - transformation service mixin [04Jul2022 13:37:45.392] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service fml [04Jul2022 13:37:45.392] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Initiating mod scan [04Jul2022 13:37:45.403] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModListHandler/CORE]: Found mod coordinates from lists: [] [04Jul2022 13:37:45.406] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/CORE]: Found Mod Locators : (mods folder:null),(maven libs:null),(exploded directory:null),(minecraft:null),(userdev classpath:null) [04Jul2022 13:37:45.407] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/CORE]: Found Dependency Locators : (JarInJar:null)
    • you have firstperson for minecraft 1.19 but are using 1.18.2  firstperson-forge-2.1.0-mc1.19.jar    I also don't see NotEnoughAnimations in your mod list. Maybe I missed it? It says that is a dependency on the mod page.  
    • after trying a while it seems that i can´t fix this so i will write a ticket to curseforge and hope they fix it, but thanks for helping me find the root of the problem  
    • Could be an issue with one/more of the following Mods: Xaero's Minimap, Skin Layers 3D, First-person please post debug.log from the logs folder for more informations
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.