本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明

全站通知:

模板:Tint

来自我的世界地下城WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg

此模板使用了模块:SpriteTint,以及数据模块模块:TintSprite模块:TintSprite/tint
这些脚本均使用Lua编写。更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

此模板用于生成一个在游戏中利用着色机制实现的纹理图标。

参数

参数 描述
1= 指定纹理名称。
2= 可选,用RGB颜色代码指定主颜色,如#123456。此参数不适用于没有主颜色的纹理。
3= 可选,用RGB颜色代码指定次颜色,如#123456。此参数不适用于没有次颜色的纹理。
scale= 可选(默认为1),指定图标放大倍数。
code= 可选,是否要在图标后显示颜色代码。

用法

仅显示图标
  • 示例:{{Tint|potion|#FF9800|scale=2}}
  • 效果:
显示对应颜色代码
示例:{{Tint|particle-effect|#7CAFC6|code=1}}
  • 效果: #7CAFC6

完整列表

如要修改图像,请在{{TintSprite}}处修改。

<templatestyles src="Sprite/doc.css"></templatestyles>

未分类

    • 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