Giter Site home page Giter Site logo

chatheadfont's Introduction

Chat Head Font

Minecraft resource pack and API for creating dynamic player head chat icons.

Alt Text Alt Text

Note

This is a public resource/guide on how to add playerhead icons to the game chat. As theres not much information on how do this. I will not provide any further support for this resource unless required.

Usage

Resource Pack Installation

This was only tested on version 1.20.4

Note: This plugin will automatically download and apply the resource pack to every player by default. You should only use the manual installation variant if you have other plugins on your server that also require resource packs. In that case, you can disable the auto-download feature by setting auto-download-pack in the config to false.

Manual installation:

  1. Download the resource pack ZIP file from the Releases section.
  2. Place the ZIP file in the resourcepacks folder of your Minecraft installation directory.
  3. In Minecraft, navigate to Options > Resource Packs.
  4. Select the ChatHead resource pack and move it to the Selected Resource Packs column.
  5. Click Done to apply the changes.

Plugin Installation

Used to generate the player head icon and showcase them.

  1. Download the plugin JAR file from the Releases section.
  2. Place the JAR file in the plugins folder of your Minecraft server directory.
  3. Start or restart your Minecraft server.

Configuration

You can configure which messages will appear with a player head in front of them in the config.yml file of the plugin:

auto-download-pack: true # Whether the pack will automatically be downloaded and applied for every player
enable-join-messages: true # Should join messages appear with a player head?
enable-leave-messages: true # Should leave messages appear with a player head?
enable-chat-messages: true # Should chat messages sent by players appear with a player head?
enable-death-messages: true # Should player death messages appear with a player head? 

Unicode Characters

This works by coloring a set of unicodes which are set in the Resource Pack under a custom font called "playerhead". It is then arranged into a grid of 8x8 of pixels using negative space.

  • \uF001: Pixel 1 (1st Row)
  • \uF002: Pixel 2 (2nd Row)
  • \uF003: Pixel 3 (3rd Row)
  • \uF004: Pixel 4 (4th Row)
  • \uF005: Pixel 5 (5th Row)
  • \uF006: Pixel 6 (6th Row)
  • \uF007: Pixel 7 (7th Row)
  • \uF008: Pixel 8 (8th Row)
  • \uF101: Negative space (Moves back 1px)
  • \uF102: Negative space (Moves back 2px)

API Usage

Using the API class is as simple as this.

ChatHeadAPI chatHeadAPI = ChatHeadAPI.getInstance();
  • Join & Leave messages
  • Alt Text
  • Actionbar
  • Alt Text

TODO

  • Add more examples use cases of the API
  • Add support for placeholder api
  • Add support for bossbars, scoreboards, titles, etc.

Contribute

Feel free to contribute to this project, I will accept most pull requests.

License and use

This pack is availible under Creative Commons Attribution 4.0 International (see LICENSE.txt). This gives you a lot of freedom to spread and adapt it to suit your needs. For example, you could alter parts that don't suit your needs and/or merge it into a pack of your own and share it.

Just remember to include attribution. A link back to the repository is appreciated, but not required.

chatheadfont's People

Contributors

ogminso avatar codingcat2468 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.