少女祈祷中...

使用 skinview3d 展示 minecraft 皮肤 3D 模型
A hexo plugin to display minecraft skin by skinview3d.

Github
Github
https://github.com/D-Sketon/hexo-minecraft-skin-viewer

Install

1
$ npm install hexo-minecraft-skin-viewer --save

Usage

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

e.g.

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

type

可选值:name / url
代表第二个参数是 Minecraft 用户名还是皮肤地址,必填
Optional value: name / url
Represents whether the second parameter is a Minecraft username or a skin url, required

username|skinUrl

具体的 Minecraft 用户名或皮肤地址,必填
The specific Minecraft username or skin url, required

rotate

是否开启自动旋转,选填,默认为 true
Whether to turn on automatic rotation, optional, default is true

animation

是否开启模型动画,选填,默认为 false
Whether to turn on model animation, optional, default is false

width

模型宽度,选填,默认为 300
Model width, optional, default is 300

height

模型高度,选填,默认为 400
Model height, optional, default is 400

other args

其他参数将会附加在插入的 script 标签上。例如,你可以插入 data-pjax 等属性
Other arguments will be attached to the inserted script tag. For example, you can insert attributes such as data-pjax

Example

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