Amoji
为 Minecraft 添加表情符号。

本模组主要基于 Emojiful,但更注重简洁性,并使其更易于添加自定义表情。
其功能旨在保持极简,以便于维护。
添加您自己的表情
有一种简单的方法来添加您自己的表情集合。使用命令 /amoji add <name> <url> 即可添加一组您自己的自定义表情。
提供的 URL 应返回以下格式的数据:
{
"emoji1Name": "image1Url",
"emoji2Name": "image2Url",
"emoji3Name": "image3Url"
}
示例:
{
"like": "https://raw.githubusercontent.com/albarv340/amoji/main/like.png"
}
可以使用以下命令添加此示例:
/amoji add example https://raw.githubusercontent.com/albarv340/amoji/main/example.json
图片 URL 可以是几乎任何静态图片 URL,使用的文件也不必托管在 GitHub 上,这只是一个示例。
使用 Google Sheets
可以使用 Google Sheets 创建一个相对用户友好的表情 API。
-
复制此 Google Sheet(通过点击 File > Make a copy)
-
通过点击 Extensions > Apps Script 打开 Apps Script 编辑器。
-
点击 Deploy > New Deployment。填写相关信息并将访问权限设置为 Anyone(任何人)。然后点击 Deploy。
-
使用您的 Google 账户授权 Apps Script。(如果提示网站不安全,请继续操作,这是官方的 Google 产品,无需担心)。
-
复制链接,访问该链接应会生成包含添加到表格中的表情的正确格式的 JSON。
-
然后可以使用以下命令将表情 API 添加到模组中:
/amoji add <name> <url>
Amoji
Adds emojis to Minecraft.

This mod is based largely on Emojiful, but with a focus on simplicity and making it easier to add custom emojis.
The functionality is intended to be kept to a bare minimum, to make maintenance easier.
Adding your own emojis
There is a simple way of adding your own sets of emojis. Using the command /amoji add <name> <url> you can add a set of your own custom emojis.
The URL provided should return data of the following format:
{
"emoji1Name": "image1Url",
"emoji2Name": "image2Url",
"emoji3Name": "image3Url"
}
Example:
{
"like": "https://raw.githubusercontent.com/albarv340/amoji/main/like.png"
}
This example can be added with the command:
/amoji add example https://raw.githubusercontent.com/albarv340/amoji/main/example.json
The image URLs can be pretty much any static image URLs, and none of the files used have to be hosted on GitHub, it is just an example.
Using Google Sheets
A relatively user-friendly emoji API can be created using google sheets.
-
Make a copy of this Google Sheet (By clicking File > Make a copy)
-
Open the Apps Script editor by clicking Extensions > Apps Script.
-
Click Deploy > New Deployment. Fill in the relevant information and choose Anyone for who has access. And click Deploy.
-
Authorize Apps Script with your Google Account. (If it tells you the website is unsafe, you should still proceed, it is an official Google product, nothing to worry about).
-
Copy the link, visiting it should yield a JSON of the correct format with the emojis added to the sheet.
-
The emoji API can then be added to the mod with the command:
/amoji add <name> <url>
评论 0
登录后参与评分
还没有评论,来抢沙发吧