Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Tool Message Remover Mod (ꜰorge)

Discussion in 'Your Work' started by TheLMiffy1111, Oct 11, 2017.

Thread Status:
Not open for further replies.
  1. TheLMiffy1111

    TheLMiffy1111 Previous Leader Of A Revived Wynn Community CHAMPION

    Messages:
    577
    Likes Received:
    784
    Trophy Points:
    91
    Guild:
    Minecraft:
    Hello everybody!
    I recently made this mod because I disabled WynnCraft's server resourcepack option because it made logging in take much longer. And as you know, this causes the server to spam a warning at you. So, I spent about two hours total making this mod, checking every received message thanks to Forge's ClientChatReceivedEvent to see if it contains the strings specified in the config.
    Currently works with 1.8 and above.

    Download Here

    TextComponent{text='', siblings=[TextComponent{text='Warning! You do not have the Wynncraft Resource Pack. The game will not make sense until you have it installed.', siblings=[], style=Style{hasParent=true, color=\u00a7c, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[TextComponent{text='To fix this, add ', siblings=[], style=Style{hasParent=true, color=\u00a76, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}, TextComponent{text='play.wynncraft.com', siblings=[], style=Style{hasParent=true, color=\u00a7e, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=ClickEvent{action=OPEN_URL, value='http://play.wynncraft.com'}, hoverEvent=null, insertion=null}}, TextComponent{text=' to your server list and', siblings=[], style=Style{hasParent=true, color=\u00a76, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[TextComponent{text='enable server resource packs', siblings=[], style=Style{hasParent=true, color=\u00a76, bold=null, italic=null, underlined=true, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[TextComponent{text='Still not sure how to do it? Click here: ', siblings=[], style=Style{hasParent=true, color=\u00a7c, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}, TextComponent{text='http://jumla.in/Fd', siblings=[], style=Style{hasParent=true, color=\u00a74, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=ClickEvent{action=OPEN_URL, value='http://jumla.in/Fd'}, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[TextComponent{text='\u00a74You don't have permission for this area.', siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
    TextComponent{text='', siblings=[TextComponent{text='You don't have permission for this area.', siblings=[], style=Style{hasParent=true, color=\u00a74, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
     
    Last edited: Dec 22, 2017
  2. Jbip

    Jbip yea QA GM CHAMPION

    Messages:
    2,884
    Likes Received:
    8,828
    Trophy Points:
    209
    Creator Karma:
    Guild:
    Minecraft:
    Neat, even though you can't really play without the rp (unless it's preloaded)
    This may also be doable with changing the lang file of a resourcepack
     
  3. Gustaf

    Gustaf Veteran or something HERO

    Messages:
    878
    Likes Received:
    771
    Trophy Points:
    130
    Minecraft:
    Probably not, since the lang file only modifies existing strings within the game. It cannot manipulate game chat, as far as I know.
     
  4. Jbip

    Jbip yea QA GM CHAMPION

    Messages:
    2,884
    Likes Received:
    8,828
    Trophy Points:
    209
    Creator Karma:
    Guild:
    Minecraft:
    Oh, you're right yeah.
    This also makes me think that quests translations are totally doable in game, and it's not even that hard.
    However it would require a resourcepack update with each update, that may be annoying
     
  5. TheLMiffy1111

    TheLMiffy1111 Previous Leader Of A Revived Wynn Community CHAMPION

    Messages:
    577
    Likes Received:
    784
    Trophy Points:
    91
    Guild:
    Minecraft:
    Having a translation key that does not normally exist in Minecraft should work in /tellraw.
     
  6. TheLMiffy1111

    TheLMiffy1111 Previous Leader Of A Revived Wynn Community CHAMPION

    Messages:
    577
    Likes Received:
    784
    Trophy Points:
    91
    Guild:
    Minecraft:
    it has been only 12 days
    bump
     
  7. TheLMiffy1111

    TheLMiffy1111 Previous Leader Of A Revived Wynn Community CHAMPION

    Messages:
    577
    Likes Received:
    784
    Trophy Points:
    91
    Guild:
    Minecraft:
    it has been only 12 days
    bump
     
    Locky1110 likes this.
  8. TheLMiffy1111

    TheLMiffy1111 Previous Leader Of A Revived Wynn Community CHAMPION

    Messages:
    577
    Likes Received:
    784
    Trophy Points:
    91
    Guild:
    Minecraft:
    bump
    I have updated the text to remove to 1.17 wynn, as that has changed.
    Therefore this thread is still relevant and is not a necro
     
  9. aws404

    aws404 Wynn CMD VIP+

    Messages:
    296
    Likes Received:
    621
    Trophy Points:
    91
    Minecraft:
    TL;DR: A simple resource pack lang file can't be used for translation in wynn but I have a method that might work.

    I don't believe you could actually do what you are talking about with a resource pack. This is because the lang file only contains the fields for default blocks names, default item names, default GUI names, potion effects, enchantments, numbers, GUI text and maybe some other things. Therefore the lang file would not be referenced by any of the items in wynn (as they are renamed and not default) and it would not be used for chat dialogue (because there is not 1 to 1 translation for every letter).

    However, I think that the the wynncraft team could theoretically change how their code works to reference different strings of text for different languages by simply using a "lang" variable or something similar. Then create a command to be able to change what that lang variable if for a specific player. Then when the player clicks on an NPC it will reference for instance:
    ragniking1.<lang>
    and if your language was English it would reference:
    ragniking1.en
    which would have a value else where in the plugin files.

    Sorry if i made it hard to read, im not the best at explaining things
     
    Jbip likes this.
  10. Jbip

    Jbip yea QA GM CHAMPION

    Messages:
    2,884
    Likes Received:
    8,828
    Trophy Points:
    209
    Creator Karma:
    Guild:
    Minecraft:
    Yeah I know, hence the "rp update with each update"! each new quest would need new lang files
     
  11. orange0404

    orange0404 corkus is actually here HERO

    Messages:
    3,893
    Likes Received:
    3,558
    Trophy Points:
    194
    Guild:
    Minecraft:
    btw i didn't know this existed lol
    plugging this in btw
    theres a mod that blocks pretty much completely and expands ur memory slightly
    https://prplz.io/memoryfix
     
  12. SPYROHAWK

    SPYROHAWK Head Grand Theorist HERO

    Messages:
    3,743
    Likes Received:
    4,302
    Trophy Points:
    194
    Minecraft:
    Why is this not part of the Wynncraft Enhanced modpack?
     
Thread Status:
Not open for further replies.