Skip to content

RoyCurtis/HerpDerpCraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HerpDerpCraft is a client-only mod that herps all the derps in Minecraft chat. Inspired by Tanner Stokes' HerpDerp YouTube comments extenstion and Jamie Zawinski's HerpDerp WordPress comments plugin.

Requirements

Installation

  1. Download the latest release JAR or clone this repository and build a JAR file
  2. Place the JAR file in the mods/ directory of the client
  3. Run/restart the client
  4. Use the command /herpderp in-game to toggle
  5. Open config/HerpDerp.cfg and modify filters as desired

Features

This does not affect server chat; only you will see the effect.

This does not change chat messages you send to the server.

Whilst enabled, original chat messages are dumped to the log. Make sure your Launcher profile is set to "Keep the launcher open" to access logging during play.

To-do

  • Per-player herp derp

Bugs

  • Formatting may be lost within chat messages
  • Some servers are not yet supported (special chat format/syntax), but you can try to fix this yourself in the config file

Building

Usage

Simply execute gradle setupCIWorkspace in the root directory of this repository. Then execute gradle build. If subsequent builds cause problems, do gradle clean.

Debugging

HerpDerpCraft makes use of DEBUG and TRACE logging levels for debugging. To enable these messages, append this line to the client's JVM arguments:

-Dlog4j.configurationFile=log4j.xml

Then in the root directory of the client, create the file log4j.xml with these contents:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration monitorInterval="5">
  <Appenders>
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="[%d{HH:mm:ss} %-4level] %logger{36}: %msg%n"/>
    </Console>
  </Appenders>
  <Loggers>
    <Root level="INFO">
      <AppenderRef ref="Console"/>
    </Root>
    <Logger name="HerpDerp" level="ALL" additivity="false">
      <AppenderRef ref="Console"/>
    </Logger>
  </Loggers>
</Configuration>