📦 D-Sketon / hexo-minecraft-skin-viewer

A hexo plugin to display minecraft skin by skinview3d.

7 stars 0 forks 👁 7 watching ⚖️ MIT License
hexohexo-pluginminecraftminecraft-skin
📥 Clone https://github.com/D-Sketon/hexo-minecraft-skin-viewer.git
HTTPS git clone https://github.com/D-Sketon/hexo-minecraft-skin-viewer.git
SSH git clone git@github.com:D-Sketon/hexo-minecraft-skin-viewer.git
CLI gh repo clone D-Sketon/hexo-minecraft-skin-viewer
D-Sketon D-Sketon chore: 1.2.1 06227eb 2 months ago 📝 History
📁 lib
📁 test
📄 .gitignore
📄 index.js
📄 LICENSE
📄 README.md
📄 README.md

hexo-minecraft-skin-viewer

NPM License NPM Version NPM Downloads

使用skinview3d展示minecraft皮肤3D模型

简体中文 | English

安装

$ 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