Code Monkey home page Code Monkey logo

chatimage's Introduction

🌍English / 中文

ChatImage

ChatImage

✨ 在Minecraft聊天栏中显示图片 ✨

license forge fabric neoforge release

📖文档 · 🐛提交建议 · ⬇️CurseForge · ⬇️MC百科 · ⬇️Modrinth

快速开始

聊天框输入 [[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]] 或者图片链接 即可自动转换为图片

支持显示GIF,本地图片

quick

(图片来自画师甘城なつき)

规范

本项目使用 ChatImageCode ([[CICode,<arg>=<value>]])

参数 必须 类型 备注
url String 图片地址(本地文件请使用file:///)
nsfw boolean 是否为nsfw图像
name String 在消息栏显示的名称
pre String 前缀(默认[)(不能为,)
suf String 后缀(默认])(不能为,)
  • 网络图片 [[CICode,url=<网络地址>,name=Image]]

    • 示例: [[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]
  • 本地图片 [[CICode,url=file:///<绝对路径>,name=Image]]

    • 示例: [[CICode,url=file:///C:\blog\kituin\fun\img\bg.png,name=Image]]

nsfw将决定是否直接显示图片,如果设为true,则需要点击才能查看(或者配置文件中开启nsfw模式直接查看)

nsfw

nsfw2

使用命令发送 [[CICode]]

/chatimage send <display name> <url>

使用显示名称与Url发送CICode

/chatimage url <url>

使用Url发送CICode(使用默认显示名称)

配置文件设置

  • 手动配置
    • 配置文件位于:.minecraft/conifg/fabric/chatimageconfig.json
    • 修改配置文件后,请使用 /chatimage reload 重载配置文件
  • 使用按键(默认为End键)
  • 使用Mod Menu,点击配置按钮进行配置

支持方法

  • 手动输入CICode
  • 使用命令发送CICode
  • 图片拖拽进聊天栏

支持格式

  • png
  • jpg/jpeg
  • jfif
  • gif
  • ico
  • bmp

参与项目

  • 环境要求
  • 初始化项目
      ./init.ps1

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.