Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-sketon/hexo-minecraft-skin-viewer
A hexo plugin to display minecraft skin by skinview3d.
https://github.com/d-sketon/hexo-minecraft-skin-viewer
hexo hexo-plugin minecraft
Last synced: 13 days ago
JSON representation
A hexo plugin to display minecraft skin by skinview3d.
- Host: GitHub
- URL: https://github.com/d-sketon/hexo-minecraft-skin-viewer
- Owner: D-Sketon
- License: mit
- Created: 2022-09-02T05:40:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T11:27:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T18:54:00.284Z (about 1 month ago)
- Topics: hexo, hexo-plugin, minecraft
- Language: JavaScript
- Homepage: https://d-sketon.github.io/20220902/hexo-mcskin-demo/
- Size: 7.81 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hexo-minecraft-skin-viewer
使用skinview3d展示minecraft皮肤3D模型
简体中文 | [English](https://github.com/D-Sketon/hexo-minecraft-skin-viewer/blob/main/README.en.md)
## 安装
```bash
$ npm install hexo-minecraft-skin-viewer --save
```## 使用
```
{% mcskin type='name'|'url' username|skinUrl [rotate=true] [animation=false] [width=300] [height=400] [...other args] %}
```例如:
```
{% mcskin name ATouuuu true true 100 200 %}
{% mcskin url https://mineskin.eu/skin/D_Sketon true true %}
```### type
可选值:`name` / `url`
代表第二个参数是 Minecraft 用户名还是皮肤地址,必填### username|skinUrl
具体的 Minecraft 用户名或皮肤地址,必填
### rotate
是否开启自动旋转,选填,默认为 `true`
### animation
是否开启模型动画,选填,默认为 `false`
### width
模型宽度,选填,默认为 `300`
### height
模型高度,选填,默认为 `400`
### 其他参数
其他参数将会附加在插入的 `script` 标签上。例如,你可以插入 `data-pjax` 等属性
## 示例
[Demo](https://d-sketon.github.io/20220902/hexo-mcskin-demo/)