đŸ“Ļ D-Sketon / hexo-minecraft-skin-viewer

📄 README.en.md · 65 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65<div align = center>
  <h1>hexo-minecraft-skin-viewer</h1>
  <img alt="NPM License" src="https://img.shields.io/npm/l/hexo-minecraft-skin-viewer">
  <img alt="NPM Version" src="https://img.shields.io/npm/v/hexo-minecraft-skin-viewer">
  <img alt="NPM Downloads" src="https://img.shields.io/npm/dt/hexo-minecraft-skin-viewer">
  <p align="center">
    A hexo plugin to display minecraft skin by skinview3d.
  </p>

[įŽ€äŊ“中文](https://github.com/D-Sketon/hexo-minecraft-skin-viewer/blob/main/README.md) | English

</div>

## Install

```bash
$ npm install hexo-minecraft-skin-viewer --save
```

## Usage

```
{% mcskin type='name'|'url' username|skinUrl [rotate=true] [animation=false] [width=300] [height=400] [...other args] %}
```

e.g.

```
{% mcskin name ATouuuu true true 100 200 %}
{% mcskin url https://mineskin.eu/skin/D_Sketon true true %}
```

### type

Optional value: `name` / `url`
Represents whether the second parameter is a Minecraft username or a skin url, required

### username|skinUrl

The specific Minecraft username or skin url, required

### rotate

Whether to turn on automatic rotation, optional, default is `true`

### animation

Whether to turn on model animation, optional, default is `false`

### width

Model width, optional, default is `300`

### height

Model height, optional, default is `400`

### other args

Other arguments will be attached to the inserted `script` tag. For example, you can insert attributes such as `data-pjax`

## Example

[Demo](https://d-sketon.github.io/20220902/hexo-mcskin-demo/)