本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知)
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明)
模板:Tint
此模板使用了模块:SpriteTint,以及数据模块模块:TintSprite和模块:TintSprite/tint。
这些脚本均使用Lua编写。更多详情,请参阅维基百科:Lua和MediaWiki:扩展:Scribunto。
此模板用于生成一个在游戏中利用着色机制实现的纹理图标。
参数
参数 | 描述 |
---|---|
1= | 指定纹理名称。 |
2= | 可选,用RGB颜色代码指定主颜色,如#123456 。此参数不适用于没有主颜色的纹理。
|
3= | 可选,用RGB颜色代码指定次颜色,如#123456 。此参数不适用于没有次颜色的纹理。
|
scale= | 可选(默认为1 ),指定图标放大倍数。
|
code= | 可选,是否要在图标后显示颜色代码。 |
用法
- 仅显示图标
- 示例:
{{Tint|potion|#FF9800|scale=2}}
- 效果:
- 显示对应颜色代码
- 示例:
{{Tint|particle-effect|#7CAFC6|code=1}}
- 效果:
#7CAFC6
完整列表
如要修改图像,请在{{TintSprite}}
处修改。
未分类
acacia-leaves
attached-pumpkin-stem
dark-oak-leaves
firework-star
grass
grass-block-side
grass-block-top
jungle-leaves
leather-boots
leather-chestplate
leather-helmet
leather-horse-armor
leather-leggings
lily-pad
lingering-potion
oak-leaves
particle-effect
particle-generic
particle-note
potion
pumpkin-stem
redstone-dust-dot
redstone-dust-E
redstone-dust-ES
redstone-dust-ESW
redstone-dust-EW
redstone-dust-N
redstone-dust-NE
redstone-dust-NES
redstone-dust-NESW
redstone-dust-NEW
redstone-dust-NS
redstone-dust-NSW
redstone-dust-NW
redstone-dust-S
redstone-dust-SW
redstone-dust-W
spawn-egg
splash-potion
sugar-cane
tall-grass-bottom
tall-grass-top
tipped-arrow
vine
water-flow
water-still