Danmaku Chat
ModMIT

Danmaku Chat

I recreated the barrage of comments on Nico Nico Douga in Minecraft.

31
Downloads
4
Followers
2 months ago
Updated
📦
2
Versions

📖About Danmaku Chat

DanmakuChat is a client-side mod for Minecraft that implements "danmaku comments" similar to those on Nico Nico Douga.

Main Features

Chat messages flow from right to left on the screen, with multiple messages displayed simultaneously. A unique collision avoidance algorithm prevents overlapping and ensures easy readability.

1. Nico Nico Douga-style Danmaku Display

Chat messages flow from right to left across the top of the screen.

Features:

  • Appears from the right edge of the screen
  • Scrolls left at a constant speed
  • Disappears when it reaches the left edge of the screen

2. Collision Avoidance Algorithm

Position-based collision avoidance system.

How ​​it works:

  1. Lane Management: Places 10 lanes (horizontal lines) on the game screen.
  2. Spacing Check: Checks the spacing between each lane and the previous message before placing a new message.
  3. Optimal Lane Selection: Automatically selects the least crowded lane.
  4. Overlap Prevention: Places messages with at least 50px of spacing between them.
  5. Results:
  • Messages do not overlap.
  • Easy-to-read display.
  • No breakdowns even with high density.

3. Message Filtering

User chat and system chat can be controlled separately.

User Chat

Chat messages sent by players.
Format: <Player Name> Message

Example:

  • <Player685> Hello
  • <Steve> Thank you

Default: Display ON

System Chat

Messages from the server or game system.

Example:

  • Player joined the game
  • Player left the game
  • Time set to day
  • Command execution result
    Default: Display OFF